Financial data API client — prices, fundamentals, entity resolution for all US equities
Project description
xfinlink
Free financial data API for US equities — prices, fundamentals, metrics, entity resolution, index constituents, and insider transactions.
Install
pip install xfinlink
Quick start
import xfinlink as xfl
xfl.set_api_key("your-key") # or set XFINLINK_API_KEY env var
# Get a free key at https://xfinlink.com/signup
# Historical prices
df = xfl.prices("AAPL", start="2024-01-01", end="2024-12-31")
print(df[["date", "close", "adj_close", "volume"]].head())
# Multi-ticker
df = xfl.prices(["AAPL", "MSFT", "GOOGL"], start="2024-01-01")
# Financial statements
df = xfl.fundamentals("AAPL", period_type="annual")
# Computed metrics (P/E, ROE, margins, etc.)
df = xfl.metrics("AAPL", fields=["pe_ratio", "roe", "market_cap"])
# Entity resolution
info = xfl.resolve("GM")
# Search
df = xfl.search(q="apple")
# S&P 500 constituents
df = xfl.index("sp500")
# Check usage
xfl.usage()
Defaults
startdefaults to 1 year ago if omitted.- Pagination stops at
max_rows(default 10,000). Increase if you need more. dateandperiod_endare regular DataFrame columns, not the index.
API endpoints
| Endpoint | Use case |
|---|---|
GET /v1/prices/{ticker} |
Historical prices, volume, dividends, splits |
GET /v1/fundamentals/{ticker} |
Financial statements (147 fields) |
GET /v1/metrics/{ticker} |
37 pre-computed ratios and per-share values |
GET /v1/resolve/{ticker} |
Entity resolution, corporate history |
GET /v1/search |
Find companies by name, sector, SIC, NAICS |
GET /v1/index/{name} |
Index constituents (current or historical) |
GET /v1/insiders/{ticker} |
Insider transactions (Pro only) |
Ticker endpoints accept comma-separated symbols, for example /v1/prices/AAPL,MSFT,GOOGL. Pro supports up to 100 tickers per call on data endpoints; /v1/resolve supports up to 10.
Rate limits
Free: 100/day (40/hour burst). Pro: 10,000/day (no burst). See pricing.
Links
- Docs: https://xfinlink.com/docs
- Signup: https://xfinlink.com/signup
- LLM context: https://xfinlink.com/llms.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xfinlink-0.8.1.tar.gz.
File metadata
- Download URL: xfinlink-0.8.1.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d86e405a6cb2f27923be4465f435a529c8a0083c263a65212386dbf98ef5c57
|
|
| MD5 |
f496d77935f82c23670372fd6c3bdd24
|
|
| BLAKE2b-256 |
141c9c97c5227a27ed49bdd88b75fc2f773b1a77b3479dc94c1757e1ac944307
|
File details
Details for the file xfinlink-0.8.1-py3-none-any.whl.
File metadata
- Download URL: xfinlink-0.8.1-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c26d471fc719b65e9388f93aa98c4f7925d53f747f393475cdaac93a5a1f5e5
|
|
| MD5 |
d978b408681b15935e8dc314910314ca
|
|
| BLAKE2b-256 |
9ffe73bee5063af7a37642d156c23f0d5b5c036e66b224bdc93a36cbfa9ae5e2
|