简体   繁体   English

有没有办法让 Binance API 市场买单以一种自行决定最大可购买数量并且我不必计算的方式?

[英]Is there a way to put Binance API market buy orders in a way that decides the max buyable quantity itself and that I don't have to calculate it?

I want my buy order to be executed instantly at the market price and the quantity should be the max buyable quantity, I shouldn't have to calculate it like myBalance/coinPrice sort of thing.我希望我的买单以市场价格立即执行,并且数量应该是最大可购买数量,我不应该像myBalance/coinPrice那样计算它。 I want to know if we can do that using binance API.我想知道我们是否可以使用币安 API 做到这一点。

Thanks!谢谢!

There is a special field quoteOrderQty for MARKET binance order types, where you can put quote currency amount. MARKET binance 订单类型有一个特殊字段quoteOrderQty ,您可以在其中输入报价货币金额。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM