v1
latestOpenAPI 3.0.22026-07-26128245430.3 KBList 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.
Query parameters
The number of items to return (min 1, default 10, max 100)
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)
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)
This is a unix timestamp in milliseconds. If this is specified, objects updated AFTER the specified timestamp will be returned
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)