Skip to main content

AlphaMeta

AlphaMeta is a REST API gateway for IBKR (Interactive Brokers) — live trading and real-time market data for stocks, options, futures, and crypto via a standardized REST API. Commands run as HTTP endpoints behind a FastAPI gateway, callable via curl or any HTTP client.

Also includes SEC EDGAR research commands — filing listing, 13F investors, insider trades, XBRL financial statements and segment data.

Quick start

pip install alphameta

Requires an IBKR Gateway or TWS instance for trading operations.

# Start the API server
alphameta --ibkr

# 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"}'

The API serves at http://127.0.0.1:18080 by default.

Features

Commands by category

Category Commands
Live Market Quotes quote, add, remove, kline, depth, chain, range, info, align, prequalify, oadd, filings, investors, insider-trades, financial-report, financial-statement, sec, calc-index, capital-flow, consensus, operating
Order Management buy, cancel, modify, evict, fast, scale, straddle
Portfolio positions, balance, orders, executions, report
Technical Indicators dex, gex, dge, maxpain
Predicate Management ifthen, iflist, ifrm, ifclear, ifgroup, auto
Quote Management qadd, qremove, qlist, qsave, qrestore, qdelete, qclean, qsnapshot, qloadsnapshot, colorset, colorsload
Schedule Management sched-add, sched-list, sched-cancel
Task Management tasklist, taskcancel
Utilities cash, math, alert, say, expand, simulate, paper, reporter, daydumper, details, advice, alias, clear, meta, qualify, reconnect, calendar, set, unset

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"}'

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

Apache-2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

alphameta-2.6.0-cp314-cp314-win_amd64.whl (7.4 MB view details)

Uploaded CPython 3.14Windows x86-64

alphameta-2.6.0-cp314-cp314-win32.whl (6.4 MB view details)

Uploaded CPython 3.14Windows x86

alphameta-2.6.0-cp314-cp314-musllinux_1_2_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.14musllinux: musl 1.2+ x86-64

alphameta-2.6.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (11.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

alphameta-2.6.0-cp314-cp314-macosx_11_0_arm64.whl (10.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

alphameta-2.6.0-cp313-cp313-win_amd64.whl (7.2 MB view details)

Uploaded CPython 3.13Windows x86-64

alphameta-2.6.0-cp313-cp313-win32.whl (6.2 MB view details)

Uploaded CPython 3.13Windows x86

alphameta-2.6.0-cp313-cp313-musllinux_1_2_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

alphameta-2.6.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

alphameta-2.6.0-cp313-cp313-macosx_11_0_arm64.whl (10.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

alphameta-2.6.0-cp312-cp312-win_amd64.whl (7.2 MB view details)

Uploaded CPython 3.12Windows x86-64

alphameta-2.6.0-cp312-cp312-win32.whl (6.3 MB view details)

Uploaded CPython 3.12Windows x86

alphameta-2.6.0-cp312-cp312-musllinux_1_2_x86_64.whl (11.5 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

alphameta-2.6.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

alphameta-2.6.0-cp312-cp312-macosx_11_0_arm64.whl (10.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file alphameta-2.6.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: alphameta-2.6.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 7.4 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

Hashes for alphameta-2.6.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 8de679662011656a1e4c352f5a965faa610e667f6aac55d6d1569a422ac1631e
MD5 be62fb45d99f533fb0adf8cce3c65a58
BLAKE2b-256 25a405b6629eec644f200fa20a166ab8c1e19e951dd954b667795b06f425f0c1

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp314-cp314-win32.whl.

File metadata

  • Download URL: alphameta-2.6.0-cp314-cp314-win32.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: CPython 3.14, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for alphameta-2.6.0-cp314-cp314-win32.whl
Algorithm Hash digest
SHA256 754060e1271dc307569005dc463f3aeb90bad68bea498a327b7abc4cacf88842
MD5 6afe5a88f964bb56d0a62087d3c8f965
BLAKE2b-256 9510be33a98ad7e240de657a39071a7d64ac18291c4bb97341e6511d1ad3c115

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp314-cp314-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for alphameta-2.6.0-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 eed91a0fbb2be52607c6445193ca211eed0f5b97d98a6b3abfb442fe44760aa7
MD5 4de9eed6f0167cea9496cf24fe48f815
BLAKE2b-256 97a9a053c1ba33ad74c7b81c1a4cb6c7478f15be34422590c6ed5b5dcff0d367

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for alphameta-2.6.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c830f4c241db41d60cdfc7d8de2c8f0ee7ed0d5a8a5f6f6cdd1fad69022b4a51
MD5 19ea364c32bed3dbdb5f6f870ba3d88d
BLAKE2b-256 7fe58b8a090e6b391a246024a95cc4d5c6472f1960b1365ee80cbcf5746210d0

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for alphameta-2.6.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2113eb3a5542db0c8ae1a95562008b2cd24bd15b268c532c9b1605d1cace2a5
MD5 233d838764fc0e0e91fbce710124b734
BLAKE2b-256 f92ccf6f33341bc428628ded4ddbec5ea31f580e1f020b2ff25543e855c4c7f0

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: alphameta-2.6.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 7.2 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

Hashes for alphameta-2.6.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 647a56d5ee32081ffe68d7bc56e3179cdee4ca4db22e9ee38a3a10658ebdf20e
MD5 7f1c237933addab8f2a883dc2c1f2f84
BLAKE2b-256 515a1c385521bfb4ef53608d442748a23c769e73560d1371fc60ba2948e9a1c8

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp313-cp313-win32.whl.

File metadata

  • Download URL: alphameta-2.6.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 6.2 MB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for alphameta-2.6.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 d902f6959e6f945fcf8e750326d52c347e7ce58349d7e9f9c25456bb88525e09
MD5 1acc404fc2811750214caec449e0aa0a
BLAKE2b-256 34d6fc3c233490101327250edaf0017ab485bdfeea004025a6b6d04362e21220

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for alphameta-2.6.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 00dc787680863b9815795cfcf50693a6315f4fa7dcb9b0817351d1dbc477d8f3
MD5 eb1bec9edd110f92c544691f3a465058
BLAKE2b-256 56588a3fe8ffa8bc0987e1e69c4247c8dbc4afb89021e282f95d959f5d57ed02

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for alphameta-2.6.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b2732ae706426ca2c3714bc0b5b85c81b2a394436f6e721fb032c9bc852b24cc
MD5 9a2a32d254b73e2b7b7176f32f07ed2d
BLAKE2b-256 d8e998393043cf494178e6895eeac5d94f19d3019d78f74698d630f1c886771a

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for alphameta-2.6.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df96226562542b0844c8474153de9f9c1edca01d9a5f99a2f2f3ab0a8d1aca55
MD5 7692e49e074779147ee48052401c4109
BLAKE2b-256 86933c16d296962a208885a05fc36683866e3d1bbfe6bc4118339961a66b459f

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: alphameta-2.6.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 7.2 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

Hashes for alphameta-2.6.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bfafa377c11fea4d40ca75df6aac604b16997237c8b2e198ec8e925976acb83c
MD5 05f5def2c75331920295c49d2cb47d54
BLAKE2b-256 d7cb3e39389a72dc2855902e194a8de19c3d7ee55ec8c6da3891a37cd2857dd0

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp312-cp312-win32.whl.

File metadata

  • Download URL: alphameta-2.6.0-cp312-cp312-win32.whl
  • Upload date:
  • Size: 6.3 MB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for alphameta-2.6.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 afdbe7b8252be36cc329d4c61cf7a256586201595f6892e1ee26ac57ea13a976
MD5 a1055e33a99d35fb665eb417b93ae0a9
BLAKE2b-256 4e63b1af2e46403fd9534a547f84f51f218430da93894d2284dcbca4a03aa4d3

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for alphameta-2.6.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 37ba5a72115ad54fcb3d35efa52d58b17d3bea0a95afb9fa21bf136c5183bf29
MD5 e0305071525791f6f89561b7e0a744b0
BLAKE2b-256 11051fb14801c628813d4d11a6624792afd8a4b3bd21af078bd03c3bc612bc72

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for alphameta-2.6.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f17bc92c4df8cbaeaed605b1916fa50d26d105878444cccb515afb8a2684b390
MD5 a0430de4c4109bd64549577ad86f5503
BLAKE2b-256 6d7baedeed06b8a3585187b2b8e5c43940ced89867fbd1cc4b84040aafcf75e6

See more details on using hashes here.

File details

Details for the file alphameta-2.6.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for alphameta-2.6.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dacd5b80e65dff365142976e0f23135e3f49e7264b20a181e3375fc5b5be54d2
MD5 5fc59d3b5e6cdab24fa14cadf06ab885
BLAKE2b-256 b2bdc03ef226f12b3c0222403925a06dda2f7fd8b5bb2380160a012cb465a009

See more details on using hashes here.

Release history Release notifications | RSS feed

2.6.7

15 files

2.6.6

15 files

2.6.5

15 files

2.6.4

15 files

2.6.3

15 files

2.6.2

15 files

2.6.1

15 files

This release

2.6.0 This release

15 files

2.5.2

15 files

2.5.1

15 files

2.4.4

10 files

2.4.3

6 files

2.4.2

6 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page