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
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 need a (free) API key — get one at https://datasink.ing. Use the free key for real RAG pipelines.

Tier Quota Rate limit
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.1

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.1
File Size Uploaded Provenance
llama_index_readers_datasinking-0.1.1.tar.gz 4.1 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 9.2 kB

Release files / llama_index_readers_datasinking-0.1.1.tar.gz

Download URL llama_index_readers_datasinking-0.1.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fd620f61d1b02539d5e7653c869b4c08e0066973a37a0449b18c5a86324bc3c5
BLAKE2b-256 checksum
How to use checksums
87ba66d88d9b0270aa83be0df5eeb12ebca11cf7a056745d4863cce9b77ff281
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.1-py3-none-any.whl

Download URL llama_index_readers_datasinking-0.1.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
496a196273364b374b1037d72534db4e23fb292735899af51200f7cf71a409db
BLAKE2b-256 checksum
How to use checksums
6cb4bc5ebf770ebb35826f66732c69df315dfa723683eb7500044f128b6bf415
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.1

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