Skip to main content

Admin OTC Group Search

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

Request

GET /v2/admin/otcs?node_id={node_id}

Parameters

NameTypeInDescription
node_idstringqueryRequired. The node whose OTC offers are listed
pageintegerqueryRequired. Page number, minimum 1
per_pageintegerqueryRequired. Items per page, 1–100

The node moved from the path to a query filter and the call became a GET: it is a plain listing, and the paging that used to travel in a JSON body now travels in the URL. There is no request body.

Headers

NameTypeDescription
AuthorizationRequired. Bearer token for authentication

Example

curl --location '\{\{baseUrl\}\}/v2/admin/otcs?node_id=6810a8e5b45680e7d2f95bad&page=1&per_page=10' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'

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