llama-index-tools-alphai
LlamaIndex tool spec for AlphaAI — AI-scored, ticker-linked financial news and SEC Form 4 insider events, built for AI agents and trading bots.
Every article on the AlphaAI feed is enriched before you see it: per-ticker impact analysis, one of 14 categories, and a 1-10 market-relevance score. The tools here fetch and filter that feed — no scraping, no scoring of your own.
AlphaAIToolSpec exposes four tools (each with a native async twin):
search_news— the scored news feed with ticker / category / relevance filtersget_insider_news— SEC Form 4 insider events with a structured who-sold-what blockget_ticker_sentiment— 7-day bullish/neutral/bearish rollup for one tickerget_insider_summary— 30-day insider buy/sell rollup for one ticker
Install
pip install llama-index-tools-alphai
Requires Python 3.10+.
Authentication
Create an API key at alphai.io/developers — the
free tier works without a card. Export it as ALPHAI_API_KEY, or pass
api_key=... to the spec.
export ALPHAI_API_KEY="ak_live_..."
Use in an agent
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.anthropic import Anthropic
from llama_index.tools.alphai import AlphaAIToolSpec
agent = FunctionAgent(
tools=AlphaAIToolSpec().to_tool_list(),
llm=Anthropic(model="claude-sonnet-4-5"),
)
response = await agent.run(
"Are NVDA insiders net buying or selling this month, "
"and does news sentiment agree with what they're doing?"
)
Use the tools directly
from llama_index.tools.alphai import AlphaAIToolSpec
spec = AlphaAIToolSpec()
docs = spec.search_news(symbol="NVDA", min_relevance=7, max_results=5)
docs[0].text # title + summary
docs[0].metadata # tickers, category, relevance_score, url, source, ...
events = spec.get_insider_news(symbol="NVDA", min_relevance=7)
events[0].metadata["insider"] # side, shares, avg price, total value, 10b5-1 flag
spec.get_ticker_sentiment("NVDA") # {"bullish": 30, "neutral": 8, "bearish": 4, ...}
spec.get_insider_summary("NVDA") # 30-day buy/sell counts and dollar values
News documents map cleanly into RAG pipelines — text is the article title
plus summary, everything else rides in metadata.
Filters
symbol— one ticker ("NVDA"; crypto"BTC-USD", foreign listings the Yahoo suffix"VOD.L"). Share-class siblings are included on the insider feed.category— one of 14:earnings,mergers_acquisitions,regulation,macro_economy,sector_analysis,market_movers,technology,commodities,crypto,ipo,geopolitics,insider,corporate_actions,other.min_relevance— 1-10 floor; 7+ keeps only high-signal articles. On the insider feed the score is deterministic from the event's dollar value, so it works as an "only large trades" dial.max_results— cap on returned items (1-50).
Rate limits
Limits are per AlphaAI account, two-layer (per-minute burst + per-day volume): Free 20/min · 100/day, Basic 60/min · 10,000/day, Pro 150/min · 100,000/day. The underlying alphai-sdk retries 429s with backoff automatically.
Links
- Developer guide: https://alphai.io/developers
- API reference: https://api.alphai.io/api/schema/
- MCP server (same feed, for MCP-speaking agents): https://alphai.io/mcp
AlphaAI output is AI-generated financial information for research, not investment advice — see alphai.io/terms.
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 llama_index_tools_alphai-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_tools_alphai-0.1.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b4447d3275071c5c3b936248e1ed0ff9023de7329f62101599b2013c0b6ca5d
|
|
| MD5 |
11e4d729438075d7d28b21c5a4836481
|
|
| BLAKE2b-256 |
f5fe4ede119976ffa160c58ee24fa7b000f936937ddb6d13804b11b181f1ce4f
|
Provenance
The following attestation bundles were made for llama_index_tools_alphai-0.1.0.tar.gz:
Publisher:
release.yml on makeev/llama-index-tools-alphai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_tools_alphai-0.1.0.tar.gz -
Subject digest:
6b4447d3275071c5c3b936248e1ed0ff9023de7329f62101599b2013c0b6ca5d - Sigstore transparency entry: 2464795266
- Sigstore integration time:
-
Permalink:
makeev/llama-index-tools-alphai@096cbcd506465da75725c5f9b4499589668f3665 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/makeev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@096cbcd506465da75725c5f9b4499589668f3665 -
Trigger Event:
push
-
Statement type:
File details
Details for the file llama_index_tools_alphai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_alphai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8d67558647526fd1aa64bd4350b414dcf5be459c733c8f8dd1a370fbb7afbb4
|
|
| MD5 |
061b809305d1c5a87f37361b01b4dce2
|
|
| BLAKE2b-256 |
57b7f787b3dd29d1195678f6fa49567027c1576729715737b22d547cdfd1bff3
|
Provenance
The following attestation bundles were made for llama_index_tools_alphai-0.1.0-py3-none-any.whl:
Publisher:
release.yml on makeev/llama-index-tools-alphai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_tools_alphai-0.1.0-py3-none-any.whl -
Subject digest:
e8d67558647526fd1aa64bd4350b414dcf5be459c733c8f8dd1a370fbb7afbb4 - Sigstore transparency entry: 2464795574
- Sigstore integration time:
-
Permalink:
makeev/llama-index-tools-alphai@096cbcd506465da75725c5f9b4499589668f3665 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/makeev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@096cbcd506465da75725c5f9b4499589668f3665 -
Trigger Event:
push
-
Statement type: