Subscriptions: Fix IBotExchange not implementing sub.IExchange (#1765)

Thusfar ExpandTemplates had only been called internally.
All methods consumers might want to get, in this case GetPairFormat,
need to be in the interface we're passing out, otherwise users can't
call them (or things that use them, like ExpandTemplates)
This commit is contained in:
Gareth Kirwan
2025-01-10 00:21:02 +00:00
committed by GitHub
parent b3e640ef5e
commit 1efd8e0db0
4 changed files with 23 additions and 5 deletions

View File

@@ -51,6 +51,7 @@ type IBotExchange interface {
UpdateTradablePairs(ctx context.Context, forceUpdate bool) error
GetEnabledPairs(a asset.Item) (currency.Pairs, error)
GetAvailablePairs(a asset.Item) (currency.Pairs, error)
GetPairFormat(asset.Item, bool) (currency.PairFormat, error)
SetPairs(pairs currency.Pairs, a asset.Item, enabled bool) error
GetAssetTypes(enabled bool) asset.Items
GetRecentTrades(ctx context.Context, p currency.Pair, a asset.Item) ([]trade.Data, error)