You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
For MARKET orders, Binance supports a parameter called "quoteOrderQty" in order to specify the quantity of BTC to buy or sell by using an amount in the quote asset versus the base asset. Thus, for instance, one can order to market buy 1200 USDT worth of BTC on BTCUSDT. One does not need to convert 1200 USDT into BTC using the current BTC value, Binance does the conversion.
The issue here is simply that the Unicorn library does not support that parameter.
Describe the solution you'd like.
The parameter should be added to create_order (in fact, it is even referenced in the method's documentation since it is a copy and paste of Binance's).
In the code, if quote_order_qty (new param) is 0.0, then quantity is used, else quote_order_qty is used.
Thanks!
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
For MARKET orders, Binance supports a parameter called "quoteOrderQty" in order to specify the quantity of BTC to buy or sell by using an amount in the quote asset versus the base asset. Thus, for instance, one can order to market buy 1200 USDT worth of BTC on BTCUSDT. One does not need to convert 1200 USDT into BTC using the current BTC value, Binance does the conversion.
Ref: https://binance-docs.github.io/apidocs/websocket_api/en/#place-new-order-trade
The issue here is simply that the Unicorn library does not support that parameter.
Describe the solution you'd like.
The parameter should be added to create_order (in fact, it is even referenced in the method's documentation since it is a copy and paste of Binance's).
In the code, if quote_order_qty (new param) is 0.0, then quantity is used, else quote_order_qty is used.
Thanks!
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: