Skip to main content

Systematic options trading intelligence for small accounts. Regime detection, profitability gates, Kelly sizing, crash sentinel, decision audit. Your personal trading desk brain.

Project description

income-desk

The brain behind your trading desk.

Every trade suggestion is bespoke to your portfolio, your risk profile, your capital. This isn't a signal service — it's a personal trading intelligence system for income-first options traders.

Tests PyPI License: MIT Python 3.11+

What It Does

income-desk brings institutional-grade trading intelligence to $30-50K accounts:

  • Per-instrument regime detection — SPY can be R2 (high-vol mean-reverting) while GLD is R1 (calm). Not one global "market is bullish."
  • 10-check profitability gate — answers "will this iron condor actually make money after fees on a $35K account?"
  • Position-aware Kelly sizing — correlation-adjusted, margin-regime aware, drawdown circuit breaker
  • Crash sentinel — GREEN/YELLOW/ORANGE/RED/BLUE signals with automatic sizing overrides
  • 4-level decision audit — grades every trade 0-100 across legs, trade, portfolio, and risk
  • Trust framework — every output tells you how much to trust it and what you can do with it

No backtesting. Start with 1 contract, trade real, system learns from YOUR outcomes.

Quick Start

pip install income-desk
income-desk
> regime SPY QQQ IWM GLD TLT

Ticker  Regime  Confidence
SPY     R2      100%        High-vol mean-reverting
QQQ     R4      96%         Explosive — NO TRADE
IWM     R1      99%         Calm mean-reverting — ideal for income
GLD     R1      100%        Calm — ideal for income
TLT     R2      100%        High-vol mean-reverting

> rank IWM GLD

#  Ticker  Strategy        Score  Verdict
1  IWM     iron_condor     0.60   go
2  GLD     iron_condor     0.59   go

> validate IWM

DAILY VALIDATION — IWM — 10 checks
PASS  commission_drag     Credit covers fees
PASS  fill_quality        Spread survives natural fill
...
READY TO TRADE (8 passed, 2 warnings)

> audit IWM 35000

DECISION AUDIT — IWM IC — 85/100 B+ — APPROVED
  Legs: 90/100 A    Trade: 82/100 B    Portfolio: 88/100 B+    Risk: 92/100 A

Connect Your Broker

income-desk --setup    # Interactive wizard
Broker Market Cost Setup
Alpaca US Free (delayed quotes) 2-minute signup, no funding
TastyTrade US Account required Full DXLink streaming
IBKR US/Global Account required TWS or IB Gateway
Schwab US Account required OAuth2 developer app
Dhan India Free API access 20K requests/day
Zerodha India Account required Kite Connect API

Works without any broker (yfinance free data). Connect a broker for real-time quotes, Greeks, and HIGH trust analysis.

Key Concepts

The 4 Trading Questions

Question What MA does
What to buy? 11 option strategies assessed per ticker, regime-gated, ranked by composite score
At what price? Strike proximity to S/R, skew-optimal selection, limit order pricing, pullback alerts
How many? Kelly criterion + correlation adjustment + margin-regime cap + drawdown circuit breaker
When to exit? Regime-contingent stops, trailing profit targets, theta decay curve, position stress monitoring

Trust Framework

Every output carries a trust score:

TRUST: 85% HIGH
  Data:    90% HIGH (broker_live)
  Context: 85% HIGH (full mode)
  Fit for: ALL purposes including live execution

No broker? Trust is LOW — fit for research and screening only. The system refuses to let you execute when trust is too low.

Forward Testing, Not Backtesting

MA does not have a backtesting engine. This is deliberate. Start small, trade real, system learns:

1 contract → validation gates protect → record outcome →
calibrate_weights() learns → Kelly scales up → repeat

Documentation

80+ CLI Commands

Trading: validate, rank, screen, opportunity, entry_analysis, kelly, audit, sentinel Monitoring: health, monitor, exit_intelligence, adjust, assignment_risk Research: regime, technicals, vol, levels, research, stress, rate_risk Account: balance, quotes, watchlist, csp, covered_call, margin

Run help in the CLI for the full list.

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT — see LICENSE.

Project details


Download files

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

Source Distribution

income_desk-0.3.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

income_desk-0.3.1-py3-none-any.whl (662.4 kB view details)

Uploaded Python 3

File details

Details for the file income_desk-0.3.1.tar.gz.

File metadata

  • Download URL: income_desk-0.3.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for income_desk-0.3.1.tar.gz
Algorithm Hash digest
SHA256 6e7f4a2433417852965166dacd98a2809c3f3abea17facd87a42f8065adcfe6e
MD5 9e91659d34a266e0ef53818f61e89fb9
BLAKE2b-256 22cf495a80210eb66942cc5c9fe02ea3274d32e508854644be6f623a917e5bb6

See more details on using hashes here.

File details

Details for the file income_desk-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: income_desk-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 662.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for income_desk-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ac62be39f0e90c1182109b6f18e8afd4a482476390e89c55276c6fc70631408
MD5 a6cf44e10e3cfe036927f2c418bd82ba
BLAKE2b-256 9520cc888275d201752aa11f45eae97233abd0c7873e2948bc9a9430a0ca3cee

See more details on using hashes here.

Supported by

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