How to fetch a FULL order status
See original GitHub issueHello,
I have been trying to fetch an orders status to look for the price and qty details from the fills. This as explained in the API docs can be fetch by using newOrderRespType ENUM.
newOrderRespType | ENUM | NO | Set the response JSON. ACK, RESULT, or FULL; default: RESULT.
binance.orderStatus(_SYMBOL_, orderID, newOrderRespType.FULL, function(err, orderStatus, symbol) {
if(err)
logger.info(`ERROR: ${err.message}`);
else{
logger.info(symbol + " order status:" + JSON.stringify(orderStatus));
}
});
But i get ReferenceError: newOrderRespType is not defined. Can someone tell how to fetch FULL orderStatus as explained in the API doc @ https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Fetch an order status · Issue #5015 · ccxt/ccxt - GitHub
Hello. How can I fetch the order status by the order ID? Something like: if(BitMEX.fetch_order_status(id = orderid) == ' ...
Read more >How can I check my order status? - Fully
Order updates are provided via email. You will receive a confirmation email once your order is placed letting you know when each item...
Read more >How do I check the status of my order? - Insight
You can check the status of your order here. If you are logged in to your account, use the orders navigation and select...
Read more >How to Fetch All Order Status using REST API in Magento 2
So, we are again back with another blog, that allows you to fetch all order status using REST API in Magento 2.
Read more >Order status - Shopify Help Center
When you've shipped all the items in an order, it is Fulfilled. Prepaid subscription orders have a Scheduled status until the fulfillment date...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jaggedsoft I didn’t quite get it. The documentation mentions it in newOrder creation API and not in orderStatus. But you have added this in orderStatus(as mentioned by you in above code snippet) and order status can only be checked for an order which was already placed. And once the order is completed then only there can be any use of FULL to check the details of the fills. There seems to be ambiguity in the documentation and actual implementation? My requirement is to fetch the details of order fills, as i ultimately need the ‘price’ at which the order gets executed. using orderStatus i can get it by taking weighted avg of price and qty. Is there any other way of fetching the ‘price’?
Above code didn’t work even now. I get following error:
ERROR: "{\"code\":-1104,\"msg\":\"Not all sent parameters were read; read '5' parameter(s) but was sent '6'.\"}"