GetLastExchanges
Retrieves the most recent currency exchanges for a list of specified currencies.
Request
GET /nxt?requestType=getLastExchanges
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
currencies | long | Comma-separated list of currency IDs | Yes |
includeCurrencyInfo | boolean | Include currency metadata in response | Optional |
Response
{
"exchanges": [
{
"transactionFullHash": "abc123...",
"timestamp": 123456789,
"unitsQNT": "1000000000",
"rateQNTPerUnit": "500",
"currency": "987654321",
"baseCurrency": "555555555",
"offer": "111111111",
"offerFullHash": "def456...",
"seller": "1234567890",
"buyer": "0987654321",
"block": "50000",
"height": 250
}
]
}
Example
# Get last exchanges for specific currencies
curl "http://localhost:22024/nxt?requestType=getLastExchanges¤cies=987654321,555555555"