currently when posting a new LIMIT order that’s filled immediately, commission and commission asset can be found in
However when the order stays in NEW state, there are no
fills. Querying order status afterwards (https://binance-docs.github.io/apidocs/spot/en/#query-order-user_data) doesn’t seem to show
fills, or is it only because the documentation lists NEW order in this case?
I currently have no orders to test with, just developing the application.
This websocket stream apidocs/spot/en/#payload-order-update lists commission and commission asset, but I would like to use polling calls for this task.
Another possibility is to use account trade list (apidocs/spot/en/#account-trade-list-user_data) but that is expensive (weight 5) and also doesn’t allow to search by order ID so it would be difficult to use this way.
Is there any practical way to get commission of filled or partially filled order?
EDIT: learning new things every day! Working with Binance API for quite some time, didn’t know there is now a spot testnet, woohoo! https://testnet.binance.vision/ Will try querying some testnet orders tomorrow.
apidocs/spot/en/#payload-order-update - is the commission cumulative or last trade in this case? Why does the documentation say commission asset is null?
can an order have mixed commission assets? E.g. when user runs out of BNB mid-order.
Thank you very much!