Skip to main content

GetSellOffers

Retrieves all sell offers (pending orders to sell currency) for a specific account or currency.

Request

GET /nxt?requestType=getSellOffers

Parameters

NameTypeDescriptionRequired
currencylongFilter by currencyOptional
accountstringFilter by accountOptional
firstIndexintPagination start indexOptional
lastIndexintPagination end indexOptional

Response

{
"sellOffers": [
{
"order": "11111",
"orderFullHash": "abc123...",
"totem": "987654321",
"account": "1234567890",
"quantityQNT": "1000000000",
"currency": "987654321",
"priceQNTPerShare": "500",
"height": 250,
"transactionIndex": 1,
"transactionHeight": 250,
"type": "ask"
}
]
}

Example

# Get sell offers for a currency
curl "http://localhost:22024/nxt?requestType=getSellOffers&currency=987654321"

# Get sell offers for an account
curl "http://localhost:22024/nxt?requestType=getSellOffers&account=1234567890"