user instruments
This commit is contained in:
parent
dd03cae0f3
commit
abb2411af7
9 changed files with 494 additions and 48 deletions
|
|
@ -17,6 +17,10 @@ type Provider interface {
|
|||
// The implementation handles pagination automatically when the range exceeds one
|
||||
// request's capacity.
|
||||
Candles(ctx context.Context, instrument entities.Instrument, from, to time.Time, interval KlineInterval) ([]entities.Candle, error)
|
||||
|
||||
// InstrumentExists reports whether the trading pair base/quote is listed on this provider.
|
||||
// Returns (false, nil) when the symbol is simply not found (as opposed to a network error).
|
||||
InstrumentExists(ctx context.Context, base, quote string) (bool, error)
|
||||
}
|
||||
|
||||
type KlineInterval string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue