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 start

# 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.5.1-cp314-cp314-win_amd64.whl (7.4 MB view details)

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14Windows x86

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

Uploaded CPython 3.14musllinux: musl 1.2+ x86-64

alphameta-2.5.1-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.5.1-cp314-cp314-macosx_11_0_arm64.whl (10.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

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

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

alphameta-2.5.1-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.5.1-cp313-cp313-macosx_11_0_arm64.whl (10.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

alphameta-2.5.1-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.5.1-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.5.1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: alphameta-2.5.1-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.5.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 280be8ebaec013552e418e30ccfc28af4283c3ce5e3b9ee402dba78d3d547239
MD5 93947992fa1a28edaf842c73e3e4e034
BLAKE2b-256 76ac275f84a7f370ede34d641ae65c5bc8332f86e5a77fc4768cae01931516c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alphameta-2.5.1-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.5.1-cp314-cp314-win32.whl
Algorithm Hash digest
SHA256 ea11c6ac844c1fbc81ea25e245b396b6c27e6eccf9431f1b7c6391dcefa8a188
MD5 26dcd9cbc6281d6fd93851a17dc3ca88
BLAKE2b-256 230f69f7da6d41c38ea0bb7535737bae7830565075d3e7a7ea37adbddaea74f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.1-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 cae171745600796824bd7be084711279e6485d03f29627e46fcf4c8432d6f96f
MD5 70dc7f425f45d6c0913b5621d52238b6
BLAKE2b-256 12bc6f4757bc0e83fffa447d8a8329fe8d7442fa6f5bcf08b4cc2ae604c83285

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 792654521a9acb5ff364978efff31d8eb30e18828a7364938cc4bcf79cf9f3cb
MD5 c9300c48a7103bc8b6aa91455dde2a20
BLAKE2b-256 357fb04a6cf2a80eb7c5654753bff141ee23f7a4bdefd7ce409db69c0257c401

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3d37ae81cdd108642ef32d21a7e51eba225d837cd693ccc2bec633a4eed61e8
MD5 3bbf7c87d6b324b91f8ecb5fa7c0f5ad
BLAKE2b-256 cd7efa24ef2a31c954a4ce5b1003861dc277d4befbb2903fc5368bbe07b1ce24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alphameta-2.5.1-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.5.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7e2d9c2125c02e71ff9aaa9359ef7a6368dd677f07b61e3723f10524c665b289
MD5 3df96173ce8a26bb7dd2d36fbf65a04f
BLAKE2b-256 489e9615039c08ab4e0bb27da1f712870db57c8456239c16e9c49f68daf31892

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alphameta-2.5.1-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.5.1-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 45a19cc8fc6d8a97ea8aa6b77c56cee40725eeeb5485acbcf0c444c97853ec97
MD5 1adea2e2e59e64d85db7b491da6cd518
BLAKE2b-256 86c613f24dbd3f4aefeb1e5c67c6cd1087e2399840311736b0cd52341bb26af4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 46744e37bcf371a53e2492b8c100b999788dd9a93e4b0593dae6d0bc6478190b
MD5 fdd613fdf457ac9185032575b51744a8
BLAKE2b-256 5487ac89ffec6ed1634473973239619060b3fa07e7399685e2792e86886dbf39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8a63b04365cd8b3f24f14984e61a7c070e81acc4d4eea990cfca547d35f87c2b
MD5 479344e8af344181708f3a9317d07ce5
BLAKE2b-256 1528935c7ba4d684aaa6819bdd7dc144d802a3b5b2fd94f09a2d8d69c11b238a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 308bd0d7566905ee58c64dbac3938d6f07ba7d7cdebd591946166015625f311f
MD5 57d7dd23f4ec9eee3a950cd0feda208f
BLAKE2b-256 c42ba7e721146c73f2f19dbadaa3fcc57be4fae4fefbe43549f41a896ea6ca11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alphameta-2.5.1-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.5.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 faca7f7b19bc03609154ed644a8cb8c606fda358df87d3be5a6c8b096b36b2f8
MD5 c5b453310128c5b67ec60054baa7209d
BLAKE2b-256 7b54355cd0dee3aeabf01df4c9dfec4a3496b453e9fb7087b9f7ef3412a68932

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alphameta-2.5.1-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.5.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 198ee4a106fb7ecb99942189db958acb95febd06c2ff1755533697f4df9aad37
MD5 949d3fc9b7ea2c0ecaa3a95165aec327
BLAKE2b-256 e28cd7d0f18898cbb072af17187849329bc5e63e2ef651ad2095222434dec0a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 801200594479a290b5c1c52d9c100c805d388c0ba114449d2aeeb895739b50a1
MD5 5d5bdeb45cfad094be0f7c0717bf17bf
BLAKE2b-256 8a3d846a92014407dff81a2f6bd955db145d39cdfcdeb618b6f5bc03c387986a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9652365b456d9c8d90fd960c4900fa777909cb3114a8ff85f23562e9707e5f2b
MD5 36da4452e6dda7b722cb17985b1adda3
BLAKE2b-256 9eabfe0cc2b7198c37f4069f7695df036214a50f0abd74aa32def8a3690e2f0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f649f7f3db7b390da0caaf30451a71d2c441538db4fbb86dd93a16e6dc9d25d4
MD5 aaceacb9b82d7c38e2d2984b8d57a2b5
BLAKE2b-256 30fb972db82f514f561b30a3d7e51c33098b0c51f301872c8dd19e20c946919e

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

2.6.0

15 files

2.5.2

15 files

This release

2.5.1 This release

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