GetAccountCurrentAskOrders
Returns current ask orders placed by a specific account.
Request
GET /nxt?requestType=get-account-current-ask-orders
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or SHAMWARI address | Yes |
totem | long | Filter by Totem ID | Optional |
currency | long | Filter by currency ID | Optional |
firstIndex | int | Pagination start index | Optional |
lastIndex | int | Pagination end index | Optional |
Response
{
"orders": [
{
"order": "47382019481029384",
"account": "1234567890",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"totem": "987654321",
"currency": "555555555",
"quantityQNT": "1000000",
"priceNQT": "50000",
"height": 250,
"type": "ask"
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
order | string | Order ID |
account | string | Account ID |
accountRS | string | Account Reed-Solomon address in SHAMWARI format |
totem | string | Totem ID |
currency | string | Currency ID |
quantityQNT | string | Quantity in NQT |
priceNQT | string | Price in NQT |
height | int | Block height |
type | string | Order type (ask) |
Error Codes
| Code | Description |
|---|---|
| 3 | Unknown account |
Example
curl "http://localhost:22024/nxt?requestType=get-account-current-ask-orders&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ"