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 ?