Liquidation Addresses

List drains with pending USDT trades

Changed on

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

Request

  • Base URL
    https://api.bridge.xyz/v0
  • URL
    https://api.bridge.xyz/v0/liquidation_addresses/drains/pending
  • Auth
    API key in header Api-Key

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

Example response

{
  "data": [
    {
      "return_details": {
        "risk_rejection_reason": "Exceeds Transaction Limits"
      }
    }
  ]
}

Changes

    • warning

      added the new ousd enum value to the // response property for the response status

    • warning

      added the new ousd enum value to the /// response property for the response status

    • warning

      added the new ousd enum value to the /// response property for the response status

    • warning

      added the new path_usd enum value to the // response property for the response status

    • warning

      added the new path_usd enum value to the /// response property for the response status

    • warning

      added the new path_usd enum value to the /// response property for the response status

    • warning

      added the new usdl_linea enum value to the // response property for the response status

    • warning

      added the new usdl_linea enum value to the /// response property for the response status

    • warning

      added the new usdl_linea enum value to the /// response property for the response status

    • info

      the response optional property /// became read-only for the status