Skip to main content
POST
/
trade
/
v1
/
exports
Create conversion export
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.

Query Parameters

type
string
default:conversion
required

Type of export to create. Must be 'conversion' for this endpoint

Body

application/json

Export request containing date range and format specifications

Request to export conversion data for a specified date range with optional filters

from
string<date-time>

Inclusive start date and time from which the report will be generated. This date must be earlier than the 'to' date.

Example:

"2023-10-01T00:00:00Z"

to
string<date-time>

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.

Example:

"2023-10-31T23:59:59Z"

format
enum<string>

Format of the report to generate. Supported formats: CSV (comma-separated values), JSON (JavaScript Object Notation). Defaults to CSV if not specified.

Available options:
CSV,
JSON
Example:

"CSV"

query
string

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'

Example:

"direction:FIXED_FROM_AMOUNT fromAsset:BTC"

Response

Export job created successfully and queued for processing