gateio / gatews

Gate Websocket V4 SDK
96 stars 36 forks source link

[Question]: `spot.orders` websocket subscription response #62

Closed Halimao closed 2 months ago

Halimao commented 2 months ago

I have some questions about Server Notification Field of channel spot.orders:

  1. finish_as. I didn't see a field named finish_as in go lib SpotOrderMsg
  2. There is a field named Status with a comment // SpotOrderMsg status - open: to be filled - closed: filled - cancelled: cancelled. I'm not sure if this is equal to finish_as field.
  3. For event field, the description of finish status, order closed or cancelled. If I receive the order event about finish status, how do I distinguish whether the order is closed or cancelled?
  4. avg_deal_price. I didn't see a field named avg_deal_price in go lib SpotOrderMsg too

I am looking forward to your reply

latesun commented 2 months ago

Hi @Halimao, thank you for bringing this to our attention. I've already submitted a PR that addresses this issue. Please feel free to review it, and let me know if you have any further questions or suggestions.