Skip to main content

GetAvailableToSell

Retrieves the available quantity of currency that can be sold at a specific rate for an order.

Request

GET /nxt?requestType=getAvailableToSell

Parameters

NameTypeDescriptionRequired
orderlongOrder IDYes
rateQNTPerUnitlongRate per unitYes

Response

{
"rateQNTPerUnit": "500",
"unitsQNT": "1000000000",
"amountQNT": "5000000000000"
}

Response Fields Description

FieldTypeDescription
rateQNTPerUnitstringExchange rate
unitsQNTstringAvailable units
amountQNTstringTotal amount at the rate

Example

curl "http://localhost:22024/nxt?requestType=getAvailableToSell&order=11111&rateQNTPerUnit=500"