question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to fetch a FULL order status

See original GitHub issue

Hello, 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
adityamertiacommented, Feb 4, 2018

@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’?

1reaction
adityamertiacommented, Feb 4, 2018

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'.\"}"

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found