Okx: Fix websocket fundingRate sub not sending instId (#1200)

instId is a required API field
This commit is contained in:
Gareth Kirwan
2023-05-16 08:34:28 +01:00
committed by GitHub
parent b2eb030578
commit 4095bc9133

View File

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