Skip to main content

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

NameTypeDescriptionRequired
accountstringAccount ID or SHAMWARI addressYes
totemlongFilter by Totem IDOptional
currencylongFilter by currency IDOptional
firstIndexintPagination start indexOptional
lastIndexintPagination end indexOptional

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

FieldTypeDescription
orderstringOrder ID
accountstringAccount ID
accountRSstringAccount Reed-Solomon address in SHAMWARI format
totemstringTotem ID
currencystringCurrency ID
quantityQNTstringQuantity in NQT
priceNQTstringPrice in NQT
heightintBlock height
typestringOrder type (ask)

Error Codes

CodeDescription
3Unknown account

Example

curl "http://localhost:22024/nxt?requestType=get-account-current-ask-orders&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ"