Get real-time and historical stock prices in Python with the fdnpy SDK. Load market data directly into pandas to build screeners, backtests, and dashboards.
Install fdnpy, add your API key, and call the method for the data you need. The same client also supports custom queries with field selection and filters.
Everything you need to go from API key to working data pipeline, with no scraping, parsing, or messy formats along the way.
Pull years of historical price data for backtesting strategies, charting, and technical indicators.
Every response is a list of structured records. Wrap it in pd.DataFrame() and start analyzing right away.
Use universal_query to select exact fields and filter on the server, saving bandwidth and code.
Combine prices with financial statements, key metrics, and valuation ratios from the same API and SDK.
From sign-up to your first data point in just a few minutes.
Sign up for FinancialData.Net and copy your key from the dashboard.
Run pip install fdnpy and create a FinancialDataClient using your API key.
Pass a ticker like MSFT and receive structured price data to use in your app.
Free libraries are fine for quick experiments. Once your product or research depends on the data, an official API is the more reliable choice.
| Feature | FinancialData.Net API | Free scraper libraries |
|---|---|---|
| Access method | Documented REST API | Unofficial web scraping |
| Python SDK | Official SDK, maintained | Community-maintained |
| Server-side filtering | Yes, via universal_query | Usually download everything, filter locally |
| Fundamentals and prices together | One API key, one SDK | Often separate sources |
| Production readiness | Built for production use | Can break when source pages change |
fdnpy package with pip, create a FinancialDataClient with your API key, and call get_stock_prices with a ticker such as MSFT. The result is a list of price records you can load into a pandas DataFrame.fdnpy is the Python SDK for FinancialData.Net. It wraps the REST API, so you can pull stock prices, financial statements, key metrics, and more without handling HTTP requests yourself.universal_query method allows you to select specific fields and apply filters such as greater-than or in-list conditions, so you download only the data you need.