How futuresharks/financial-data works
pyfinancialdata is a bundled intraday financial-data library. The main workflow is a caller selecting provider, instrument, and year through the public API; the loader reads the matching bundled CSV format, normalizes and optionally resamples/prices the rows, and returns a Pandas DataFrame. A multi-year API combines yearly results. Separately, an Oanda utility can fetch candles, convert them to a DataFrame, and optionally save CSV. The source excerpts show these runtime paths; the README documents the dataset families and supported instruments.
Main entry points: get.py Year Loader · oanda_prices.py Monthly Fetch · __init__.py Package API · oanda Oanda CSV Data
Components 13
Python API
- Package API
pyfinancialdata/__init__.py - Year Loader
pyfinancialdata/get.py - Multi-year Loader
pyfinancialdata/get.py
Bundled Datasets
- Oanda CSV Data
pyfinancialdata/data/currencies/oanda - Histdata CSV Data
pyfinancialdata/data/stocks/histdata - Bitstamp CSV Data
pyfinancialdata/data/cryptocurrencies/bitstamp - Kraken CSV Data
pyfinancialdata/data/cryptocurrencies/kraken
Oanda Ingestion
- Oanda Account
pyfinancialdata/oanda_prices.py - Candle Converter
pyfinancialdata/oanda_prices.py - Monthly Fetch
pyfinancialdata/oanda_prices.py
Other components
- Data User
- Oanda API
- CSV Output
Connections 13
- Data User → Package API: imports
README.md - Package API → Year Loader: re-exports
pyfinancialdata/__init__.py - Data User → Year Loader: requests data
README.md - Data User → Multi-year Loader: requests years
README.md - Year Loader → Oanda CSV Data: reads CSVs
pyfinancialdata/get.py - Year Loader → Histdata CSV Data: reads CSV
pyfinancialdata/get.py - Year Loader → Bitstamp CSV Data: reads CSV
pyfinancialdata/get.py - Year Loader → Kraken CSV Data: reads CSV
pyfinancialdata/get.py - Multi-year Loader → Year Loader: loads each year
pyfinancialdata/get.py - Monthly Fetch → Oanda Account: requests candles
pyfinancialdata/oanda_prices.py - Oanda Account → Oanda API: calls candles API
pyfinancialdata/oanda_prices.py - Monthly Fetch → Candle Converter: normalizes candles
pyfinancialdata/oanda_prices.py - Monthly Fetch → CSV Output: writes CSV
pyfinancialdata/oanda_prices.py