Skip to main content
POST
Export a SQL query as a Parquet or CSV file
For whole-market history you may not need this: the free datasets are one download. Use export for what they do not hold, such as every fill with fees and PnL, per-wallet tables, sub-hourly marks and custom filters.

Authorizations

Authorization
string
header
required

Ironflow API key, format if_xxxx. Free keys at https://ironflow.sh/key. Optional on read endpoints.

Body

application/json
sql
string
required

One read-only ClickHouse statement, without a FORMAT clause.

Maximum string length: 20000
format
enum<string>
default:parquet

File format.

Available options:
parquet,
csv

Response

The file. Content-Disposition names it; X-Ironflow-Export-Rows and X-Ironflow-Export-Max-Rows give its size against the cap.

The response is of type file.