有没有一种方法可以让币安 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?

我希望我的买单以市场价格立即执行并且数量应该是最大可购买数量,我不应该像myBalance/coinPrice[=16那样计算它=]之类的。我想知道我们是否可以使用 binance API.

谢谢!

MARKET binance 订单类型有一个特殊字段 quoteOrderQty,您可以在其中输入报价货币金额。