getAskOrderIds
Retrieves a paginated array of unsigned -bit order identifiers for active sell-side (ask) orders matching a specific Totem-currency pair, sorted by price ascending.
Endpoint Details
- HTTP Method:
POST - Gateway Path:
/nxt - Content-Type:
application/x-www-form-urlencoded - API Tags:
AE - Chain Specific: Yes
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
requestType | String | Yes | Must be set to getAskOrderIds. |
totem | long / String | Yes | Unique -bit identifier of the Totem. |
currency | long / String | Yes | Unique -bit identifier of the payment currency. |
chain | int | Yes | Sovereign BetaChain ID. |
firstIndex | int | No | Zero-based start index for pagination. Default: 0. |
lastIndex | int | No | End index for pagination. Default: -1. |
Example Request
curl -X POST http://localhost:22024/nxt \
-d "requestType=getAskOrderIds" \
-d "chain=2" \
-d "totem=9876543210123456789" \
-d "currency=5544332211" \
-d "firstIndex=0" \
-d "lastIndex=10"
Successful Response
{
"askOrderIds": [
"88492019481029384",
"88492019481029385",
"88492019481029389"
]
}
Error Codes
| Error Code | Cause / Description |
|---|---|
UNKNOWN_TOTEM | Totem ID does not exist on the network. |
UNKNOWN_CURRENCY | Currency ID does not exist on the specified BetaChain. |
INCORRECT_CHAIN | Invalid or inactive BetaChain ID specified. |