Skip to main content

Admin Get OTC Token Deals

Retrieves OTC deals for a specific token and node with pagination support.

Request

POST /v2/admin/otcs/nodes/{node_id}/tokens/{token_id}

Parameters

NameTypeInDescription
node_idstringPath. The ID of the node
token_idstringPath. The ID of the token to get deals for

Request Body

NameTypeDescription
pageintegerRequired. Page number for pagination
per_pageintegerRequired. Number of items per page

Headers

NameTypeDescription
AuthorizationRequired. Bearer token for authentication
Content-TypeRequired. application/json

Example

curl --location '\{\{baseUrl\}\}/v2/admin/otcs/nodes/6810a8e5b45680e7d2f95bad/tokens/68ae06cfcccf4e8fc19362d1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--data '{
"page": 1,
"per_page": 10
}'

Response

{
"data": [
{
"id": "68bf5152932e6bcb90859816",
"token_id": "68ae06cfcccf4e8fc19362d1",
"node_id": "6810a8e5b45680e7d2f95bad",
"user_id": "680c02896d91ca0145cfeb81",
"deal_id": 2,
"price": {
"amount": 5,
"decimal": 6,
"symbol": "USDT",
"address": "0xdb2e8354c2a2a0f9c7c889ec27cdd424d49c8fd1"
},
"quantity": 1,
"status": 0,
"created_at": "2025-09-08T21:37:00Z",
"updated_at": "2025-09-08T21:37:00Z"
}
],
"total": 1,
"page": 1,
"per_page": 10
}

Response Fields

FieldTypeDescription
dataarrayArray of OTC deals
data[].idstringUnique identifier of the deal
data[].token_idstringID of the token
data[].node_idstringID of the node
data[].user_idstringID of the user who created the deal
data[].deal_idintegerDeal identifier number
data[].priceobjectPrice information
data[].price.amountnumberPrice amount
data[].price.decimalintegerDecimal places for the price
data[].price.symbolstringPrice symbol (e.g., USDT)
data[].price.addressstringContract address of the price token
data[].quantityintegerQuantity of tokens in the deal
data[].statusintegerStatus of the deal (0 = active)
data[].created_atstringISO 8601 timestamp when the deal was created
data[].updated_atstringISO 8601 timestamp when the deal was last updated
totalintegerTotal number of items across all pages
pageintegerCurrent page number
per_pageintegerNumber of items per page