tiagosiebler / binance

Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & browser support, integration tests, beautification & more.
MIT License
758 stars 266 forks source link

Bug: position margin type #337

Closed jkyin closed 1 year ago

jkyin commented 1 year ago

Summary

Position info cross margin type should be 'cross', not 'crossed'.

Additional Information

See. https://binance-docs.github.io/apidocs/futures/en/#position-information-v2-user_data response has "marginType": "cross".

Changing futures marginType is different from get the marginType of positionInfo.