13 lines
326 B
Go
13 lines
326 B
Go
package provider
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gitea.computernetthings.ru/yash/crypto_alert_bot/internal/entities"
|
|
)
|
|
|
|
type Provider interface {
|
|
// Price returns the current price of the pair (base currency / quote currency).
|
|
// e.g. BTC/USDT.
|
|
Price(ctx context.Context, instrument entities.Instrument) (*entities.Price, error)
|
|
}
|