mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-02 23:16:51 +00:00
exchanges: Refactor UpdateTradablePairs method to remove forceUpdate parameter (#2043)
* Refactor UpdateTradablePairs method to remove forceUpdate parameter - Updated the signature of UpdateTradablePairs in multiple exchange wrappers to remove the forceUpdate boolean parameter. - Adjusted related test cases to reflect the change in method signature. - Ensured that the UpdatePairs method calls within UpdateTradablePairs no longer reference the removed parameter. * update exchange wrapper template * linter: fix * glorious: nits * thrasher/glorious: nits * Update exchanges/exchange_test.go Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com> * Update exchanges/exchange_test.go Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com> * Update exchanges/exchange_test.go Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com> * fix things * misc: fix * Update exchanges/exchange_test.go Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com> --------- Co-authored-by: shazbert <ryan.oharareid@thrasher.io> Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
This commit is contained in:
@@ -47,7 +47,7 @@ type IBotExchange interface {
|
||||
GetCachedOrderbook(p currency.Pair, a asset.Item) (*orderbook.Book, error)
|
||||
UpdateOrderbook(ctx context.Context, p currency.Pair, a asset.Item) (*orderbook.Book, error)
|
||||
FetchTradablePairs(ctx context.Context, a asset.Item) (currency.Pairs, error)
|
||||
UpdateTradablePairs(ctx context.Context, forceUpdate bool) error
|
||||
UpdateTradablePairs(ctx context.Context) error
|
||||
GetEnabledPairs(a asset.Item) (currency.Pairs, error)
|
||||
GetAvailablePairs(a asset.Item) (currency.Pairs, error)
|
||||
GetPairFormat(asset.Item, bool) (currency.PairFormat, error)
|
||||
|
||||
Reference in New Issue
Block a user