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
| Name | Type | In | Description |
|---|---|---|---|
node_id | string | path | The ID of the node |
Query Parameters
| Name | Type | Description |
|---|---|---|
page | integer | Page number (default: 1) |
per_page | integer | Items per page (default: 20) |
Headers
| Name | Type | Description |
|---|---|---|
Authorization | string | Bearer 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
| Field | Type | Description |
|---|---|---|
data | array | List of OTC order rules |
data[].id | string | Unique identifier of the rule |
data[].node_id | string | ID of the node |
data[].token_id | string | ID of the token |
data[].side | integer | Side indicator |
data[].rule_type | integer | Rule type |
data[].min_offer_quantity | integer | Minimum offer quantity |
data[].max_offer_quantity | integer | Maximum offer quantity |
data[].consume_on_match | boolean | Whether the order is consumed on match |
data[].priority | integer | Rule priority |
data[].status | integer | Rule status |
data[].valid_from | string | ISO 8601 start of validity |
data[].valid_until | string | ISO 8601 end of validity |
data[].name | string | Rule name |
data[].created_by | string | Creator ID |
data[].created_at | string | ISO 8601 creation timestamp |
data[].updated_at | string | ISO 8601 last update timestamp |
data[].is_api | boolean | Whether created by API |
total | integer | Total number of items across all pages |
page | integer | Current page number |
per_page | integer | Number of items per page |
Status Codes
| Code | Description |
|---|---|
| 200 | Success |
| 401 | Unauthorized - Missing or invalid token |
| 404 | Not Found - Node ID does not exist |
| 500 | Internal Server Error |