binance-exchange / node-binance-api

Node Binance API is an asynchronous node.js library for the Binance API designed to be easy to use.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adjust Position Margin

StuartGrossman opened this issue · comments

incorrect params being sent. Fixed it my self

futuresPositionMargin: async ( symbol, amount, type = 1, params = {} ) => {
params.symbol = symbol;
params.amount = amount;
params.type = type;
return promiseRequest( 'v1/positionMargin', params, {base:fapi, method:'POST', type:'SIGNED'} );
},

thank you very much 👍 enjoy your weekend