Provides real-time and historical data for stocks, options, indices, forex, and cryptocurrencies. Widely used in financial data engineering pipelines for building market dashboards, backtesting strategies, and loading OHLCV data into time-series databases.
The `polygon-api-client` Python library provides typed methods for REST and WebSocket endpoints. Engineers use `client.get_aggs()` to pull historical OHLCV bars and store them in TimescaleDB or Parquet for backtesting frameworks like Backtrader or Zipline.
Polygon.io's high-quality financial data is the foundation for AI trading models that predict price movements and generate trading signals. RAG systems can retrieve recent OHLCV data and earnings reports so LLM agents can provide data-grounded financial analysis instead of hallucinated numbers.
# pip install polygon-api-client pandas
from polygon import RESTClient
import pandas as pd
client = RESTClient("YOUR_API_KEY")
bars = client.get_aggs("AAPL", 1, "day", "2024-01-01", "2024-01-31")
df = pd.DataFrame([{"date": b.timestamp, "close": b.close, "volume": b.volume}
for b in bars])
print(df.head())Official dataset source
More datasets used by Python data engineers.
Access labour market statistics from the US Bureau of Labor Statistics including employment, unemployment, wages, inflation (CPI), and productivity data. Widely used in economic data pipelines for trend analysis, time-series modelling, and government data ingestion workflows.
Access US macroeconomic statistics from the Bureau of Economic Analysis, including GDP, personal income, consumer spending, and international trade data. Ideal for building economic indicator pipelines, loading national accounts data into warehouses, and time-series analysis in Python.
Access real-time and historical cryptocurrency prices, market capitalisation, trading volume, exchange data, and DeFi metrics for 10,000+ coins. Used in financial data engineering pipelines for building crypto dashboards, backtesting trading strategies, and loading market data into time-series databases with Python.