cURL
curl --request POST \ --url https://app.sandbox.rio.trade/api/orders/export \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "email": "user@example.com", "id": "b49f4084b96e4fb76f5a496e", "userId": "b49f4084b96e4fb76f5a496e", "brokerId": "b49f4084b96e4fb76f5a496e", "startDate": "2024-01-01T00:00:00.000Z", "endDate": "2024-01-31T23:59:59.999Z", "fiat": "MXN", "crypto": "BTC", "side": "Buy", "status": "completed", "country": "Mexico", "minOrderSize": 100, "maxOrderSize": 10000, "orderStatusGroups": [ "completed", "processing" ] }'
Exports orders as a CSV file and sends it to the specified email address. This is an asynchronous operation that returns immediately with a 202 status.
Export request accepted. CSV will be sent to the provided email.