Official Python SDK for the Valuein US Core Fundamentals dataset — SEC EDGAR financials via API.
Project description
🏛️ Valuein Financial Data Essentials (FDE) - Public Resources
Professional-grade SEC financial data for financial analysts, quantitative researchers, data engineers, and investment teams.
👋 Welcome
This repository is the official integration hub for the Valuein Financial Data Essentials feed. It hosts our Python SDK, issue tracker, schema definitions, and production usage patterns.
Our dataset includes all US public companies since 1990 (active and inactive). Both our sample and full datasets are Point-in-Time (PIT) and Survivorship-bias FREE.
📦 Installation
The SDK is built on top of DuckDB for lightning-fast analytical queries directly against our R2-backed data lake.
-
- Install the SDK Install directly from GitHub using pip:
pip install git+https://github.com/valuein/quants.git
2. Configure Credentials (.env)
The SDK automatically looks for a .env file or environment variables. Create a .env file in your project root:
# .env
ACCOUNT_ID=account_id
ACCESS_KEY_ID=your_sample_access_key
SECRET_ACCESS_KEY=your_sample_secret_key
BUCKET_NAME=sec-sample-data
🔑 Request Sample Data Access
To get free credentials for the S&P500 (historical) dataset, Click Here 🚀
FYI. Our full dataset include all US public companies since 1990 including active and inactive ones (bankrupts and mergers). Both datasets are PIT and Survivor-bias FREE.
🚀 Quickstart
The SDK handles the complex DuckDB/S3 connection logic, allowing you to focus on the data.
Option A: Standard SQL
Run raw SQL against our standardized views (entity, security, filing, fact, etc.).
from valuein_sec_sdk import ValueinClient
client = ValueinClient()
# Query NVIDIA's latest Revenue
df = client.query("""
SELECT s.symbol, f.report_date, fa.numeric_value
FROM security s
JOIN filing f ON s.entity_id = f.entity_id
JOIN fact fa ON f.accession_id = fa.accession_id
WHERE s.symbol = 'NVDA' AND fa.standard_concept = 'Revenues'
ORDER BY f.report_date DESC LIMIT 5
""")
print(df)
Option B: Use Built-in Templates
# Run a pre-built fundamental analysis template
from valuein_sec_sdk import ValueinClient
client = ValueinClient()
df = client.run_showcase_query(
query_name="01_fundamentals_by_ticker",
ticker="AAPL",
metrics=["NetIncomeLoss", "Revenues"],
start_date="2022-01-01"
)
📚 Resources & Examples
Explore the /examples directory to see the SDK in action:
| Use Case | File | Description |
|---|---|---|
| New Users | examples/getting_started.py |
The 5 core join patterns (Ticker-to-Fact, Taxonomy, etc.) |
| SDK Usage | examples/usage.py |
How to use templates and pivot data for modeling. |
📚 Documentation
- Data Catalog: This Valuein Data Catalog serves as a massive 105M-facts dataset and the daily workflows of institutional analysts by providing transparent governance, clear taxonomy definitions, and high-performance API integration instructions.
- Compliance and DDQ: Due Diligence Questionnaire, data sourcing disclosures, and SOC2/Governance standards.
- Schema Guide: Entity-Relationship Diagrams (ERD) and primary key mapping across the warehouse.
- Methodology Guide: Our logic for handling restatements, fiscal period alignment, and Point-in-Time (PIT) integrity.
🛡️ Data Governance & Methodology
We adhere to strict standards to ensure institutional-grade reliability.
- SLA Policy: Our commitment to 99.9% uptime and <2min SEC filing latency.
-
- Methodology: We preserve "as-reported" history to support true point-in-time backtesting.
- Restatement Handling: We preserve "as-reported" history to support true point-in-time backtesting.
🆘 Support & Community
- Found a data error? Open a Data Ticket
- General Question? Start a Discussion
⚠️ Disclaimer: This software is for educational and research purposes only. Valuein is not responsible for financial losses incurred through the use of this SDK.
License
This project is licensed under the Apache-2.0 License. See the LICENSE file for more information.
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 valuein_sdk-0.1.1.tar.gz.
File metadata
- Download URL: valuein_sdk-0.1.1.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33d9c27bba49e1f9d8d659fe905b5cb8b0e733d28d3fabd8c4ac0cd3dfa6e91d
|
|
| MD5 |
d4bc4e6cbf190c00f4be944c31efd04d
|
|
| BLAKE2b-256 |
b6c933cf1067c5c57b9cf594081baa99ab2b722dc098e299e87ba57da12bbf19
|
Provenance
The following attestation bundles were made for valuein_sdk-0.1.1.tar.gz:
Publisher:
publish.yml on valuein/quants
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
valuein_sdk-0.1.1.tar.gz -
Subject digest:
33d9c27bba49e1f9d8d659fe905b5cb8b0e733d28d3fabd8c4ac0cd3dfa6e91d - Sigstore transparency entry: 1071262434
- Sigstore integration time:
-
Permalink:
valuein/quants@52690122895f56c4dbaf50b17193e80aacc2a3f0 -
Branch / Tag:
refs/tags/v - Owner: https://github.com/valuein
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@52690122895f56c4dbaf50b17193e80aacc2a3f0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file valuein_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: valuein_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea1851b0726e05dd61ec7fbbcd04db21aa7af1105bf865e9330770f03eff4bc5
|
|
| MD5 |
cc7aeb182c5848781432fe236694f209
|
|
| BLAKE2b-256 |
fbf4ae07a8874bbabbf6b4a4a476b5bc3e01159916aa1b457ecf6acd92adfceb
|
Provenance
The following attestation bundles were made for valuein_sdk-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on valuein/quants
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
valuein_sdk-0.1.1-py3-none-any.whl -
Subject digest:
ea1851b0726e05dd61ec7fbbcd04db21aa7af1105bf865e9330770f03eff4bc5 - Sigstore transparency entry: 1071262506
- Sigstore integration time:
-
Permalink:
valuein/quants@52690122895f56c4dbaf50b17193e80aacc2a3f0 -
Branch / Tag:
refs/tags/v - Owner: https://github.com/valuein
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@52690122895f56c4dbaf50b17193e80aacc2a3f0 -
Trigger Event:
push
-
Statement type: