mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-08 07:26:48 +00:00
OKX: Fix intermittent GetFuturesContractDetails issue, add spread endpoints and various refactors (#1900)
* OKX: Fix intermittent GetFuturesContractDetails issue and various refactors * refactor: Update LeadTraderRanksRequest fields for clarity and improve parameter checks * refactor: Simplify live contract check in GetFuturesContractDetails * OKX: Fix spread related issues and enhance tests * OKX: Disable spread websocket support and adjust conditional logic in test * refactor: Improve error handling in syncLeadTraderUniqueID and clean up variable usage * refactor: Update LeadTraderRanksRequest State type to bool and adjust rate limit * refactor: Rename State to HasVacancy in LeadTraderRanksRequest and update related logic
This commit is contained in:
@@ -191,7 +191,7 @@ func SetupWs(tb testing.TB, e exchange.IBotExchange) {
|
||||
w.GenerateSubs = func() (subscription.List, error) { return subscription.List{}, nil }
|
||||
|
||||
err = w.Connect()
|
||||
require.NoError(tb, err, "WsConnect should not error")
|
||||
require.NoError(tb, err, "Connect must not error")
|
||||
|
||||
setupWsOnce[e] = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user