AlphaFinance
Async, stateless Python library for market data
- Type
- Library
- Built with
- Python
- Source
- Private repository
Overview
An async-first, stateless Python library for downloading market data, built on curl_cffi for fast HTTP with browser-grade TLS fingerprinting.
Core features
async_download for OHLCV history across stocks, ETFs and funds; AsyncTicker and AsyncTickers for detailed ticker information; AsyncSearch; a stock screener with predefined and custom queries; sector and industry data; and runtime configuration. Results are plain Python objects (lists and dicts), with no pandas, NumPy, BeautifulSoup or lxml dependency.
Architecture
Native async/await throughout on curl_cffi.AsyncSession, with no in-object result caching: data is parsed, returned and released. The package is built with setuptools and includes a stress-test harness and a pytest suite. A built wheel (1.0.1) is kept alongside AnalyzeAlpha's platform service.
Frameworks, tools & libraries
The stack behind it
Tools & infrastructure
- Redis
- pytest
- setuptools
Libraries
- curl_cffi (async HTTP)
- python-dateutil
- pytz
- redis-py
Skills applied
What I brought to it
- 01
Async Python and HTTP client engineering
- 02
TLS-fingerprinted scraping and resilient data fetching
- 03
Stateless, low-memory library design
- 04
Python packaging and wheels
- 05
Stress testing for concurrency
Languages
What it's written in
- Python~42 files
library, tests and stress test
Next project
Calendarize