US stocks data API

US stock market data API, from bars to ticks

US stocks and ETFs: historical bars, snapshots, reference data and corporate actions. Advanced adds real-time data, WebSocket streaming, trades, quotes and financials. Works with the Polygon SDKs.

Starter from $6.99/moReal-time on AdvancedFree 3-day trial
stocks.py
from polygon import RESTClient

client = RESTClient(api_key="mh_live_••••",
                    base="https://marilux.dev")

for bar in client.list_aggs("NVDA", 5, "minute",
                           "2025-06-02", "2025-06-02"):
    print(bar.timestamp, bar.close, bar.volume)
● OperationalCache · HIT   4ms
Coverage

Starter and Advanced

Both tiers share the same endpoint paths. Endpoints outside your plan return 404; requests beyond your history window return 403.

S

Starter

Data delayed about 15 minutes, 5 years of history. Minute, hour and daily bars, grouped daily bars, open/close, snapshots and top movers, ticker reference data, splits and dividends, IPO calendar, market status and holidays.

A

Advanced

Real-time data and 20+ years of history. Everything in Starter plus trades, NBBO quotes, income statements, balance sheets, cash flow statements and ratios, short interest and short volume, free float, and WebSocket streaming.

F

Flat Files

Full-market daily and minute bars per trading day as gzip CSV: the last 5 years on Starter, 20+ years on Advanced, metered by files per day.

Use cases

What people build

Full parameters and responses are in the API docs.

Backtesting

Pull the whole market's daily bars with /v2/aggs/grouped/locale/us/market/stocks/{date} or Flat Files, and adjust prices with splits and dividends.

Dashboards and alerts

Poll snapshots and top movers, or subscribe to T.AAPL / Q.AAPL over WebSocket on Advanced for tick-by-tick updates.

Fundamental research

Advanced includes income statements, balance sheets, cash flows, ratios, short data and float, filterable by ticker and fiscal period.