Time_in_force parameter not in response

Hi,

I’m currently implementing a python API connector for Coinbase and during my tests I realized that the parameter ‘time_in_force’ is not returned into the response.

For example I created an order and I received the following response


{
    "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "size": "1",
    "product_id": "USDT-EUR",
    "side": "sell",
    "stp": "dc",
    "type": "market",
    "post_only": false,
    "created_at": "2023-07-05T13:19:02.90769Z",
    "fill_fees": "0",
    "filled_size": "0",
    "executed_value": "0",
    "status": "pending",
    "settled": false
}

From this documentation the ‘time_in_force’ parameter is supposed to be returned with one of the following values [GTC, GTT, IOC, FOK]

Since I created the order it’s not such a big deal, because I know what time_in_force I sent.

However, I also have the issue when querying the order

{
    "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "size": "1.00000000",
    "product_id": "USDT-EUR",
    "profile_id": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
    "side": "sell",
    "type": "market",
    "post_only": false,
    "created_at": "2023-07-05T13:19:02.912631Z",
    "done_at": "2023-07-05T13:19:02.912631Z",
    "done_reason": "filled",
    "fill_fees": "0.0000091745000000",
    "filled_size": "1.00000000",
    "executed_value": "0.9174500000000000",
    "market_type": "spot",
    "status": "done",
    "settled": true,
    "funding_currency": "EUR"
}

Once again, from this documentation the parameter is supposed to be here.

Does anybody knows why the ‘time_in_force’ parameter in not present in the response ?

Hi @arkaik! Thank you for using Advanced Trade API.
We understand that you are not able to see the time in force parameter in the responses as per the documentation. We will look into it and reach out to you with an update. Please keep in touch.

Hey @arkaik! Seems like you are using pro or exchange. Earlier this year we announced the depreciation of Pro API and requested all our users to move to Advanced trade API. You can read all about that in our blog. Thank you for sharing this with us. We would suggest you to try the same with our Advanced trade API once and let us know in case you are still getting the same response. If so, please share a screenshot of the response that you are getting without the time_in_force value. So that we can further share this with our team to look into it. Looking forward to your response.