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

Buy with Stable coin or Postfix coin

Open heysyam99 opened this issue 5 years ago • 5 comments

Hi, how can i marketBuy using stable coin instead of how many coins I want to buy like the system in binance? For example, for the symbol BTCUSDT, I will just need to put how much USDT I want to spend, for example, 10 USDT and it will calculate how much will get the BTC automatically and will buy it with the current market price. Thank you.

Screenshot 2021-05-27 at 3 33 53 PM

heysyam99 avatar May 27 '21 07:05 heysyam99

@heysyam99 hey syam ! how did you solved it ? i'm facing same issue :/

heyimbrucelee avatar Jun 25 '21 09:06 heyimbrucelee

hey @heyimbrucelee , I just pull the project and update the code manually for now since there is already pull request for this but take a long time to merge. here is the PR and you can update the code yourself. https://github.com/jaggedsoft/node-binance-api/pull/626

heysyam99 avatar Jun 25 '21 09:06 heysyam99

@heysyam99 tyvm :)

heyimbrucelee avatar Jun 25 '21 09:06 heyimbrucelee

could someone please show an example how I would structure the query after the code has been added?

Lippa73 avatar Dec 14 '21 09:12 Lippa73

@Lippa73 I have replied to your comment in the PR.

Putting the comment link for others reference

heysyam99 avatar Dec 14 '21 12:12 heysyam99