binance / binance-futures-connector-node

Simple NodeJS connector to Binance Futures API
MIT License
16 stars 6 forks source link

wrong function used in changeMarginType.js #3

Closed morakispapk closed 8 months ago

morakispapk commented 9 months ago

Issue subject

changeMarginType.js example file (https://github.com/binance/binance-futures-connector-node/blob/main/examples/um_futures/account/changeMarginType.js)

Expected behaviour

function changeMarginType() should be used

Actual behaviour

function changeInitialLeverage() is used instead

Steps to reproduce

https://github.com/binance/binance-futures-connector-node/blob/main/examples/um_futures/account/changeMarginType.js

Environment