crypto_alert_bot/internal/provider/provider.go

12 lines
281 B
Go

package provider
import (
"context"
"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, pair entities.Pair) (*entities.Price, error)
}