pkg/exchange: add rate limit comment

This commit is contained in:
edwin 2024-06-03 17:25:07 +08:00
parent 57618ced7c
commit bafa5a4783

View File

@ -196,6 +196,9 @@ func (s *Stream) subscribePrivateChannels(next func()) func() {
{Channel: "orders", InstrumentType: string(okexapi.InstrumentTypeSpot)},
}
// https://www.okx.com/docs-v5/zh/#overview-websocket-connect
// **NOTICE** 2024/06/03 Since the number of channels we are currently subscribed to is far less
// than the rate limit of 20, rate limiting is not supported for now.
log.Infof("subscribing private channels: %+v", subs)
err := s.Conn.WriteJSON(WebsocketOp{
Op: "subscribe",