For the complete documentation index, see llms.txt. This page is also available as Markdown.

export

Export trade or funding history for an account. Supply both start_timestamp and end_timestamp in Unix milliseconds, or omit both for available history. If supplied, start_timestamp must be on or after 2025-01-01 UTC and earlier than end_timestamp. Exports are processed asynchronously; large histories may require smaller date ranges. The current implementation limits output to 40 GiB and processing to four hours; a completed export URL is valid for six hours.

get
/api/v1/export
Query parameters
account_indexinteger · int64Optional

Account index to query.

Default: -1
market_idinteger · int16Optional

Public market identifier returned by orderBooks or events.

Default: 255
typestring · enumRequired

Select one of the listed record types.

Possible values:
start_timestampinteger · int64 · min: 1735689600000 · max: 1830297600000Optional

Inclusive start of the requested time range, as a Unix timestamp in milliseconds.

end_timestampinteger · int64 · min: 1735689600000 · max: 1830297600000Optional

End of the requested time range, as a Unix timestamp in milliseconds.

sidestring · enumOptional

Position or trade side filter.

Default: allPossible values:
rolestring · enumOptional

Select fills where the account was the maker or taker, or all fills.

Default: allPossible values:
trade_typestring · enumOptional

Trade type to include in the export.

Default: allPossible values:
aggregatebooleanOptional

Include remaining fills for the last order on the page; requires account_index.

Default: false
Header parameters
authorizationstringRequired

Auth token in the Authorization header.

Responses
200

A successful response.

application/json
codeinteger · int32RequiredExample: 200
messagestringOptional
data_urlstringRequired
get/api/v1/export
GET /api/v1/export?type=funding HTTP/1.1
Host: mainnet.zklighter.elliot.ai
authorization: text
Accept: */*
{
  "code": 200,
  "message": "text",
  "data_url": "text"
}

Last updated

Was this helpful?