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.

Add additional fields in orders response

See original GitHub issue

It would be good if we add additional fields to the order response, like order validity, stop price, stop limit, post only. I know few exchange may lack few fields like post only which will be only available for maker taker exchanges. But fields like order validity and stops are common across all exchanges.

Here is an example from GDAX.

[
  {
    "id": "5ca4ccf3-4f14-48d4-bb4c-9799dbd06cd5",
    "info": {
      "id": "5ca4ccf3-4f14-48d4-bb4c-9799dbd06cd5",
      "price": "49.99000000",
      "size": "1.00000000",
      "product_id": "LTC-USD",
      "side": "sell",
      "stp": "dc",
      "type": "limit",
      "time_in_force": "GTC",
      "post_only": false,
      "created_at": "2017-10-23T23:54:20.499592Z",
      "fill_fees": "0.0000000000000000",
      "filled_size": "0.00000000",
      "executed_value": "0.0000000000000000",
      "status": "active",
      "settled": false,
      "stop": "loss",
      "stop_price": "50.00000000"
    },
    "timestamp": 1508802860499,
    "datetime": "2017-10-23T23:54:20.499Z",
    "status": "open",
    "symbol": "LTC/USD",
    "type": "limit",
    "side": "sell",
    "price": 49.99,
    "cost": 0,
    "amount": 1,
    "filled": 0,
    "remaining": 1
  }
]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
anandanand84commented, Oct 24, 2017

@kroitor Validity is the time in force “time_in_force”: “GTC”, yes it is possible for an exchange to be invalid after a certain period of time, here is an example in gdax the valid values are good till cancelled, good till specified time( 1min, 1hour), immediate or cancel or fill or kill

0reactions
kroitorcommented, Oct 24, 2017

Reference: #233

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding custom fields to orders - Tremendous API
Tremendous has a feature called Custom Fields that allows you to attach custom data to a reward, use it for search / tracking...
Read more >
How to add custom fields to a Order Request
Select the field titled Field Type and select either Text, Dropdown, Checkbox, or Date. Select the Required toggle to make the Custom Field...
Read more >
Add and display custom fields for orders | WordPress.org
I am looking for a way to manually add a custom field (for example, a text or URL) to a Woocommerce order from...
Read more >
How to Add Additional Fields to an Keap Max Classic Order ...
Solution 1 (very technical): Add additional or custom fields directly to an Keap Max Classic order form. Initials steps for adding each of...
Read more >
Adding custom fields to customers, orders, and products.
Go to Settings > Custom Fields. · Click Add new field in the customer, order, or product section. · Give the field a...
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