API 문서와 가이드는 영문으로 제공됩니다.
Developer docs

Flat Files

Full-market daily bars, minute bars, trades and quotes packaged per trading day — the fast way to load a backtest database.

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.

GET/v1/flatfiles/us_stocks_sip/day_aggs_v1/{yyyy}/{mm}/{yyyy-mm-dd}.csv.gz

Daily 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
GET/v1/flatfiles/us_stocks_sip/minute_aggs_v1/{yyyy}/{mm}/{yyyy-mm-dd}.csv.gz

Minute 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.

Full-market trades and quotes (Advanced only)

GET/v1/flatfiles/us_stocks_sip/quotes_v1/{yyyy}/{mm}/{yyyy-mm-dd}.csv.gz

Every NBBO quote change for the whole market on one trading day. The files are large: 5.7–11.5 GB per day compressed in October 2026, about 193 GB for the month, and several times that once unzipped.

GET/v1/flatfiles/us_stocks_sip/trades_v1/{yyyy}/{mm}/{yyyy-mm-dd}.csv.gz

Every trade for the whole market on one trading day, about 2.6–3.6 GB per day compressed.

Fields match the REST trades and quotes endpoints; column names are in the first line of each file, and timestamps are in nanoseconds. Only paid stocks Advanced plans can download these; Starter and trials get 403.

  • Counted against monthly traffic: these files share your monthly traffic allowance with REST (120 GB on Advanced), by bytes actually downloaded, then traffic packs. Before a download starts we check you have enough left for the whole file; if not you get 429 instead of a download that stops halfway.
  • Speed: up to 5 MB/s per download (about 35 minutes for 10 GB), one file at a time per key. When many people are downloading at once you may get 429; retry a little later.
  • Resume: Range requests are supported, so an interrupted download can continue where it stopped without counting the same bytes twice.
  • Not cached (X-Cache: BYPASS), and each download counts toward the daily file quota.
# -C - makes curl resume after an interruption
curl -C - "https://marilux.dev/v1/flatfiles/us_stocks_sip/quotes_v1/2026/10/2026-10-30.csv.gz" \
  -H "Authorization: Bearer mh_live_your_key" -o 2026-10-30-quotes.csv.gz

Options daily bars, minute bars and trades (Options members)

GET/v1/flatfiles/us_options_opra/day_aggs_v1/{yyyy}/{mm}/{yyyy-mm-dd}.csv.gz

Daily bars for every options contract on one trading day, about 3.5 MB.

GET/v1/flatfiles/us_options_opra/minute_aggs_v1/{yyyy}/{mm}/{yyyy-mm-dd}.csv.gz

Minute bars for every options contract on one trading day, about 23 MB.

GET/v1/flatfiles/us_options_opra/trades_v1/{yyyy}/{mm}/{yyyy-mm-dd}.csv.gz

Every options trade on one trading day, about 55–71 MB.

The ticker column is the options contract (for example O:SPY251219C00600000); other column names are in the first line, and timestamps are in nanoseconds. Only paid Options plans can download these; the Options trial and stocks-only keys get 403. The rules match the stock trades and quotes files above: counted against monthly traffic by bytes (a month of options minute bars is about 0.5 GB), up to 5 MB/s per download, one file at a time per key, resumable, not cached, and each download counts toward the daily file quota.

Options quotes (us_options_opra/quotes_v1) are 100–160 GB per day, more than a whole month of traffic, so we don't offer them as daily files. For quotes on specific underlyings, use the REST options quotes endpoint or contact support for an export.

curl -C - "https://marilux.dev/v1/flatfiles/us_options_opra/minute_aggs_v1/2026/10/2026-10-01.csv.gz" \
  -H "Authorization: Bearer mh_live_your_key" -o 2026-10-01-options-minute.csv.gz

Flat Files hold the raw, unadjusted data for the whole market, one file per trading day. If you only need a few tickers over many years, historical data downloads are simpler: one file per ticker, with splits, dividends and ticker changes already handled.

Daily file limits: Starter 100 files/day; Advanced 200 files/day; Options 200 files/day (a key with both stocks and options plans gets the larger limit, shared by stock and options files). 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. US stock daily bars, minute bars, trades and quotes, and options daily bars, minute bars and trades are available; other asset classes are not. Files are published with about a one-day delay.