Initiates an asynchronous job to export conversion data for the specified date range. The export will be generated in the requested format and uploaded to S3. The job processes conversions in batches and includes conversion ID, source/destination assets, estimated input/output amounts, and other relevant metadata.
curl --request POST \
--url https://api.staging.layer1.com/trade/v1/exports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "2023-09-01T00:00:00Z",
"to": "2023-09-30T23:59:59Z",
"format": "CSV"
}
'{
"code": "<string>",
"traceId": "<string>",
"status": "<string>",
"message": "<string>",
"details": {
"documentLink": "<string>",
"errors": {}
}
}Documentation Index
Fetch the complete documentation index at: https://exness-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Type of export to create. Must be 'conversion' for this endpoint
Export request containing date range and format specifications
Request to export conversion data for a specified date range with optional filters
Inclusive start date and time from which the report will be generated. This date must be earlier than the 'to' date.
"2023-10-01T00:00:00Z"
Inclusive end date and time up to which the report will be generated. This date must be later than the 'from' date. If not provided, it will be set to now.
"2023-10-31T23:59:59Z"
Format of the report to generate. Supported formats: CSV (comma-separated values), JSON (JavaScript Object Notation). Defaults to CSV if not specified.
CSV, JSON "CSV"
Optional query string to filter conversions. Supports filters like 'direction:FIXED_FROM_AMOUNT', 'fromAsset:BTC', 'toAsset:USD', 'venues:kraken', and combinations like 'direction:FIXED_FROM_AMOUNT fromAsset:BTC'
"direction:FIXED_FROM_AMOUNT fromAsset:BTC"
Export job created successfully and queued for processing
curl --request POST \
--url https://api.staging.layer1.com/trade/v1/exports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "2023-09-01T00:00:00Z",
"to": "2023-09-30T23:59:59Z",
"format": "CSV"
}
'{
"code": "<string>",
"traceId": "<string>",
"status": "<string>",
"message": "<string>",
"details": {
"documentLink": "<string>",
"errors": {}
}
}