user instruments

This commit is contained in:
yash 2026-04-28 11:42:07 +03:00
parent dd03cae0f3
commit abb2411af7
9 changed files with 494 additions and 48 deletions

View file

@ -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