Skip to main content

Admin OTC Group Search

Searches for OTC token groups for a specific node with pagination support.

Request

POST /v2/admin/otcs/nodes/{node_id}/group-search

Parameters

NameTypeInDescription
node_idstringPath. The ID of the node to search OTCs 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/group-search' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--data '{
"page": 1,
"per_page": 10
}'

Response

{
"data": [
{
"token_id": "68ae06cfcccf4e8fc19362d1",
"total_count": 1,
"token_address": "0x78fccec69e21dc0b331b59f283d4d5b41ff36654",
"token_price_symbol": "USDT",
"token_image": "https://fra1.digitaloceanspaces.com/apex/dev/token/68ae06cfcccf4e8fc19362d1/images/c476dc47-374f-4da9-a948-ecd76b9c8305.png",
"token_name": "DeriToken",
"token_symbol": "DeriToken",
"token_status": 6,
"token_category_id": "667e9251ca818a2138ed4915",
"total_quantity": 1,
"min_price": 5,
"max_price": 5
}
],
"total": 1,
"page": 1,
"per_page": 10
}

Response Fields

FieldTypeDescription
dataarrayArray of OTC token groups
data[].token_idstringUnique identifier of the token
data[].total_countintegerTotal number of OTC deals for this token
data[].token_addressstringContract address of the token
data[].token_price_symbolstringPrice symbol (e.g., USDT)
data[].token_imagestringURL of the token image
data[].token_namestringName of the token
data[].token_symbolstringSymbol of the token
data[].token_statusintegerStatus of the token
data[].token_category_idstringID of the token category
data[].total_quantityintegerTotal quantity available in OTC
data[].min_pricenumberMinimum price for this token in OTC
data[].max_pricenumberMaximum price for this token in OTC
totalintegerTotal number of items across all pages
pageintegerCurrent page number
per_pageintegerNumber of items per page