Ask us anything. We're here to help.

2020-07-13

API Updates

New Filters on GET /trades

Users can now filter the GET /trades endpoint by transaction_timestamp field based on the given timestamp in milliseconds, e.g. 1593798130060 or in nanoseconds, e.g. 1593798130060000000, using the following parameters:

  • transaction_timestamp[gt] for all trades with a timestamp greater than a given timestamp, e.g. transaction_timestamp[gt]=1593798130060
  • transaction_timestamp[gte] for all trades with a timestamp greater than or equal to a given timestamp, e.g. transaction_timestamp[gte]=1593798130060
  • transaction_timestamp[e] for all trades with a timestamp equal to a given timestamp, e.g. transaction_timestamp[e]=1593798130060
  • transaction_timestamp[lt] for all trades with a timestamp less than a given timestamp, e.g. transaction_timestamp[lt]=1593798130060
  • transaction_timestamp[lte] for all trades with a timestamp less than or equal to a given timestamp, e.g. transaction_timestamp[lte]=1593798130060

A user can combine the above parameters for more complex combinations, e.g. to find trades between 1593798130555 and 1593798130777 you can use the combination transaction_timestamp[gt]=1593798130555&transaction_timestamp[lt]=1593798130777.

Deprecating usd_adjusted from GET /accounts/:id

Following up from the recent deprecation of usd_adjusted from GET /accounts, the field is now deprecated from the GET /accounts/:id endpoint.

The new response will be:

{
"message":[
{
"asset":"USD",
"account_owner":"ABC123",
"account_type":"collateral_deficiency",
"account_group":"XYZ456",
"balance":"0.00",
"account_id":"ce819fe8-b1d7-43bb-961c-e09ede0988d3",
"last_update":1554395972174
}
]
}