From 4095bc913357774b12250ecca1fd3e389e80d39e Mon Sep 17 00:00:00 2001 From: Gareth Kirwan Date: Tue, 16 May 2023 08:34:28 +0100 Subject: [PATCH] Okx: Fix websocket fundingRate sub not sending instId (#1200) instId is a required API field --- exchanges/okx/okx_websocket.go | 1 + 1 file changed, 1 insertion(+) diff --git a/exchanges/okx/okx_websocket.go b/exchanges/okx/okx_websocket.go index 6aeb03c7..b28df685 100644 --- a/exchanges/okx/okx_websocket.go +++ b/exchanges/okx/okx_websocket.go @@ -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)