BitgetLimited / v3-bitget-api-sdk

148 stars 150 forks source link

Update example_ws_contract.py #53

Closed woodlyer closed 4 months ago

woodlyer commented 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.