Skip to main content

LlamaIndex Reader: DataSinking

Load full-text financial reports (balance sheet, income statement, cash flow + notes) as LlamaIndex Documents for your RAG pipeline. Makes DataSinking the first step of "build a financial-report RAG".

Install

pip install git+https://github.com/heubme2020/llama-index-readers-datasinking

The query-engine example below also needs LlamaIndex itself: pip install llama-index.

Usage (20-line Colab)

from llama_index.readers.datasinking import DataSinkingReader

# Get a free key at datasink.ing; leave empty for the public quota (31 docs / 7 days / IP)
reader = DataSinkingReader(api_key="your key")
docs = reader.load_data("AAPL", limit=3)   # Apple's 3 latest filings

from llama_index.core import VectorStoreIndex
index = VectorStoreIndex.from_documents(docs)
print(index.as_query_engine().query("What was Apple's net income last year?"))

Each report becomes one Document; its Markdown tables are preserved, so the LLM can read the actual balance sheet / income statement / cash flow.

Three examples

The repo's examples.py has three runnable examples. Set your key as an env var and run:

export DATASINKING_API_KEY=your_free_key    # Windows: set DATASINKING_API_KEY=your_free_key
python examples.py
  1. Fetch one filing — see what a Document looks like (metadata + full text).
  2. Load 5 years of filings — 626k characters of Apple filings as 5 Documents, ready for VectorStoreIndex.from_documents.
  3. Cross-company comparison — search "营业收入" across Moutai vs Wuliangye and read the revenue figures side by side:
for sym, name in [("600519.SS", "茅台"), ("000858.SZ", "五粮液")]:
    docs = reader.load_data(sym, limit=1)
    # 茅台 → | 营业收入 | 90,703,260,964.48 | ...  ·  五粮液 → | 营业收入(元) | 28,416,674,541.77 | ...

API key, quotas and rate limits

You don't need a key to start, but the public tier is throttled — use a (free) key for real RAG pipelines.

Tier Quota Rate limit
No key (public) 31 reports / 7 days / IP ~1 request / 3 s
Free key 8,191 reports / 7 days 3 requests / s
Paid ($31/yr) 524,287 reports / 7 days 31 requests / s
  • Quota counts reports, not requests — one report = one unit.
  • Hit a limit and you get a QuotaError carrying the tier table above plus the upgrade link (https://datasink.ing/pricing).

Supported symbols

  • US AAPL · China 600519.SS · Japan 7203.T · Korea 005930.KS · Taiwan 2330.TW · UK VOD.L
  • Don't know the ticker? Search by name: GET https://api.datasink.ing/search?q=Apple
  • Each report is a Document with metadata symbol / report_period / doc_type

API docs: https://datasink.ing/docs

Earn $7 every purchase per referral — recurring, PayPal, $31 minimum withdrawal: https://datasink.ing/affiliate

Metadata

Release files for llama-index-readers-datasinking 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-readers-datasinking 0.1.0
File Size Uploaded Provenance
llama_index_readers_datasinking-0.1.0.tar.gz 4.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-readers-datasinking 0.1.0
File Interpreter ABI Platform
llama_index_readers_datasinking-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / llama_index_readers_datasinking-0.1.0.tar.gz

Download URL llama_index_readers_datasinking-0.1.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b543f286b77ce7f4a0b1ebf1a9594d38c5ade56094f16fb804e1e0865e561e67
BLAKE2b-256 checksum
How to use checksums
d45ceb2f680a361817f5544a98cb30dcd19cd463d5144882d5492427f22385da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.7

Release files / llama_index_readers_datasinking-0.1.0-py3-none-any.whl

Download URL llama_index_readers_datasinking-0.1.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fb2d5e9fa9ccfc3883fa8c30d0b53bbbc2f323037b469b0001464f21aff69a2
BLAKE2b-256 checksum
How to use checksums
f6bc2398fd9e98bf41d39ca7b647d9e8855bae3f52bc9bb9c2b197a2d49ccaf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.7

Security for llama-index-readers-datasinking 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page