Hello! I am trying to use the REST API to get info on orders. The API reference states that a potential output is expire_time “at which order expires.” I assume that this is for GTT limit orders where you can specify the cancel_after as a min, hour, and day, and then expire_time translate that to a timestamp.
To test this, I created a day-long order to sell at some random price well above the current “ask” on the sandbox. When getting the order in the REST API, the following is returned (censoring the UUIDs):
id ########-####-####-####-############
client_oid ########-####-####-####-############
price 47300.00000000
size 0.00119000
product_id BTC-USD
profile_id ########-####-####-####-############
side sell
type limit
time_in_force GTT
post_only True
created_at 2022-04-02T01:23:23.329167Z
fill_fees 0.0000000000000000
filled_size 0.00000000
executed_value 0.0000000000000000
status open
settled False
Note that the time_in_force is GTT, but expire_time is not specified.
Hello @Magi! We already raised this issue to the responsible team of specialists and we will get back to you once we have more details. Thanks for reaching out!
Hi @Magi, we noted that you were able to extract the expire_time from your initial Create Order response. We were able to replicate this in the Sandbox as well. We believe that this is the only viable option to satisfy your workflow as of this moment.
In the meantime, our engineers are still checking to see whether this is a documentation issue or an API response issue. We’ll update you as soon as possible.
Hi @Magi, Thank you for your patience. We would like to inform you that this bug has been now resolved, expire_time should now be getting returned for GTT Limit orders when calling an existing order.