gateio / gatews

Gate Websocket V4 SDK
89 stars 35 forks source link

`text` field in account book REST response #48

Open LKresta opened 1 year ago

LKresta commented 1 year ago

Hello there!

There's text field in /futures/{settle}/account_book response (https://www.gate.io/docs/developers/apiv4/en/#query-account-book) which is documented as comment. Per observation the semantics of the field value depends on type of the record, e.g. for pnl records the value is contract:orderId, and for funding payments the value is just contract. Can this behavior be relied upon? That is, is it guaranteed that when the record type is fund the value in text field is contract name?

Thanks, L.