Skip to main content
GET
/
v1
/
instant-swap
/
order
/
list
Get instant swap order history
curl --request GET \
  --url https://api.openxswitch.com/v1/instant-swap/order/list \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": [
    {
      "id": "swap_abc123",
      "extId": "ext_abc123",
      "fee": "0.0",
      "fromCoin": "USDT",
      "fromAmount": "100",
      "toCoin": "ETH",
      "toAmount": "0.0234",
      "swapPrice": "0.000234",
      "timeStamp": "2025-04-04T12:00:00Z",
      "quoteId": "quote123",
      "walletId": "wallet_001",
      "workspaceId": "workspace_xyz"
    }
  ],
  "totalPage": 123,
  "pageNo": 123,
  "pageLimit": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.openxswitch.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

walletId
string
required

Wallet/Sub-wallet ID

Example:

"wallet_abc123"

fromCoin
string

Optional source coin filter

Example:

"USDT"

toCoin
string

Optional target coin filter

Example:

"BTC"

swapId
string

Optional swap ID to fetch a specific swap

Example:

"swap_xyz456"

pageNo
string

The page number for pagination

Example:

1

pageLimit
string

The number of items per page for pagination

Example:

20

Response

success
boolean
required
Example:

true

data
object[]
required
totalPage
number
required
pageNo
number
required
pageLimit
number
required