Skip to navigation

Download a data file

Answers 302 to a signed link to one family’s file for one symbol and day, and counts the file’s stored bytes against your plan: whole, when the redirect is answered, whatever you then do with the link. A second request for the same file counts again, so keep what you have fetched. Read the day’s manifest first: it says which files exist, and gives the SHA-256 to verify against.

{symbol} is the symbol with / written - and : written _: BTC/USDT is BTC-USDT, AAVE/USD:USD-20310704 is AAVE-USD_USD-20310704. {ext} is the extension of the file’s key in the manifest, csv.gz today. With curl: curl -L -H "Authorization: Bearer $KEY" -o BTC-USDT.csv.gz .../files/trades/OKX/2026-11-11/BTC-USDT.csv.gz.

Answers 302. The file’s signed link. The download is counted.

Response headerDescription
LocationA signed link to the file on storage.googleapis.com, valid for at least 10 minutes and at most 15. GET it without your Authorization header; Range requests work. Anyone holding the link can use it until it expires: do not log or share it.
X-Immix-Month-Bytes-LimitYour plan’s bytes a calendar month. Absent when it has no limit.
X-Immix-Month-Bytes-UsedThe bytes counted this calendar month, this file’s among them.
X-Request-IdThe request’s id: your X-Request-Id where you sent a usable one, a fresh id otherwise. An error restates it as error.requestId; quote it when you ask about a request.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

familystringRequired
The family, as coverage lists it.
exchangestringRequired
The exchange code.
daystringRequired

The UTC day, yyyy-MM-dd.

symbolstringRequired

The symbol, with / written - and : written _.

extstringRequired
The file's extension, as its key has it.

Headers

X-Request-IdstringOptional

Your own id for the request: 8 to 128 of [A-Za-z0-9._-]. It becomes the request’s id and is echoed on the response. A value off that grammar is replaced with a fresh id, never refused.

Errors

400
Get Files Request Bad Request Error
401
Get Files Request Unauthorized Error
403
Get Files Request Forbidden Error
404
Get Files Request Not Found Error
429
Get Files Request Too Many Requests Error
503
Get Files Request Service Unavailable Error