Skip to main content

Find OTC Order Rules by Node ID

Retrieve OTC order rules for a specific node with pagination support.

Request

GET /v2/admin/otc-order-rules/nodes/{node_id}

Parameters

NameTypeInDescription
node_idstringpathThe ID of the node

Query Parameters

NameTypeDescription
pageintegerPage number (default: 1)
per_pageintegerItems per page (default: 20)

Headers

NameTypeDescription
AuthorizationstringBearer token for authentication

Example

curl --location '\{\{baseUrl\}\}/v2/admin/otc-order-rules/nodes/6901350deb7ed8c1c38de4e9?page=1&per_page=20' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'

Response

{
"data": [
{
"id": "6910a6ab5f635dd4dc251581",
"node_id": "6901350deb7ed8c1c38de4e9",
"token_id": "6904f0899d5be71059bf7845",
"side": 1,
"rule_type": 2,
"min_offer_quantity": 2,
"max_offer_quantity": 111,
"consume_on_match": true,
"priority": 3,
"status": 1,
"valid_from": "2025-11-12T01:04:12Z",
"valid_until": "2025-11-19T01:04:24Z",
"name": "Ilk Kural",
"created_by": "665b372f3a72d7d0791596ba",
"created_at": "2025-11-09T14:35:23.19Z",
"updated_at": "2025-11-09T19:32:15.618Z",
"is_api": false
}
],
"total": 1,
"page": 1,
"per_page": 20
}

Response Fields

FieldTypeDescription
dataarrayList of OTC order rules
data[].idstringUnique identifier of the rule
data[].node_idstringID of the node
data[].token_idstringID of the token
data[].sideintegerSide indicator
data[].rule_typeintegerRule type
data[].min_offer_quantityintegerMinimum offer quantity
data[].max_offer_quantityintegerMaximum offer quantity
data[].consume_on_matchbooleanWhether the order is consumed on match
data[].priorityintegerRule priority
data[].statusintegerRule status
data[].valid_fromstringISO 8601 start of validity
data[].valid_untilstringISO 8601 end of validity
data[].namestringRule name
data[].created_bystringCreator ID
data[].created_atstringISO 8601 creation timestamp
data[].updated_atstringISO 8601 last update timestamp
data[].is_apibooleanWhether created by API
totalintegerTotal number of items across all pages
pageintegerCurrent page number
per_pageintegerNumber of items per page

Status Codes

CodeDescription
200Success
401Unauthorized - Missing or invalid token
404Not Found - Node ID does not exist
500Internal Server Error