Skip to content

Polygon

US equities, options, forex, and crypto data from Polygon.io.

Source ID

"source": "polygon"

Credentials

"credentials": {
    "api_key": "your-polygon-api-key"
}

Get your API key at Polygon.io.

Ticker Format

Standard US equity tickers. Crypto tickers use X: prefix:

Example Instrument
AAPL Apple Inc.
SPY S&P 500 ETF
X:BTCUSD Bitcoin

Supported Intervals

1s, 1m, 5m, 15m, 30m, 1h, 1d, 1w, 1M, 1q, 1y

Response Fields

Polygon returns additional fields beyond standard OHLCV:

Field Description
Open, High, Low, Close Standard price fields
Volume Trading volume
VWAP Volume-weighted average price
NTrades Number of trades in the bar

Examples

US equities (daily)

response = requests.post(URL, headers=HEADERS, json={
    "tickerlist": ["AAPL", "TSLA"],
    "start": "2025-01-01",
    "end": "2025-06-01",
    "interval": "1d",
    "source": "polygon",
    "credentials": {
        "api_key": "YOUR_POLYGON_KEY"
    }
})