Supports pagination for ease of use.
getOrderHistory(
Array $pairs, // default ['BTC/USDT'],
String $startDate, // default 'yesterday'
String $endDate, // default 'today'
Int $pageSize, // default 50,
Int $pageNumber // default 0
): array
$orderHistory = NexoPro::getOrderHistory(
pairs: ['NEXO/USDT'],
startDate: '-1 month',
endDate: 'today',
pageSize: 50,
pageNumber: 0
);
{
"orders": [
{
"id": "532900010277356_222262959",
"side": "buy",
"pair": "NEXO/USDT",
"timestamp": 1623253114,
"quantity": "24.49",
"exchangeRate": "2.15",
"executedQuantity": "24.49"
},
{
"id": "4680059007950532_147268042",
"side": "buy",
"pair": "NEXO/USDT",
"timestamp": 1622814188,
"quantity": "23.10",
"exchangeRate": "2.132",
"executedQuantity": "12.45"
}
]
}