Swap Request2
Authentication
Name
Type
Description
Request Body
Name
Type
Description
{
"data": {
"track_id": string, // Unique identifier for the transaction, typically represented as a string (e.g., transaction ID or session ID).
"from_currency": string, // The currency being exchanged from, e.g., 'USDT' (Tether).
"to_currency": string, // The currency being exchanged to, e.g., 'BTC' (Bitcoin).
"from_amount": decimal, // The amount of the "from_currency" being swapped, represented with high precision (e.g., 10 USDT).
"to_amount": decimal, // The amount of the "to_currency" received after the swap, represented with high precision (e.g., 0.0001054 BTC).
"rate": decimal, // The exchange rate between the "from_currency" and "to_currency" at the time of the transaction (e.g., 1 USDT = 94876.66034156 BTC).
"date": integer // Timestamp (UNIX epoch) representing when the swap occurred, typically in seconds (e.g., 1736508792 for the time the swap was executed).
},
"message": string, // A message containing additional information about the result of the request.
"error": {
"type": string,
"key": string,
"message": string
} || {}, // An object that provides details about any errors that occurred.
"status": integer, // The status of the request response. Typically provided as a numeric code (e.g., 200 for success or other codes for errors).
"version": string // The version of the API being used.
}API Request Sample Codes
API Response Example
Last updated