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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14Windows x86

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

alphameta-2.5.2-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.2-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.2-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.2-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: alphameta-2.5.2-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.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 37766b8f479bdcef9ca23bec2e1c75ed14b194a90c2039b4d2f24a3ccbfa8f57
MD5 9c71fac1766e002db2d9f241e98ea762
BLAKE2b-256 16df2e06b924aafba2608475929563a82b810fdb4344f1c6b2b35e39fe4e0d8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alphameta-2.5.2-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.2-cp314-cp314-win32.whl
Algorithm Hash digest
SHA256 ce1315cea9d72d03b8c2b5af697c222480a49478a27f2c8a00c05c370c2c64dc
MD5 1d5b97d150a33eae8b5fb04f99adcc47
BLAKE2b-256 5772c49d72a2f93f7c72b55bf83fcb6afcca6ee0b70fe50dd830b633b97b5bf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.2-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c2a7d8f12639eede9e009115b03bebb8ff8bc46c255662491c3bdec698b6652b
MD5 10c21b7fa2c05f9614fa3d2ecf59c143
BLAKE2b-256 42ad09db61cf85ae88110ca520c2235d2b4ee695015bd36d70bd0526176ca611

See more details on using hashes here.

File details

Details for the file alphameta-2.5.2-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.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6cbaa7a58c247b70877a5036256b781eeb658a0ca6af34308a660706e19110bf
MD5 d476ef4a08798d0e74ac80f48eac11c3
BLAKE2b-256 e41d7ece4dbc92d7b5c8aef1fa1a58a720d1339452209a8dec52bc66b7d0db9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c116f042818153b34e61109fa3bb79a182620fdda47fddb5d7afb277be0d7c4a
MD5 6bfeb78b70459670ea96f27bdcf6c743
BLAKE2b-256 17a7c3fe6cd3fa91f47ac23c706cbcfcfe6ed4bc7af49aab0397636ae3b34ecc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alphameta-2.5.2-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.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c34400d08dd750022a3dc2006c0fb2dab69631355d0051167f0ecdd96d079284
MD5 c5cf30c7157cfd765a89889a074ca3bb
BLAKE2b-256 2452f8ae2ce8cade48b5d1606d7bb6eae584ded310f7687ea1e89b2595340552

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alphameta-2.5.2-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.2-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 a8c821e3705ee2789d38b642d7643268ad0a925a07a3c6d31dfd04ec435f84c8
MD5 1e6785ec72cd1881c25299f0a2eba02e
BLAKE2b-256 68da04271cb242a66e6abddc14e6a10b6e92de841dcd3c0f57f96b48f45d6a47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.2-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c5ad6d2db4db6fc4c83681eb5accb03546a0250a41b745eb03c0b7980202b1fc
MD5 a7f9d253e4d397ff8e20c9dc4e69bb57
BLAKE2b-256 934782941edffad434f50aeaf0c59b89a81b9267491e094bbca788be6d56a51c

See more details on using hashes here.

File details

Details for the file alphameta-2.5.2-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.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7badfc739cad3d9faf38908be57138c15d50424f67ad08f057f5d7e9657ddd39
MD5 9f760161d48c36ebb263de7133be0b8f
BLAKE2b-256 271ba5555d2ff141e8eb4c648e6b56baa67f761eed4ec2c64db0520891fe73a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 56dbb0a57126c8a2f5006d3712cf0e1197c209f095b2edad16fd76d8d1778e7b
MD5 0e935d2ab6601a386b8228c6d0f16a2d
BLAKE2b-256 83404cd9103826803933800209f39de9e38b58b5df912fcae796e0beebb68661

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alphameta-2.5.2-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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4a31863f2d56de562d50e63aa6b4baddafb630d18faff8031de09eed19c29b3b
MD5 d6eb7c3691a7a2b98c66f31092786c60
BLAKE2b-256 64be1456dd539bcb570a7d3794cf9d9e3f79c7af534e13de22441e1670f06ae4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alphameta-2.5.2-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.2-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e7f6e68e33264c24e9f43cf747b8deee49d3ab6c7fe90f73db0f381429f05ac0
MD5 41794174e65f7a7ca8343fece2ca7c0d
BLAKE2b-256 84748e2ed0a949ab205c76f3da0fe90a58db180e4f1efbb781f28353849a2f1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.2-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0034d60a093fe875cdeea11eec1979fe914e0df0b6684a0e5d7bce64678f157c
MD5 c087f0a78f5ef7870c30bfa6b8442c58
BLAKE2b-256 a0c67ac72e5861b4ba1d97b8ef8a2e3cdb548654735137a9752020ea5e28b4b7

See more details on using hashes here.

File details

Details for the file alphameta-2.5.2-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.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 32438950c8f5c55b0ad4f35730af4af883c4247d14aef1cabd48fa709e53acc7
MD5 f6963167dfdaed6061996d2b59c9ae85
BLAKE2b-256 8807cc7dc205096514543e507df31fbd0c62798bd9b616d92cfe0f205f8544b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alphameta-2.5.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07c440365a09f81993b612e865861848a83d1e6e9a88df76279bb29630f9af89
MD5 146ccb671940b57bee91891f5628205a
BLAKE2b-256 ba5e8f453acd47d5b1e8a76350244c370b9dd4ef44c5be84e888ceb1016ff2cc

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

This release

2.5.2 This release

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