gateio / gatews

Gate Websocket V4 SDK
89 stars 35 forks source link

Problem subscribing FuturesUserTradesChannel #16

Closed MaoXuYin closed 2 years ago

MaoXuYin commented 2 years ago

Cant find my mistake, any ideas why the status is failed?

I want to get notified if an order got filled.

Edit: Nevermind, got it. I dont know why, but we need the UserID.

image

revilwang commented 2 years ago

You can view corresponding WebSocket documents, which says futures.usertrades requires a string user ID in front. Try to change channel.subscribe(['BTC_USDT']) to channel.subscribe(['<YOUR_USER_ID>', 'BTC_USDT']).