StratCraft/Data Sources
Index · updated 2026-04-28 · 4 sources

Quant Data Sources
Compared, Not Listed.

Pick the right market data feed for your strategy. Free vs paid, broad vs deep, agent-friendly vs raw. Compared on the dimensions that actually matter for backtests.

4
asset coverage
crypto · equities · fx · options
4 / 4
free tier sources
every source has a free path
3 / 4
streaming feeds
websocket on Binance, Polygon, Alpaca
3 / 4
agent-friendly
stable schema, OpenAPI or SDK
HOW TO READ THIS PAGE

Each row maps to a runnable example.

Every StratCraft example strategy connects to one of these four data sources. This page is the index. Each card and table row links to a detailed integration guide with code samples, rate-limit notes, and known caveats.

SIDE BY SIDE

The four feeds, on the dimensions that matter.

Asset coverage, pricing, API quality, agent-friendliness, docs. Click any row to see what we recommend the source for.

Source
Asset coverage
Pricing
API quality
Agent
BNBinance
Crypto · Spot, Futures, Options
Free public API
REST + WebSocket, mature
High
YFYahoo Finance
Equities · ETFs · Indices · FX
Free · unofficial
Scraping-based, rate limited
Medium
PGPolygon.io
US Equities · Options · FX · Crypto
Free tier + paid plans
REST + WebSocket, professional
High
ALAlpaca
US Equities · Crypto · Paper Trading
Free for paper · market data
REST + WebSocket, trading-integrated
High
PROFILES

What each source is really for.

The same four feeds, expanded. Coverage, pricing, and the strategy shape each one is genuinely the right tool for.

BN
Binance
binance
Crypto-native
Crypto spot + futures, free public API.

The most stable schema among crypto exchanges. Full spot and futures coverage, complete multilingual docs, and predictable rate-limit headers. The default first integration for any crypto strategy.

CoverageCrypto · Spot, Futures, Options
PricingFree public API
APIREST + WebSocket, mature
WebSocket● streaming
Best for Crypto strategies; HF backtests of altcoin universes.
YF
Yahoo Finance
yahoo
Quick-look
Equities, ETFs, indices, FX. Free, unofficial.

Good enough to get started, not to ship. Schema drifts occasionally and rate limits are inconsistent. The right tool for a fast feasibility check before you commit to a paid feed.

CoverageEquities · ETFs · Indices · FX
PricingFree · unofficial
APIScraping-based, rate limited
WebSocket○ rest only
Best for Sanity-check a strategy idea before paying.
PG
Polygon.io
polygon.io
Pro feed
US equities, options, FX, crypto. Professional.

Clear pricing tiers, an OpenAPI spec, and first-class SDKs. The professional default once you outgrow Yahoo and need reliable intraday data or clean options chains.

CoverageUS Equities · Options · FX · Crypto
PricingFree tier + paid plans
APIREST + WebSocket, professional
WebSocket● streaming
Best for Production US equity & options research.
AL
Alpaca
alpaca
Trade-integrated
US equities, crypto, paper trading in one feed.

Trading and data on the same API. Free for paper trading and market data, with a Python SDK that AI agents can drive end-to-end (generate, backtest, paper-trade) without a feed swap.

CoverageUS Equities · Crypto · Paper Trading
PricingFree for paper · market data
APIREST + WebSocket, trading-integrated
WebSocket● streaming
Best for Agent-driven research → paper deploy.
INTEGRATION SHAPE

One import per source. Same DataFrame out.

Thestratcraft.sourcesnamespace normalizes every feed to the same shape: tz-aware index, OHLCV columns, adjusted close. Swap providers without rewriting the strategy.

binance.py
              123456789101112# 1m klines for BTC/USDT, last 30 days# free public REST, no key required from stratcraft.sources import binance df = binance.klines(    symbol="BTCUSDT",    interval="1m",    lookback="30d",) # → pandas DataFrame, OHLCV columns
            
polygon.py
              12345678910111213# SPY 5-minute bars, year-to-date# requires POLYGON_API_KEY in env from stratcraft.sources import polygon df = polygon.aggs(    ticker="SPY",    multiplier=5,    timespan="minute",    range="ytd",) # → adjusted, gap-filled, ready to backtest
            
FREQUENTLY ASKED

Questions you should ask before integrating.

The decisions that change which feed you reach for, answered honestly, including when the unofficial free one is the right tool.

Binance. Free public API, full spot and futures coverage, and the most stable schema among crypto exchanges. Good first integration target.

Want more data sources?

New sources are added as example strategies that use them ship. Open an issue on GitHub if you need a specific feed prioritized. Include the asset class and a strategy sketch we can run against it.