Closed woodlyer closed 4 months ago
SubscribeReq("SP", "candle1W", "BTCUSDT") SubscribeReq("sp", "candle1W", "BTCUSDT") # here should use sp not SP.
in this function, the return from server is "sp" def get_listener(self, json_obj):
{"instType":"sp","channel":"candle1H","instId":"BTCUSDT"}
then the get_listener will not find this subscribe_req, and return null
the callback function set by user will not be called.
SubscribeReq("SP", "candle1W", "BTCUSDT") SubscribeReq("sp", "candle1W", "BTCUSDT") # here should use sp not SP.
in this function, the return from server is "sp" def get_listener(self, json_obj):
then the get_listener will not find this subscribe_req, and return null
the callback function set by user will not be called.