Add additional fields in orders response
See original GitHub issueIt 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:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
@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
Reference: #233