AlphaMeta
AlphaMeta is an algorithmic trading platform that unifies five surfaces in a single process:
- REST API gateway — 80+ commands for market data, SEC EDGAR fundamentals, options analytics, trading, portfolio, automation, and watchlists, served over HTTP by a FastAPI gateway and callable via
curlor any HTTP client. - Real-time streaming — a WebSocket endpoint (
/ws/stream) broadcasting live ticks, quotes, and 1m–1h bars at tick rate, plus custom formula streams. - Backtesting engine — Rust-based strategy backtests with QuantStats/Plotly reports, available via the
alphameta backtestCLI, REST API, Jupyter magics, and the web UI. - Live strategy hosting — hot-reloadable strategy files managed over REST, running against live market data.
- Embedded MCP server — an MCP tool layer (
/mcp) exposing the full command surface to AI agents: market data, fundamentals, portfolio, and live trading. Trading is opt-in and gated behind a three-step confirm-token flow with risk limits and audit logging. - AI agent harness — a built-in chat server that runs agents locally and plugs into any LLM, orchestrating MCP tools end-to-end from natural language.
Broker backends: IBKR (stocks, options, futures, crypto) and QMT (China A-shares). Also includes SEC EDGAR research commands — filing listing, 13F investors, insider trades, XBRL financial statements and segment data.
Quick start
uv tool install alphameta # or: pip install alphameta
Get a free API key at alphameta.app, then create ~/.alphameta/.env:
# API Key (Required) — get one free at https://alphameta.app
ALPHAMETA_API_KEY=am-xxx
# IBKR Account ID (Required for trading)
ALPHAMETA_IBKR_ACCOUNT_ID=U1234567
# IBKR Gateway connection
ALPHAMETA_IBKR_HOST=127.0.0.1
ALPHAMETA_IBKR_PORT=4001
ALPHAMETA_IBKR_CLIENT_ID=0
# Timezone (default: US/Eastern)
# ALPHAMETA_TIMEZONE=Asia/Shanghai
Start the server (choose a broker backend: ibkr or qmt):
alphameta --broker ibkr
Open the web UI in your browser (server must be running first):
alphameta web
The API serves at http://127.0.0.1:18080 by default:
# Live quotes
curl -X POST "http://127.0.0.1:18080/api/v1/execute" \
-H "Content-Type: application/json" \
-d '{"cmd": "quote AAPL"}'
# SEC research (no IBKR needed)
curl -X POST "http://127.0.0.1:18080/api/v1/execute" \
-H "Content-Type: application/json" \
-d '{"cmd": "filings AAPL 10-K"}'
Real-time streaming
Connect to the WebSocket endpoint for push-based market data instead of polling:
ws://127.0.0.1:18080/ws/stream
The streamer broadcasts live ticks and quotes (throttled to tick rate), real-time bars (1m / 5m / 15m / 30m / 1h), and evaluated formula streams, with heartbeat and connection-state events.
Backtesting & strategies
Run backtests from the CLI with QuantStats or Plotly reports:
alphameta backtest --strategy my_strategy.py --symbol SPY --report quantstats --benchmark SPY
The same engine is available over REST (/api/v1/backtest, /history, /{id}/report), in Jupyter via alphameta.research (get_pricing / run_backtest) and IPython magics, and in the web UI backtest workbench with equity charts and run history.
Live strategies are hot-reloadable Python files in ~/.alphameta/strategies, managed over REST (/api/v1/strategies — list / start / stop / reload / logs).
MCP server (AI agents)
An embedded MCP server (streamable HTTP) is mounted at /mcp and enabled by default. It exposes the full command surface — quote, kline, chain, positions, balance, orders, gex/dex, maxpain, calendar, news, SEC filings, and more — to any MCP-compatible agent.
Trading tools are available but opt-in (ALPHAMETA_MCP_TRADING_ENABLED=true, default off); when enabled, every trade goes through a three-step confirm-token flow: trade_preview → trade_confirm → trade_transmit, with risk limits, symbol blacklists, and an audit log.
The built-in chat server doubles as a local agent harness: it can plug into any LLM provider and orchestrates these MCP tools end-to-end from natural language.
AI Agent Skills
alphameta-skills provides agent skills for AI coding assistants (Claude Code, Codex, Cursor, etc.) — use AlphaMeta in natural language for market data, trading, portfolio analysis, and more.
npx skills add intelliscale/alphameta-skills -g
Features
Commands by category
| Category | Commands |
|---|---|
| Market | quote, add, remove (rm), kline, depth, chain, range, info, align, prequalify, oadd |
| Fundamentals | financial-report, financial-statement, financial (fin, yf), sec, filings, investors, insider-trades, calc-index, consensus, earnings, fundamental (fund), news, operating, calendar |
| Technicals | dex, gex, dge, maxpain, capital-flow, straddle, advice, reporter |
| Trading | buy, cancel, modify, evict, fast, scale |
| Portfolio | positions (ls), balance, orders, executions, report, cash |
| Automation | ifthen, iflist, ifrm, ifclear, ifgroup, auto, sched-add, sched-list, sched-cancel, tasklist, taskcancel |
| Watchlist | qadd, qremove, qlist, qsave, qrestore, qdelete, qclean, qsnapshot, qloadsnapshot, alert |
| Utilities | math, say, expand, simulate, paper, daydumper, details, alias, clear, meta, qualify, reconnect, set |
Prerequisites
-
Broker backend — pick one with
--broker:ibkr— Interactive Brokers (requires IB Gateway or TWS, see below)qmt— QMT for China A-shares
-
Interactive Brokers Account (for
ibkr): You need an active IB account -
IB Gateway or TWS (for
ibkr): Download and install either:- IB Gateway (Stable) — Recommended for API-only use
- IB Gateway (Latest) — Latest features
- Trader Workstation (TWS) — Full trading platform
-
API Configuration (for
ibkr):- Enable API access in TWS/Gateway:
Configure → API → Settingsand check "Enable ActiveX and Socket Clients" - Set appropriate port (default: 7497 for TWS, 4001 for Gateway)
- Add
127.0.0.1to trusted IPs if connecting locally
- Enable API access in TWS/Gateway:
Examples
Bulk symbol expansion:
# Add/remove multiple option strikes at once
curl -X POST "http://127.0.0.1:18080/api/v1/execute" \
-H "Content-Type: application/json" \
-d '{"cmd": "add SPY240412{P,C}005{1,2,3}0000"}'
# Remove by row id
curl -X POST "http://127.0.0.1:18080/api/v1/execute" \
-H "Content-Type: application/json" \
-d '{"cmd": "remove :{31..37}"}'
Multi-symbol orders:
# Buy ~$15k of each symbol
curl -X POST "http://127.0.0.1:18080/api/v1/execute" \
-H "Content-Type: application/json" \
-d '{"cmd": "expand buy {META,MSFT,NVDA,AMD,AAPL} $15_000 MID"}'
Flexible order pricing:
# By quantity or dollar amount, with bracket orders
curl -X POST "http://127.0.0.1:18080/api/v1/execute" \
-H "Content-Type: application/json" \
-d '{"cmd": "buy AAPL 100 AF @ 233.33 ± 10"}'
Conditional triggers:
# Execute command when price condition is met
curl -X POST "http://127.0.0.1:18080/api/v1/execute" \
-H "Content-Type: application/json" \
-d '{"cmd": "if AAPL last > 300: buy AAPL 100 AF"}'
Backtest a strategy:
# QuantStats report against a benchmark
alphameta backtest --strategy my_strategy.py --symbol SPY --report quantstats --benchmark SPY
Account calculator:
# Calculate shares buyable on margin, combine with growth projections
curl -X POST "http://127.0.0.1:18080/api/v1/execute" \
-H "Content-Type: application/json" \
-d '{"cmd": "(/ :BP3 AAPL)"}'
License
© 2026 Intelliscale Technologies, Inc.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
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 alphameta-2.9.0-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: alphameta-2.9.0-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 10.1 MB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52136878f5977c69e8e2917f2b9661f1c61724c39411cf7b7de5ad6fbe11eef5
|
|
| MD5 |
beead889272c6629100c3e88cd4ad924
|
|
| BLAKE2b-256 |
7cd37dfa24a0275c29d1ca6fa4b28211c6f0b01667460f98cb32fbe28370d884
|
File details
Details for the file alphameta-2.9.0-cp314-cp314-win32.whl.
File metadata
- Download URL: alphameta-2.9.0-cp314-cp314-win32.whl
- Upload date:
- Size: 8.8 MB
- Tags: CPython 3.14, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e50dc6119b9d1dd418130227425a46fc88d4a123eb073bf9557b2d8adce4828
|
|
| MD5 |
6baa4d91cb1fc36870223b1464b854de
|
|
| BLAKE2b-256 |
3f5a44de8da78e10e48ab509065f259ac1ba483205ca859942c829b450edd435
|
File details
Details for the file alphameta-2.9.0-cp314-cp314-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: alphameta-2.9.0-cp314-cp314-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 15.5 MB
- Tags: CPython 3.14, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
201245033565558e2ce5e846292e7fc6e00eab12389ea94b46a1dc853242e50d
|
|
| MD5 |
dc7586cfde8bebef8f0c3189efe7315a
|
|
| BLAKE2b-256 |
b7a49325635c7a24ba3b1e6eeed42e88087a626dea15ebb415833817475a25ec
|
File details
Details for the file alphameta-2.9.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: alphameta-2.9.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 15.3 MB
- Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c3760a1354851c561220b62e536bed6dd63fad050ab5ab2bebf765f6180b2de
|
|
| MD5 |
9c02bbd580783aed78fbd15ad86ea65c
|
|
| BLAKE2b-256 |
2a693de75ead6460c2cafec45e797b69331d0718e395f4f38bd42c83b597ee9e
|
File details
Details for the file alphameta-2.9.0-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: alphameta-2.9.0-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 13.5 MB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56019efeeee23348ca20f120b67a1cd03bd431120d6b62ef314a69562d7ad82d
|
|
| MD5 |
4ad7525da40f61ec85a850b6ac1edaaa
|
|
| BLAKE2b-256 |
fbf9f3afd9c8d00a65d2d8a2066bcf0a8d6c2bc7c15489e9025a302a4a16b612
|
File details
Details for the file alphameta-2.9.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: alphameta-2.9.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 9.9 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cfc72584664a65528a594dae4565ad861969dda2e756cf8b754ecfdd70c4d68
|
|
| MD5 |
f0210a1e8a0389c0dd841374fb5da87b
|
|
| BLAKE2b-256 |
a2b0d08f3a026a791739fdc9e1140a3fbb000e01fae37ea6cd9ce05838f6fe10
|
File details
Details for the file alphameta-2.9.0-cp313-cp313-win32.whl.
File metadata
- Download URL: alphameta-2.9.0-cp313-cp313-win32.whl
- Upload date:
- Size: 8.6 MB
- Tags: CPython 3.13, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ef6702379da4c857081c03461e3a9cf457637549444321a2a2212c464e7a639
|
|
| MD5 |
26a81a2755cd0721cc7e8c6bc8519469
|
|
| BLAKE2b-256 |
7f859250a33094a5ce8bf222a5ccd49cb678da4752d765d5178fdff492a14754
|
File details
Details for the file alphameta-2.9.0-cp313-cp313-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: alphameta-2.9.0-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 15.6 MB
- Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e562d0bb3ed93c17d2c6b24d7bbcacb98bdaa7d803b6a84d24f7cfd624eff2fe
|
|
| MD5 |
6b209381d6f0364ba46fbab32e010e40
|
|
| BLAKE2b-256 |
3e66e91124edccc8f77958a601b059fe44bdb7ab2087210d4ee8003793ebba8e
|
File details
Details for the file alphameta-2.9.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: alphameta-2.9.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 15.4 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99adb56bdb0705bd4835e6fea3fe1f95eed6f7c98aafce95dc9c9ff7e8551c93
|
|
| MD5 |
c9aa09a5c73b048613e1ea20aae4bc90
|
|
| BLAKE2b-256 |
2117ba910441f639b0ef473a62787b6e73cb934c5e7b053836ce0e114ad4de43
|
File details
Details for the file alphameta-2.9.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: alphameta-2.9.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 13.6 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c25d832e669c0ae74b8be5ca954f508d03323df95eec3ed734e7f0c31bcfccb
|
|
| MD5 |
532dc641d4fb32f03750d2fef63ebc93
|
|
| BLAKE2b-256 |
67b49bb79b3bd48dadc95245511694a19d9177381592d2a035b39ca7ba11f4fc
|
File details
Details for the file alphameta-2.9.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: alphameta-2.9.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 9.9 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b59bcdde13855ef175023fdf077f0b1035e3652bd2b115ec63354b3a8e8188f5
|
|
| MD5 |
9ca68d57fa137c8126883d5b61df850a
|
|
| BLAKE2b-256 |
ac8f361b96a70894a7399f39b000a5399bc4be69497b6d047ffabecc07ca2abb
|
File details
Details for the file alphameta-2.9.0-cp312-cp312-win32.whl.
File metadata
- Download URL: alphameta-2.9.0-cp312-cp312-win32.whl
- Upload date:
- Size: 8.6 MB
- Tags: CPython 3.12, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77bde506340114956eb85ef1b12d319147d626024df8125402de53da914203de
|
|
| MD5 |
faebaa7d52555a0666897d063b9d4b44
|
|
| BLAKE2b-256 |
fe56897eb5fa452c17e4db147e75e37916ba09a8b82ca4da626193903b6b4894
|
File details
Details for the file alphameta-2.9.0-cp312-cp312-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: alphameta-2.9.0-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 15.6 MB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca90d353792622b002800a96dcdbbd5f3588d83c57bdfa419c3dc057eee3c823
|
|
| MD5 |
7dafc42b4a160eab1908b1cb4c935d03
|
|
| BLAKE2b-256 |
29727ee072ecb4caed763494c2b4882b55f190d4acbd41480513dcdb5333fb03
|
File details
Details for the file alphameta-2.9.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: alphameta-2.9.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 15.4 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78354cc345d2e0d3373cffbc885fd60f8b09457b2bcb19943127c15a71b22034
|
|
| MD5 |
d6fc7e2e4d8a590d61803a6faf1774fb
|
|
| BLAKE2b-256 |
44595dcc7f53edce15f85d5f4683ec6536b64c0c66c969d04c05907ba011e99e
|
File details
Details for the file alphameta-2.9.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: alphameta-2.9.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 13.7 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73d0a0ed7b1f27e7b0962c7240307945274ab0cf7395c4173dd32ced87dbab4e
|
|
| MD5 |
609c96bf108695c52030f75bd58a440f
|
|
| BLAKE2b-256 |
d0b79303a5a277db2382b6f2f156608b6c727420a0d0116f85ef57346b665775
|