node-binance-api icon indicating copy to clipboard operation
node-binance-api copied to clipboard

Is there a way to buy/sell coin with usdt not coin_quantity in FuturesMarketBuy/Sell?

Open SANGMINNNN opened this issue 3 years ago • 1 comments

I think, in binance.futureMarketBuy or binance.futureMarketSell. parameter-quantity means coin number to buy or sell. I want to get position by USDT not coin num, for example, wanna buy a 100$ worth of BTC not 0.004 BTC. Is there a way to buy/sell with USDT? Is there a function or parameter to do this?

SANGMINNNN avatar Oct 08 '22 14:10 SANGMINNNN

I don't think they will respond, the devs haven't updated it for over a year, it's one of the reasons I started working on my own library 'binance-lib', which will support this. Of course binance doesn't support this natively, but my library is made so that these options are offered to the users, I want it to be as user-friendly as possible, there will be a function coming out tomorrow named .futuresConvertToQty() that will convert that amount to any symbol you want

You can know it's out when v2.0.0 is out

GTedZ avatar Oct 22 '22 17:10 GTedZ