Python SDK for the hosted yfin Yahoo Finance API, with yfinance-compatible data access.
Project description
yfin Python SDK
Python SDK for the hosted yfin API. The hosted API handles Yahoo Finance contracts, crumb bootstrap, caching, request coalescing, and origin budgets. The SDK adds a yfinance-compatible facade on top.
import yfin as yf
aapl = yf.Ticker("AAPL")
print(aapl.history(period="5d", interval="1d"))
print(aapl.fast_info)
print(aapl.info)
print(aapl.option_chain())
print(aapl.funds_data.top_holdings)
print(aapl.valuation)
print(yf.download(["AAPL", "MSFT"], period="5d"))
ws = yf.WebSocket(verbose=False)
ws.subscribe("BTC-USD")
Low-level REST-envelope client:
import yfin
client = yfin.Client(contact="you@example.com")
print(client.quote(["AAPL", "MSFT"]))
print(client.history("NVDA", range="5d", interval="1h"))
Set YFIN_BASE_URL to override the hosted API URL.
Project details
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 yfin-0.1.0.tar.gz.
File metadata
- Download URL: yfin-0.1.0.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99ec290e2fb94427b6cf73f8bf6bfd867ba12ddb4fd09bd886dd0dc29913e142
|
|
| MD5 |
4842781642cdd642a01c9094fabb9073
|
|
| BLAKE2b-256 |
00c24acb8912d4a26e14d08ee3628fc0218e089d312a00b2d61fce1158867cd3
|
Provenance
The following attestation bundles were made for yfin-0.1.0.tar.gz:
Publisher:
publish-yfin-python.yml on bluedoor-ai/yfin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yfin-0.1.0.tar.gz -
Subject digest:
99ec290e2fb94427b6cf73f8bf6bfd867ba12ddb4fd09bd886dd0dc29913e142 - Sigstore transparency entry: 1432166231
- Sigstore integration time:
-
Permalink:
bluedoor-ai/yfin@0e450d70c26e01cbee581dff5bcb1c431f46e0ba -
Branch / Tag:
refs/tags/yfin-python-v0.1.0 - Owner: https://github.com/bluedoor-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-yfin-python.yml@0e450d70c26e01cbee581dff5bcb1c431f46e0ba -
Trigger Event:
push
-
Statement type:
File details
Details for the file yfin-0.1.0-py3-none-any.whl.
File metadata
- Download URL: yfin-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17a83d669d4b0b827e703e01367caeaf6b57d9dae873417f5263afc762dada04
|
|
| MD5 |
f561097df94b143bd6850deef1c17dc3
|
|
| BLAKE2b-256 |
9163af80f2542d7b39e8f95dd67604bde591eb34dd444b1373ed44292e30a7b0
|
Provenance
The following attestation bundles were made for yfin-0.1.0-py3-none-any.whl:
Publisher:
publish-yfin-python.yml on bluedoor-ai/yfin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yfin-0.1.0-py3-none-any.whl -
Subject digest:
17a83d669d4b0b827e703e01367caeaf6b57d9dae873417f5263afc762dada04 - Sigstore transparency entry: 1432166319
- Sigstore integration time:
-
Permalink:
bluedoor-ai/yfin@0e450d70c26e01cbee581dff5bcb1c431f46e0ba -
Branch / Tag:
refs/tags/yfin-python-v0.1.0 - Owner: https://github.com/bluedoor-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-yfin-python.yml@0e450d70c26e01cbee581dff5bcb1c431f46e0ba -
Trigger Event:
push
-
Statement type: