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.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
The UTC day, yyyy-MM-dd.
The symbol, with / written - and : written _.
Headers
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.