DEV Community

TildAlice
TildAlice

Posted on • Originally published at tildalice.io

yfinance vs Alpha Vantage vs Polygon: Real Cost Per 1M Calls

The $250 Surprise That Changed My Data Pipeline

I was pulling daily OHLCV data for 500 tickers using yfinance when Alpha Vantage started rate-limiting me. The free tier caps at 25 API calls per day — I hit that limit by 9am.

Switching providers isn't just about finding free alternatives. It's about understanding the hidden costs: rate limits that block your backtest at 3pm, websocket fees that only appear after you scale past 100 symbols, and "free" tiers that suddenly require $50/month when you add one more ticker.

Here's what actually matters when comparing stock data APIs: cost per million calls, survivorship bias in historical data, and whether the "free" tier will still work when your strategy monitors 200 symbols instead of 20.

A vibrant polygonal abstract design featuring a colorful geometric pattern.

Photo by Steve Johnson on Pexels

yfinance: Free Until Yahoo Decides It Isn't

yfinance scrapes Yahoo Finance HTML. No official API, no guaranteed uptime, no support when it breaks.

The appeal is obvious: zero cost, zero signup, unlimited tickers. I've used it for every backtest that didn't need sub-minute data. But "free" comes with three catches.


Continue reading the full article on TildAlice

Top comments (0)