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:
Adrian Gallagher
2025-05-19 22:48:34 +10:00
committed by GitHub
parent c2bb050eac
commit a22870a89c
7 changed files with 683 additions and 516 deletions

View File

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