v1

latestOpenAPI 3.0.22026-07-26128245430.3 KB
Liquidation Addresses

List drains with pending USDT trades

Returns drains that have a stuck USDT-to-USD trade awaiting execution. Results are sorted by creation time (newest first) and paginated.

Use POST /customers/{customerID}/liquidation_addresses/{liquidationAddressID}/drains/{drainID}/execute to force-execute a pending trade at the current market rate.

get/liquidation_addresses/drains/pending

Query parameters

limitinteger

The number of items to return (min 1, default 10, max 100)

starting_afterstring

This is a drain id. If this is specified, the next page that starts with a drain right AFTER the specified drain id on the drain timeline, which is always ordered from the newest to the oldest by creation time, will be returned. This also implies that drains older than the specified drain id will be returned (shouldn't be set if ending_before is set)

ending_beforestring

This is a drain id. If this is specified, the previous page that ends with a drain right BEFORE the specified drain id on the drain timeline, which is always ordered from the newest to the oldest by creation time, will be returned. This also implies that drains newer than the specified drain id will be returned (shouldn't be set if starting_after is set)

updated_after_msinteger

This is a unix timestamp in milliseconds. If this is specified, objects updated AFTER the specified timestamp will be returned

updated_before_msinteger

This is a unix timestamp in milliseconds. If this is specified, objects updated BEFORE the specified timestamp will be returned

Response

List of drains with pending trades (the returned list is empty if none found)

countinteger required

The number of drains returned