GetAvailableToSell
Retrieves the available quantity of currency that can be sold at a specific rate for an order.
Request
GET /nxt?requestType=getAvailableToSell
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
order | long | Order ID | Yes |
rateQNTPerUnit | long | Rate per unit | Yes |
Response
{
"rateQNTPerUnit": "500",
"unitsQNT": "1000000000",
"amountQNT": "5000000000000"
}
Response Fields Description
| Field | Type | Description |
|---|---|---|
rateQNTPerUnit | string | Exchange rate |
unitsQNT | string | Available units |
amountQNT | string | Total amount at the rate |
Example
curl "http://localhost:22024/nxt?requestType=getAvailableToSell&order=11111&rateQNTPerUnit=500"