backtrader
Event-driven backtesting with bar-by-bar execution, complex order types, multiple analyzers, and custom indicators
Use when building, backtesting, operating, or scaling automated trading on prediction markets (Kalshi or similar) — evidence-gated methodology, live-execution safety rails, and falsification protocols distilled from a real live-money campaign
$ npx -y skills add agiprolabs/claude-trading-skills --skill prediction-market-live-ops --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/prediction-market-live-opsContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when building, backtesting, operating, or scaling automated trading on prediction markets (Kalshi or similar) — evidence-gated methodology, live-execution safety rails, and falsification protocols distilled from a real live-money campaign
name: prediction-market-live-ops description: Use when building, backtesting, operating, or scaling automated trading on prediction markets (Kalshi or similar) — evidence-gated methodology, live-execution safety rails, and falsification protocols distilled from a real live-money campaign
Hard-won operational knowledge from a live Kalshi campaign (Aug–Sep 2026: crypto/commodity maker ladders, regime tilts, tennis dust vacuum — all falsified honestly, infrastructure open-sourced). Reference implementation: https://github.com/agiprolabs/kalshi-stack. Complements `prediction-market-strategy` (edge selection/sizing) — this skill covers the OPERATIONAL side: validating, executing, and killing strategies against a live venue without losing more than the lesson costs.
Every strategy decision is evidence-gated: backtest → paper → live micro-probe → ratchet. Each stage has a PRE-DECLARED kill condition with correctly calibrated probability math, written down BEFORE the data arrives. When a threshold turns out miscalibrated, correct it openly and re-declare — never silently move a goalpost in either direction.
estimate.** The prints a resting order actually captures are an adversely-selected sample of the tape (sweeps deep enough to reach your queue skew toward true collapses). A tennis dust book that measured +125%/$ on prints went 0-for-78 live (P<2%). Only fill-conditioned live outcomes validate a maker strategy.
A candle containing the instant is look-ahead and will fabricate covariates that vanish out-of-sample.
edges — stale quotes create phantom fills.
books concentrate EV; a "pattern" that is two elephant rounds is noise. Same rule when a holdout "wins": check concentration before believing it.
fast; comebacks are long matches/rounds). Never read a verdict off the fast-settling prefix.
edges.** A conditioning scheme must beat baseline on BOTH halves and on each individual day; pre-register the rules, no per-day fitting.
independence-based probabilities.
verify resting, cancel, verify gone) before any strategy trades through it. Paper cannot exercise venue routing parameters. Cost: $0.01.
(filled!) / failed. A 404 is not a cancel — it means wrong routing shard or a fill-race. Swallowed cancel failures + re-anchor loops = runaway position stacking (cost us $84 in one evening).
— placement, reads, cancels, collateral. Collateral must be pre-positioned on the shard before orders.
sustained test). Advertised budgets can be 10× off effective per-order cost. Pace bursts to the measured rate with retry-requeue on 429.
market trading inside your band silently becomes a taker fill of a different (unvalidated) trade. Tag and cohort maker vs taker fills separately in all realized-EV accounting.
on appearance), independent scheduler-driven drawdown breaker with deposit-jump detection, per-order and per-market size caps with anomaly ledger events, equity floor stand-down. The breaker baseline is set at session start per the operator's stated loss tolerance.
venues: NTP + fire at boundary+0 with a retry probe (measure the venue's open-transition latency). Event-driven venues: push-based discovery (lifecycle WebSocket channels) beats polling; a fresh market's book is empty, so first-to-rest owns the level for its lifetime.
in-memory state (untracked orders, missed settlements).
(sports/elections vs financials), and enforcement can change overnight. Datacenter location is part of your compliance posture.
current step covers the next step's incremental risk AND round-count and EV-continuity gates pass. Drop back a step on trailing degradation.
any scale projection; then the binding constraint is capture rate × measured pool, and capture rate is only measurable live.
EV-per-$ ratio at each step gates the next.
attribution is what lets a bug contaminate a verdict.
window destroys attribution.
variant, shared rounds, EV/premium-$ as the scale-free judge).
venue's own fills/settlements, never to internal marks.
A comprehensive collection of 68 ready-to-use trading, DeFi, and quantitative finance Agent Skills. Works with Claude Code, Cursor, Codex, Gemini CLI, and 30+ other tools.
Repo: agiprolabs/claude-trading-skills
Event-driven backtesting with bar-by-bar execution, complex order types, multiple analyzers, and custom indicators
Solana token market data via Birdeye — prices, OHLCV, trades, token metadata, security checks, and trader activity
Broad crypto market data from CoinGecko covering 13,000+ tokens. Global market stats, historical price data going back years, exchange volumes, trending…
Cointegration testing for pairs trading using Engle-Granger, Johansen, and rolling stability analysis
Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading
Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation