A whole day of daily or minute bars for every US stock, as one gzip-compressed CSV file — far more efficient than calling REST ticker by ticker. Use the same API key as REST. Flat Files have their own daily file quota and don't use REST calls.
/v1/flatfiles/us_stocks_sip/day_aggs_v1/{yyyy}/{mm}/{yyyy-mm-dd}.csv.gzDaily bars for the whole market on one trading day.
curl "https://marilux.dev/v1/flatfiles/us_stocks_sip/day_aggs_v1/2024/01/2024-01-02.csv.gz" \ -H "Authorization: Bearer mh_live_your_key" -o 2024-01-02.csv.gz
/v1/flatfiles/us_stocks_sip/minute_aggs_v1/{yyyy}/{mm}/{yyyy-mm-dd}.csv.gzMinute bars for the whole market on one trading day, usually around 20 MB.
Format: CSV with a header row; daily and minute files share the same columns:
ticker,volume,open,close,high,low,window_start,transactions AAPL,77874426,187.15,185.64,188.44,183.885,1704171600000000000,1008813
window_start is the bar's start time in nanoseconds (REST uses milliseconds); daily bars start at midnight US Eastern.
History: Starter can download the last 5 years, Advanced 20+ years; older dates return 403.
Daily file limits: Starter 20 files/day (monthly) or 100 (yearly); Advanced 40 files/day (monthly) or 200 (yearly). Trials don't include Flat Files.
Each successful download counts once, including repeats of the same file. X-Flatfiles-Used / X-Flatfiles-Limit show today's usage; the quota resets at 00:00 UTC. Only US stock daily and minute bars are available for now (no trades, quotes or options files). Files are published with about a one-day delay.