mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-22 23:16:48 +00:00
Okx: Fix websocket fundingRate sub not sending instId (#1200)
instId is a required API field
This commit is contained in:
@@ -395,6 +395,7 @@ func (ok *Okx) handleSubscription(operation string, subscriptions []stream.Chann
|
||||
arg.Channel == okxChannelOrderBooks5 ||
|
||||
arg.Channel == okxChannelOrderBooks50TBT ||
|
||||
arg.Channel == okxChannelOrderBooksTBT ||
|
||||
arg.Channel == okxChannelFundingRate ||
|
||||
arg.Channel == okxChannelTrades {
|
||||
if subscriptions[i].Params["instId"] != "" {
|
||||
instrumentID, okay = subscriptions[i].Params["instId"].(string)
|
||||
|
||||
Reference in New Issue
Block a user