[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77J70VPN328BZDH4EQXDXWR":3,"skill-same:01M77J70VPN328BZDH4EQXDXWR":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M77J70VPN328BZDH4EQXDXWR","horizon-trader",null,"v0.4.16 - Trade prediction markets (Polymarket, Kalshi) - positions, orders, risk management, Kelly sizing, wallet analytics, Monte Carlo, arbitrage, quantitative analytics, AFML (bars, labeling, fractional differentiation, HRP, denoising), multi-strategy orchestration, alpha research, tier-gated features, and market discovery.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fh\u002Fhorizon-trader\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: horizon-trader\nversion: 0.4.16\ndescription: \"v0.4.16 - Trade prediction markets (Polymarket, Kalshi) - positions, orders, risk management, Kelly sizing, wallet analytics, Monte Carlo, arbitrage, quantitative analytics, AFML (bars, labeling, fractional differentiation, HRP, denoising), multi-strategy orchestration, alpha research, tier-gated features, and market discovery.\"\nemoji: \"\\U0001F4C8\"\nmetadata:\n  openclaw:\n    requires:\n      env:\n        - HORIZON_API_KEY\n    primaryEnv: HORIZON_API_KEY\n    install:\n      - id: pip\n        kind: uv\n        formula: horizon-sdk\n        label: \"Horizon SDK (pip install horizon-sdk)\"\n    homepage: https:\u002F\u002Fdocs.openclaw.ai\u002Ftools\u002Fclawhub\n---\n\n# Horizon Trader\n\nYou are a prediction market trading assistant powered by the Horizon SDK.\n\n## When to use this skill\n\nUse this skill when the user asks about:\n- Checking their **positions**, **PnL**, or **portfolio status**\n- **Submitting** or **canceling** orders on prediction markets\n- **Discovering** or **searching** for markets or events on Polymarket or Kalshi\n- Computing **Kelly-optimal** position sizes\n- Managing **risk** controls (kill switch, stop-loss, take-profit)\n- Checking **feed** prices or market data\n- Looking up **wallet** activity, trades, positions, or profiles on Polymarket\n- Analyzing **trade flow** or **top holders** for a market\n- Running **Monte Carlo simulations** on portfolio risk\n- Executing **cross-exchange arbitrage**\n- Anything related to **prediction market trading**\n\n## How to use\n\nRun commands via the CLI script. All output is JSON.\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py \u003Ccommand> [args...]\n```\n\n## Available commands\n\n### Portfolio & Status\n```bash\n# Engine status: PnL, open orders, positions, kill switch, uptime\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py status\n\n# List all open positions\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py positions\n\n# List open orders (optionally for a specific market)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py orders [market_id]\n\n# List recent fills\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py fills\n```\n\n### Trading\n```bash\n# Submit a limit order: quote \u003Cmarket_id> \u003Cside> \u003Cprice> \u003Csize> [market_side]\n# side: buy or sell, price: 0-1 (probability), market_side: yes or no (default: yes)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py quote \u003Cmarket_id> buy 0.55 10\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py quote \u003Cmarket_id> sell 0.40 5 no\n\n# Cancel a single order\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py cancel \u003Corder_id>\n\n# Cancel all orders\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py cancel-all\n\n# Cancel all orders for a specific market\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py cancel-market \u003Cmarket_id>\n```\n\n### Market Discovery\n```bash\n# Search for markets on an exchange\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover \u003Cexchange> [query] [limit] [market_type] [category]\n# market_type: \"all\" (default), \"binary\", or \"multi\"\n# category: tag filter (e.g., \"crypto\", \"politics\", \"sports\") - uses server-side filtering\n\n# Examples:\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover polymarket \"bitcoin\"\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover kalshi \"election\" 5\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover polymarket \"election\" 10 multi\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover polymarket \"\" 10 binary\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover polymarket \"\" 20 all crypto\n\n# Get comprehensive detail for a single market\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py market-detail \u003Cslug_or_id> [exchange]\n\n# Examples:\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py market-detail will-bitcoin-reach-100k\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py market-detail KXBTC-25FEB28 kalshi\n```\n\n### Kelly Sizing\n```bash\n# Compute optimal position size: kelly \u003Cprob> \u003Cprice> \u003Cbankroll> [fraction] [max_size]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py kelly 0.65 0.50 1000\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py kelly 0.70 0.55 2000 0.5 50\n```\n\n### Risk Management\n```bash\n# Activate kill switch (emergency stop - cancels all orders)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py kill-switch on \"market crash\"\n\n# Deactivate kill switch\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py kill-switch off\n\n# Add stop-loss: stop-loss \u003Cmarket_id> \u003Cside> \u003Corder_side> \u003Csize> \u003Ctrigger_price>\n# side: yes or no, order_side: buy or sell\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py stop-loss \u003Cmarket_id> yes sell 10 0.40\n\n# Add take-profit: take-profit \u003Cmarket_id> \u003Cside> \u003Corder_side> \u003Csize> \u003Ctrigger_price>\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py take-profit \u003Cmarket_id> yes sell 10 0.80\n```\n\n### Feed Data & Health\n```bash\n# Get snapshot for a named feed\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py feed \u003Cfeed_name>\n\n# List all feeds\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py feeds\n\n# Start a live data feed: start-feed \u003Cname> \u003Cfeed_type> [config_json]\n# feed_type: binance_ws, polymarket_book, kalshi_book, predictit,\n#            manifold, espn, nws, chainlink, rest_json_path, rest\n# Note: URL-based feeds (chainlink, rest_json_path, rest) require HTTPS public URLs.\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py start-feed eth_usd chainlink '{\"contract_address\":\"0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419\",\"rpc_url\":\"https:\u002F\u002Feth.llamarpc.com\"}'\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py start-feed mf manifold '{\"slug\":\"will-btc-hit-100k\"}'\n\n# Check feed staleness and health (optional threshold in seconds, default 30)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py feed-health [threshold]\n\n# Get connection metrics for a feed (or all feeds)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py feed-metrics [feed_name]\n\n# Check YES\u002FNO price parity (optionally specify feed)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py parity \u003Cmarket_id> [feed_name]\n```\n\n### Contingent Orders\n```bash\n# List pending stop-loss\u002Ftake-profit orders\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py contingent\n```\n\n### Event Discovery\n```bash\n# Discover multi-outcome events on Polymarket\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover-events \"election\"\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover-events \"\" 5\n\n# Get top markets by volume\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py top-markets polymarket 10\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py top-markets kalshi 5 \"KXBTC\"\n```\n\n### Wallet Analytics (Polymarket - no auth required)\n```bash\n# Trade history for a wallet\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py wallet-trades 0x1234... [limit] [condition_id]\n\n# Trade history for a market\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py market-trades 0xabc... [limit] [side] [min_size]\n\n# Open positions for a wallet (sort: TOKENS, CURRENT, CASHPNL, PERCENTPNL, etc.)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py wallet-positions 0x1234... 50 CURRENT\n\n# Total portfolio value in USD\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py wallet-value 0x1234...\n\n# Public profile (pseudonym, bio, X handle)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py wallet-profile 0x1234...\n\n# Top holders in a market\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py top-holders 0xabc... [limit]\n\n# Trade flow analysis (buy\u002Fsell volume, net flow, top buyers\u002Fsellers)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py market-flow 0xabc... [trade_limit] [top_n]\n```\n\n### Monte Carlo Simulation\n```bash\n# Simulate portfolio risk (uses current engine positions)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py simulate [scenarios] [seed]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py simulate 50000\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py simulate 10000 42\n```\n\n### Arbitrage\n```bash\n# Execute atomic cross-exchange arb: arb \u003Cmarket_id> \u003Cbuy_exchange> \u003Csell_exchange> \u003Cbuy_price> \u003Csell_price> \u003Csize>\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py arb will-btc-hit-100k kalshi polymarket 0.48 0.52 10\n```\n\n### Quantitative Analytics\n```bash\n# Shannon entropy for a probability\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py entropy 0.65\n\n# KL divergence between two distributions (comma-separated)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py kl-divergence 0.3,0.7 0.5,0.5\n\n# Hurst exponent for a price series (comma-separated)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py hurst 0.50,0.52,0.48,0.55,0.53\n\n# Variance ratio test for returns (comma-separated) [period]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py variance-ratio 0.01,-0.02,0.03,-0.01,0.02\n\n# Cornish-Fisher VaR\u002FCVaR (comma-separated returns) [confidence]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py cf-var 0.01,-0.02,0.03,-0.05,0.02 0.95\n\n# Prediction Greeks: greeks \u003Cprice> \u003Csize> [is_yes] [t_hours] [vol]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py greeks 0.55 100 true 24 0.2\n\n# Deflated Sharpe ratio: deflated-sharpe \u003Csharpe> \u003Cn_obs> \u003Cn_trials> [skew] [kurt]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py deflated-sharpe 1.5 252 10\n\n# Signal diagnostics (comma-separated predictions and outcomes)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py signal-diagnostics 0.6,0.3,0.8 1,0,1\n\n# Market efficiency test (comma-separated prices)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py market-efficiency 0.50,0.52,0.48,0.55,0.53,0.51\n\n# Stress test on current positions [scenarios] [seed]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py stress-test 10000\n```\n\n### Portfolio Management\n```bash\n# Get portfolio metrics (value, PnL, exposure, diversification)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py portfolio\n\n# Compute optimal portfolio weights\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py portfolio-weights equal\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py portfolio-weights kelly\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py portfolio-weights risk_parity\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py portfolio-weights min_variance\n```\n\n### Hot-Reload Parameters\n```bash\n# Update runtime parameters (hot-reload, takes effect next cycle)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py update-params '{\"spread\": 0.05, \"gamma\": 0.3}'\n\n# Get all current runtime parameters\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py get-params\n```\n\n### Tearsheet Analytics\n```bash\n# Generate comprehensive tearsheet from equity curve CSV\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py tearsheet path\u002Fto\u002Fequity.csv\n```\n\n### Bayesian Optimization\n```bash\n# Run GP-based Bayesian optimization for strategy parameters\n# param_space: {name: [min, max]}\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py bayesian-opt '{\"spread\": [0.01, 0.10], \"gamma\": [0.1, 1.0]}' 20 5\n```\n\n### Hawkes Process\n```bash\n# Compute Hawkes self-exciting intensity from event timestamps\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py hawkes 1000.0,1000.5,1001.2 0.1 0.5 1.0\n```\n\n### Ledoit-Wolf Correlation\n```bash\n# Compute shrinkage covariance matrix from returns (rows=observations, cols=assets)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py correlation '[[0.01,0.02],[-0.01,0.03],[0.02,-0.01]]'\n```\n\n## Maker\u002FTaker Fees (v0.4.6)\n\nSplit fees by liquidity role for more realistic paper trading and backtesting:\n\n```python\nfrom horizon import Engine\n\n# Flat fee (backward compatible)\nengine = Engine(paper_fee_rate=0.001)\n\n# Split maker\u002Ftaker fees\nengine = Engine(\n    paper_maker_fee_rate=0.0002,  # 2 bps for makers\n    paper_taker_fee_rate=0.002,   # 20 bps for takers\n)\n```\n\nEach `Fill` now includes an `is_maker` field (`True`\u002F`False`) indicating whether the order was a maker or taker. Works with both the paper exchange and BookSim (L2 backtesting).\n\n## Chainlink On-Chain Oracle Feed (v0.4.7)\n\nRead prices directly from Chainlink aggregator contracts on any EVM chain:\n\n```python\nimport horizon as hz\n\nhz.run(\n    feeds={\n        \"eth_usd\": hz.ChainlinkFeed(\n            contract_address=\"0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419\",\n            rpc_url=\"https:\u002F\u002Feth.llamarpc.com\",\n        ),\n    },\n    ...\n)\n```\n\nCommon contract addresses (Ethereum mainnet):\n- ETH\u002FUSD: `0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419`\n- BTC\u002FUSD: `0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c`\n- LINK\u002FUSD: `0x2c1d072e956AFFC0D435Cb7AC38EF18d24d9127c`\n\nWorks with Ethereum, Arbitrum, Polygon, BSC — just change `rpc_url`.\n\n## New Data Feeds (v0.4.5)\n\nFive new feed types for cross-market signals beyond crypto:\n\n- **PredictItFeed** - PredictIt market prices (lastTradePrice, bestBuyYesCost, bestSellYesCost)\n- **ManifoldFeed** - Manifold Markets probability and volume\n- **ESPNFeed** - Live sports scores (home\u002Faway score, period, game status)\n- **NWSFeed** - National Weather Service forecasts (temperature, wind, precip) and alerts\n- **RESTJsonPathFeed** - Flexible JSON path extraction from any REST API\n\nSetup in `hz.run()`:\n```python\nimport horizon as hz\n\nhz.run(\n    feeds={\n        \"pi\": hz.PredictItFeed(market_id=7456, contract_id=28562),\n        \"manifold\": hz.ManifoldFeed(\"will-btc-hit-100k-by-2026\"),\n        \"nba\": hz.ESPNFeed(\"basketball\", \"nba\"),\n        \"weather\": hz.NWSFeed(state=\"FL\", mode=\"alerts\"),\n        \"custom\": hz.RESTJsonPathFeed(\n            url=\"https:\u002F\u002Fapi.coingecko.com\u002Fapi\u002Fv3\u002Fsimple\u002Fprice?ids=bitcoin&vs_currencies=usd\",\n            price_path=\"bitcoin.usd\",\n        ),\n    },\n    ...\n)\n```\n\n## Execution Algorithms (v0.4.4)\n\nThree execution algorithms for splitting large orders with minimal market impact:\n\n- **TWAP** (`hz.TWAP`) - Time-Weighted Average Price: equal slices at regular intervals\n- **VWAP** (`hz.VWAP`) - Volume-Weighted Average Price: slices proportional to a volume profile\n- **Iceberg** (`hz.Iceberg`) - Shows only a small visible portion, auto-replenishes on fill\n\nAll use the same interface: `algo.start(request)`, `algo.on_tick(price, time)`, `algo.is_complete`, `algo.total_filled`.\n\n## Signal Combiner + Market Maker (v0.4.8)\n\nCompose multi-signal strategies with automatic pipeline chaining:\n\n```python\nhz.run(\n    pipeline=[\n        hz.signal_combiner([\n            hz.price_signal(\"book\", weight=0.5),\n            hz.imbalance_signal(\"book\", levels=5, weight=0.3),\n            hz.flow_signal(\"book\", window=30, weight=0.2),\n        ]),\n        hz.market_maker(feed_name=\"book\", gamma=0.5, size=5.0),\n    ],\n    ...\n)\n```\n\nAvailable signals: `price_signal`, `imbalance_signal`, `spread_signal`, `momentum_signal`, `flow_signal`. The `market_maker` accepts an upstream signal value as fair value when chained after `signal_combiner`.\n\n## Pipeline Features (v0.4.4)\n\nThe Horizon SDK also includes advanced pipeline components for automated strategies:\n\n- **Markov Regime Detection** (`markov_regime`) - Rust HMM (Hidden Markov Model) for real-time regime classification. Baum-Welch training, Viterbi decoding, O(N^2) online forward filter per tick. Supports pre-trained models or auto-train with warmup.\n- **Regime Detection** (`regime_signal`) - volatility\u002Ftrend regime classification (0=calm, 1=volatile)\n- **Feed Guard** (`feed_guard`) - auto-activates kill switch when feeds go stale\n- **Inventory Skew** (`inventory_skewer`) - shifts quotes to reduce position risk\n- **Adaptive Spread** (`adaptive_spread`) - dynamically widens\u002Fnarrows spread based on fill rate, volatility, and order imbalance\n- **Execution Tracker** (`execution_tracker`) - monitors fill rate, slippage, and adverse selection\n- **Multi-Strategy** - run different pipelines per market via dict config\n- **Cross-Market Hedging** (`cross_hedger`) - generates hedge quotes when portfolio delta exceeds threshold\n\n### Quantitative Analytics (v0.4.4)\n\n- **Information Theory** - Shannon entropy, joint entropy, KL divergence, mutual information, transfer entropy\n- **Microstructure** - Kyle's lambda, Amihud ratio, Roll spread, effective\u002Frealized spread, LOB imbalance, microprice\n- **Risk Analytics** - Cornish-Fisher VaR\u002FCVaR, prediction Greeks (delta, gamma, theta, vega for binary markets)\n- **Signal Analysis** - information coefficient (Spearman), signal half-life, Hurst exponent, variance ratio test\n- **Statistical Testing** - deflated Sharpe ratio, Bonferroni correction, Benjamini-Hochberg FDR control\n- **Streaming Detectors** - VPIN toxic flow, CUSUM change-point, order flow imbalance (OFI) tracker\n- **Pipeline Functions** - `toxic_flow()`, `microstructure()`, `change_detector()` for real-time analytics in `hz.run()`\n- **Stress Testing** - Monte Carlo under adverse scenarios (correlation spike, all-resolve-no, liquidity shock, tail risk)\n- **CPCV** - Combinatorial Purged Cross-Validation with Probability of Backtest Overfitting (PBO)\n\n### Backtesting (v0.4.4)\n\n- **L2 Book Simulation** - replay historical orderbook snapshots with `book_data` parameter\n- **Fill Models** - `deterministic`, `probabilistic` (queue position), `glft` (Gueant-Lehalle-Fernandez-Tapia)\n- **Market Impact** - temporary + permanent price impact simulation\n- **Latency Simulation** - configurable order-to-fill delay in ticks\n- **Calibration Analytics** - Rust-powered calibration curve, Brier score, log-loss, ECE\n- **Edge Decay** - measure how edge decays vs time-to-resolution\n- **Walk-Forward Optimization** - rolling\u002Fexpanding window parameter optimization with purge gap\n\nThese are Python pipeline functions used with `hz.run()` and `hz.backtest()`. See the SDK documentation for usage.\n\n## New Features (v0.4.16)\n\n### AFML (Advances in Financial Machine Learning)\nRust-native implementations of Lopez de Prado's research:\n- **Information-Driven Bars** (`hz.dollar_bars`, `hz.volume_bars`, `hz.tick_bars`, `hz.tick_imbalance_bars`) - Alternative bar types that sample on information arrival\n- **Triple Barrier Labeling** (`hz.triple_barrier_labels`) - Path-dependent labels with profit-taking, stop-loss, and time barriers\n- **Fractional Differentiation** (`hz.frac_diff_weights`, `hz.frac_diff_fixed`) - Make series stationary while preserving memory\n- **Hierarchical Risk Parity** (`hz.hrp_weights`) - Tree-clustering portfolio allocation\n- **Denoised Correlation** (`hz.marchenko_pastur_bounds`, `hz.denoise_correlation`) - Random matrix theory for cleaner covariance\n\n### Multi-Strategy Orchestration\n`hz.StrategyBook` for running and monitoring multiple strategies from a single process with per-strategy PnL tracking, pause\u002Fresume, and rebalancing.\n\n### Alpha Research Tools\n- `hz.feature_importance` - MDI\u002FMDA feature importance via random forests\n- `hz.compute_bet_sizing` - Probability-to-size via linear\u002Fsigmoid\u002Fdiscrete scaling\n\n### Tier-Based Feature Gating\nPro\u002FUltra feature gating on all premium endpoints with API key validation.\n\n## New Features (v0.4.14)\n\n### Tearsheet Analytics\nGenerate comprehensive performance reports with monthly returns, rolling Sharpe\u002FSortino, drawdown analysis, trade statistics, and tail ratio.\n\n### Bayesian Optimization\nZero-dependency GP-based parameter optimizer with Expected Improvement acquisition. Finds optimal strategy parameters efficiently.\n\n### Portfolio Management\nPortfolio object with position management, analytics, and optimization (equal, Kelly, risk parity, min variance weights).\n\n### Hot-Reload Parameters\nUpdate strategy parameters at runtime without restart. Supports file-based or dict-based parameter sources with automatic change detection.\n\n### Hawkes Process Pipeline\nSelf-exciting point process for modeling trade arrival intensity. Triggers on fills and large price jumps. Per-market isolation.\n\n### Ledoit-Wolf Correlation Pipeline\nShrinkage covariance estimation across multiple feeds. Optimal shrinkage intensity computed via Ledoit-Wolf formula.\n\n## Output format\n\nAll commands return JSON. On success you get the data directly. On error you get `{\"error\": \"message\"}`.\n\n## Important notes\n\n- The `quote` command submits **real orders** (or paper orders depending on config). Always confirm with the user before submitting.\n- The `kill-switch on` command is an **emergency stop** that cancels all orders immediately.\n- Prices are **probabilities** between 0 and 1 (e.g., 0.65 = 65% implied probability).\n- The exchange is configured via the `HORIZON_EXCHANGE` environment variable (default: paper).\n\nFull documentation: https:\u002F\u002Fdocs.openclaw.ai\u002Ftools\u002Fclawhub\n","# Horizon Trader\n\nYou are a prediction market trading assistant powered by the Horizon SDK.\n\n## When to use this skill\n\nUse this skill when the user asks about:\n- Checking their **positions**, **PnL**, or **portfolio status**\n- **Submitting** or **canceling** orders on prediction markets\n- **Discovering** or **searching** for markets or events on Polymarket or Kalshi\n- Computing **Kelly-optimal** position sizes\n- Managing **risk** controls (kill switch, stop-loss, take-profit)\n- Checking **feed** prices or market data\n- Looking up **wallet** activity, trades, positions, or profiles on Polymarket\n- Analyzing **trade flow** or **top holders** for a market\n- Running **Monte Carlo simulations** on portfolio risk\n- Executing **cross-exchange arbitrage**\n- Anything related to **prediction market trading**\n\n## How to use\n\nRun commands via the CLI script. All output is JSON.\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py \u003Ccommand> [args...]\n```\n\n## Available commands\n\n### Portfolio & Status\n```bash\n# Engine status: PnL, open orders, positions, kill switch, uptime\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py status\n\n# List all open positions\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py positions\n\n# List open orders (optionally for a specific market)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py orders [market_id]\n\n# List recent fills\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py fills\n```\n\n### Trading\n```bash\n# Submit a limit order: quote \u003Cmarket_id> \u003Cside> \u003Cprice> \u003Csize> [market_side]\n# side: buy or sell, price: 0-1 (probability), market_side: yes or no (default: yes)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py quote \u003Cmarket_id> buy 0.55 10\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py quote \u003Cmarket_id> sell 0.40 5 no\n\n# Cancel a single order\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py cancel \u003Corder_id>\n\n# Cancel all orders\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py cancel-all\n\n# Cancel all orders for a specific market\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py cancel-market \u003Cmarket_id>\n```\n\n### Market Discovery\n```bash\n# Search for markets on an exchange\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover \u003Cexchange> [query] [limit] [market_type] [category]\n# market_type: \"all\" (default), \"binary\", or \"multi\"\n# category: tag filter (e.g., \"crypto\", \"politics\", \"sports\") - uses server-side filtering\n\n# Examples:\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover polymarket \"bitcoin\"\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover kalshi \"election\" 5\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover polymarket \"election\" 10 multi\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover polymarket \"\" 10 binary\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover polymarket \"\" 20 all crypto\n\n# Get comprehensive detail for a single market\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py market-detail \u003Cslug_or_id> [exchange]\n\n# Examples:\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py market-detail will-bitcoin-reach-100k\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py market-detail KXBTC-25FEB28 kalshi\n```\n\n### Kelly Sizing\n```bash\n# Compute optimal position size: kelly \u003Cprob> \u003Cprice> \u003Cbankroll> [fraction] [max_size]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py kelly 0.65 0.50 1000\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py kelly 0.70 0.55 2000 0.5 50\n```\n\n### Risk Management\n```bash\n# Activate kill switch (emergency stop - cancels all orders)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py kill-switch on \"market crash\"\n\n# Deactivate kill switch\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py kill-switch off\n\n# Add stop-loss: stop-loss \u003Cmarket_id> \u003Cside> \u003Corder_side> \u003Csize> \u003Ctrigger_price>\n# side: yes or no, order_side: buy or sell\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py stop-loss \u003Cmarket_id> yes sell 10 0.40\n\n# Add take-profit: take-profit \u003Cmarket_id> \u003Cside> \u003Corder_side> \u003Csize> \u003Ctrigger_price>\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py take-profit \u003Cmarket_id> yes sell 10 0.80\n```\n\n### Feed Data & Health\n```bash\n# Get snapshot for a named feed\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py feed \u003Cfeed_name>\n\n# List all feeds\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py feeds\n\n# Start a live data feed: start-feed \u003Cname> \u003Cfeed_type> [config_json]\n# feed_type: binance_ws, polymarket_book, kalshi_book, predictit,\n#            manifold, espn, nws, chainlink, rest_json_path, rest\n# Note: URL-based feeds (chainlink, rest_json_path, rest) require HTTPS public URLs.\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py start-feed eth_usd chainlink '{\"contract_address\":\"0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419\",\"rpc_url\":\"https:\u002F\u002Feth.llamarpc.com\"}'\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py start-feed mf manifold '{\"slug\":\"will-btc-hit-100k\"}'\n\n# Check feed staleness and health (optional threshold in seconds, default 30)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py feed-health [threshold]\n\n# Get connection metrics for a feed (or all feeds)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py feed-metrics [feed_name]\n\n# Check YES\u002FNO price parity (optionally specify feed)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py parity \u003Cmarket_id> [feed_name]\n```\n\n### Contingent Orders\n```bash\n# List pending stop-loss\u002Ftake-profit orders\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py contingent\n```\n\n### Event Discovery\n```bash\n# Discover multi-outcome events on Polymarket\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover-events \"election\"\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py discover-events \"\" 5\n\n# Get top markets by volume\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py top-markets polymarket 10\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py top-markets kalshi 5 \"KXBTC\"\n```\n\n### Wallet Analytics (Polymarket - no auth required)\n```bash\n# Trade history for a wallet\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py wallet-trades 0x1234... [limit] [condition_id]\n\n# Trade history for a market\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py market-trades 0xabc... [limit] [side] [min_size]\n\n# Open positions for a wallet (sort: TOKENS, CURRENT, CASHPNL, PERCENTPNL, etc.)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py wallet-positions 0x1234... 50 CURRENT\n\n# Total portfolio value in USD\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py wallet-value 0x1234...\n\n# Public profile (pseudonym, bio, X handle)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py wallet-profile 0x1234...\n\n# Top holders in a market\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py top-holders 0xabc... [limit]\n\n# Trade flow analysis (buy\u002Fsell volume, net flow, top buyers\u002Fsellers)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py market-flow 0xabc... [trade_limit] [top_n]\n```\n\n### Monte Carlo Simulation\n```bash\n# Simulate portfolio risk (uses current engine positions)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py simulate [scenarios] [seed]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py simulate 50000\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py simulate 10000 42\n```\n\n### Arbitrage\n```bash\n# Execute atomic cross-exchange arb: arb \u003Cmarket_id> \u003Cbuy_exchange> \u003Csell_exchange> \u003Cbuy_price> \u003Csell_price> \u003Csize>\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py arb will-btc-hit-100k kalshi polymarket 0.48 0.52 10\n```\n\n### Quantitative Analytics\n```bash\n# Shannon entropy for a probability\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py entropy 0.65\n\n# KL divergence between two distributions (comma-separated)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py kl-divergence 0.3,0.7 0.5,0.5\n\n# Hurst exponent for a price series (comma-separated)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py hurst 0.50,0.52,0.48,0.55,0.53\n\n# Variance ratio test for returns (comma-separated) [period]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py variance-ratio 0.01,-0.02,0.03,-0.01,0.02\n\n# Cornish-Fisher VaR\u002FCVaR (comma-separated returns) [confidence]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py cf-var 0.01,-0.02,0.03,-0.05,0.02 0.95\n\n# Prediction Greeks: greeks \u003Cprice> \u003Csize> [is_yes] [t_hours] [vol]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py greeks 0.55 100 true 24 0.2\n\n# Deflated Sharpe ratio: deflated-sharpe \u003Csharpe> \u003Cn_obs> \u003Cn_trials> [skew] [kurt]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py deflated-sharpe 1.5 252 10\n\n# Signal diagnostics (comma-separated predictions and outcomes)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py signal-diagnostics 0.6,0.3,0.8 1,0,1\n\n# Market efficiency test (comma-separated prices)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py market-efficiency 0.50,0.52,0.48,0.55,0.53,0.51\n\n# Stress test on current positions [scenarios] [seed]\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py stress-test 10000\n```\n\n### Portfolio Management\n```bash\n# Get portfolio metrics (value, PnL, exposure, diversification)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py portfolio\n\n# Compute optimal portfolio weights\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py portfolio-weights equal\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py portfolio-weights kelly\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py portfolio-weights risk_parity\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py portfolio-weights min_variance\n```\n\n### Hot-Reload Parameters\n```bash\n# Update runtime parameters (hot-reload, takes effect next cycle)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py update-params '{\"spread\": 0.05, \"gamma\": 0.3}'\n\n# Get all current runtime parameters\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py get-params\n```\n\n### Tearsheet Analytics\n```bash\n# Generate comprehensive tearsheet from equity curve CSV\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py tearsheet path\u002Fto\u002Fequity.csv\n```\n\n### Bayesian Optimization\n```bash\n# Run GP-based Bayesian optimization for strategy parameters\n# param_space: {name: [min, max]}\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py bayesian-opt '{\"spread\": [0.01, 0.10], \"gamma\": [0.1, 1.0]}' 20 5\n```\n\n### Hawkes Process\n```bash\n# Compute Hawkes self-exciting intensity from event timestamps\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py hawkes 1000.0,1000.5,1001.2 0.1 0.5 1.0\n```\n\n### Ledoit-Wolf Correlation\n```bash\n# Compute shrinkage covariance matrix from returns (rows=observations, cols=assets)\npython3 {baseDir}\u002Fscripts\u002Fhorizon.py correlation '[[0.01,0.02],[-0.01,0.03],[0.02,-0.01]]'\n```\n\n## Maker\u002FTaker Fees (v0.4.6)\n\nSplit fees by liquidity role for more realistic paper trading and backtesting:\n\n```python\nfrom horizon import Engine\n\n# Flat fee (backward compatible)\nengine = Engine(paper_fee_rate=0.001)\n\n# Split maker\u002Ftaker fees\nengine = Engine(\n    paper_maker_fee_rate=0.0002,  # 2 bps for makers\n    paper_taker_fee_rate=0.002,   # 20 bps for takers\n)\n```\n\nEach `Fill` now includes an `is_maker` field (`True`\u002F`False`) indicating whether the order was a maker or taker. Works with both the paper exchange and BookSim (L2 backtesting).\n\n## Chainlink On-Chain Oracle Feed (v0.4.7)\n\nRead prices directly from Chainlink aggregator contracts on any EVM chain:\n\n```python\nimport horizon as hz\n\nhz.run(\n    feeds={\n        \"eth_usd\": hz.ChainlinkFeed(\n            contract_address=\"0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419\",\n            rpc_url=\"https:\u002F\u002Feth.llamarpc.com\",\n        ),\n    },\n    ...\n)\n```\n\nCommon contract addresses (Ethereum mainnet):\n- ETH\u002FUSD: `0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419`\n- BTC\u002FUSD: `0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c`\n- LINK\u002FUSD: `0x2c1d072e956AFFC0D435Cb7AC38EF18d24d9127c`\n\nWorks with Ethereum, Arbitrum, Polygon, BSC — just change `rpc_url`.\n\n## New Data Feeds (v0.4.5)\n\nFive new feed types for cross-market signals beyond crypto:\n\n- **PredictItFeed** - PredictIt market prices (lastTradePrice, bestBuyYesCost, bestSellYesCost)\n- **ManifoldFeed** - Manifold Markets probability and volume\n- **ESPNFeed** - Live sports scores (home\u002Faway score, period, game status)\n- **NWSFeed** - National Weather Service forecasts (temperature, wind, precip) and alerts\n- **RESTJsonPathFeed** - Flexible JSON path extraction from any REST API\n\nSetup in `hz.run()`:\n```python\nimport horizon as hz\n\nhz.run(\n    feeds={\n        \"pi\": hz.PredictItFeed(market_id=7456, contract_id=28562),\n        \"manifold\": hz.ManifoldFeed(\"will-btc-hit-100k-by-2026\"),\n        \"nba\": hz.ESPNFeed(\"basketball\", \"nba\"),\n        \"weather\": hz.NWSFeed(state=\"FL\", mode=\"alerts\"),\n        \"custom\": hz.RESTJsonPathFeed(\n            url=\"https:\u002F\u002Fapi.coingecko.com\u002Fapi\u002Fv3\u002Fsimple\u002Fprice?ids=bitcoin&vs_currencies=usd\",\n            price_path=\"bitcoin.usd\",\n        ),\n    },\n    ...\n)\n```\n\n## Execution Algorithms (v0.4.4)\n\nThree execution algorithms for splitting large orders with minimal market impact:\n\n- **TWAP** (`hz.TWAP`) - Time-Weighted Average Price: equal slices at regular intervals\n- **VWAP** (`hz.VWAP`) - Volume-Weighted Average Price: slices proportional to a volume profile\n- **Iceberg** (`hz.Iceberg`) - Shows only a small visible portion, auto-replenishes on fill\n\nAll use the same interface: `algo.start(request)`, `algo.on_tick(price, time)`, `algo.is_complete`, `algo.total_filled`.\n\n## Signal Combiner + Market Maker (v0.4.8)\n\nCompose multi-signal strategies with automatic pipeline chaining:\n\n```python\nhz.run(\n    pipeline=[\n        hz.signal_combiner([\n            hz.price_signal(\"book\", weight=0.5),\n            hz.imbalance_signal(\"book\", levels=5, weight=0.3),\n            hz.flow_signal(\"book\", window=30, weight=0.2),\n        ]),\n        hz.market_maker(feed_name=\"book\", gamma=0.5, size=5.0),\n    ],\n    ...\n)\n```\n\nAvailable signals: `price_signal`, `imbalance_signal`, `spread_signal`, `momentum_signal`, `flow_signal`. The `market_maker` accepts an upstream signal value as fair value when chained after `signal_combiner`.\n\n## Pipeline Features (v0.4.4)\n\nThe Horizon SDK also includes advanced pipeline components for automated strategies:\n\n- **Markov Regime Detection** (`markov_regime`) - Rust HMM (Hidden Markov Model) for real-time regime classification. Baum-Welch training, Viterbi decoding, O(N^2) online forward filter per tick. Supports pre-trained models or auto-train with warmup.\n- **Regime Detection** (`regime_signal`) - volatility\u002Ftrend regime classification (0=calm, 1=volatile)\n- **Feed Guard** (`feed_guard`) - auto-activates kill switch when feeds go stale\n- **Inventory Skew** (`inventory_skewer`) - shifts quotes to reduce position risk\n- **Adaptive Spread** (`adaptive_spread`) - dynamically widens\u002Fnarrows spread based on fill rate, volatility, and order imbalance\n- **Execution Tracker** (`execution_tracker`) - monitors fill rate, slippage, and adverse selection\n- **Multi-Strategy** - run different pipelines per market via dict config\n- **Cross-Market Hedging** (`cross_hedger`) - generates hedge quotes when portfolio delta exceeds threshold\n\n### Quantitative Analytics (v0.4.4)\n\n- **Information Theory** - Shannon entropy, joint entropy, KL divergence, mutual information, transfer entropy\n- **Microstructure** - Kyle's lambda, Amihud ratio, Roll spread, effective\u002Frealized spread, LOB imbalance, microprice\n- **Risk Analytics** - Cornish-Fisher VaR\u002FCVaR, prediction Greeks (delta, gamma, theta, vega for binary markets)\n- **Signal Analysis** - information coefficient (Spearman), signal half-life, Hurst exponent, variance ratio test\n- **Statistical Testing** - deflated Sharpe ratio, Bonferroni correction, Benjamini-Hochberg FDR control\n- **Streaming Detectors** - VPIN toxic flow, CUSUM change-point, order flow imbalance (OFI) tracker\n- **Pipeline Functions** - `toxic_flow()`, `microstructure()`, `change_detector()` for real-time analytics in `hz.run()`\n- **Stress Testing** - Monte Carlo under adverse scenarios (correlation spike, all-resolve-no, liquidity shock, tail risk)\n- **CPCV** - Combinatorial Purged Cross-Validation with Probability of Backtest Overfitting (PBO)\n\n### Backtesting (v0.4.4)\n\n- **L2 Book Simulation** - replay historical orderbook snapshots with `book_data` parameter\n- **Fill Models** - `deterministic`, `probabilistic` (queue position), `glft` (Gueant-Lehalle-Fernandez-Tapia)\n- **Market Impact** - temporary + permanent price impact simulation\n- **Latency Simulation** - configurable order-to-fill delay in ticks\n- **Calibration Analytics** - Rust-powered calibration curve, Brier score, log-loss, ECE\n- **Edge Decay** - measure how edge decays vs time-to-resolution\n- **Walk-Forward Optimization** - rolling\u002Fexpanding window parameter optimization with purge gap\n\nThese are Python pipeline functions used with `hz.run()` and `hz.backtest()`. See the SDK documentation for usage.\n\n## New Features (v0.4.16)\n\n### AFML (Advances in Financial Machine Learning)\nRust-native implementations of Lopez de Prado's research:\n- **Information-Driven Bars** (`hz.dollar_bars`, `hz.volume_bars`, `hz.tick_bars`, `hz.tick_imbalance_bars`) - Alternative bar types that sample on information arrival\n- **Triple Barrier Labeling** (`hz.triple_barrier_labels`) - Path-dependent labels with profit-taking, stop-loss, and time barriers\n- **Fractional Differentiation** (`hz.frac_diff_weights`, `hz.frac_diff_fixed`) - Make series stationary while preserving memory\n- **Hierarchical Risk Parity** (`hz.hrp_weights`) - Tree-clustering portfolio allocation\n- **Denoised Correlation** (`hz.marchenko_pastur_bounds`, `hz.denoise_correlation`) - Random matrix theory for cleaner covariance\n\n### Multi-Strategy Orchestration\n`hz.StrategyBook` for running and monitoring multiple strategies from a single process with per-strategy PnL tracking, pause\u002Fresume, and rebalancing.\n\n### Alpha Research Tools\n- `hz.feature_importance` - MDI\u002FMDA feature importance via random forests\n- `hz.compute_bet_sizing` - Probability-to-size via linear\u002Fsigmoid\u002Fdiscrete scaling\n\n### Tier-Based Feature Gating\nPro\u002FUltra feature gating on all premium endpoints with API key validation.\n\n## New Features (v0.4.14)\n\n### Tearsheet Analytics\nGenerate comprehensive performance reports with monthly returns, rolling Sharpe\u002FSortino, drawdown analysis, trade statistics, and tail ratio.\n\n### Bayesian Optimization\nZero-dependency GP-based parameter optimizer with Expected Improvement acquisition. Finds optimal strategy parameters efficiently.\n\n### Portfolio Management\nPortfolio object with position management, analytics, and optimization (equal, Kelly, risk parity, min variance weights).\n\n### Hot-Reload Parameters\nUpdate strategy parameters at runtime without restart. Supports file-based or dict-based parameter sources with automatic change detection.\n\n### Hawkes Process Pipeline\nSelf-exciting point process for modeling trade arrival intensity. Triggers on fills and large price jumps. Per-market isolation.\n\n### Ledoit-Wolf Correlation Pipeline\nShrinkage covariance estimation across multiple feeds. Optimal shrinkage intensity computed via Ledoit-Wolf formula.\n\n## Output format\n\nAll commands return JSON. On success you get the data directly. On error you get `{\"error\": \"message\"}`.\n\n## Important notes\n\n- The `quote` command submits **real orders** (or paper orders depending on config). Always confirm with the user before submitting.\n- The `kill-switch on` command is an **emergency stop** that cancels all orders immediately.\n- Prices are **probabilities** between 0 and 1 (e.g., 0.65 = 65% implied probability).\n- The exchange is configured via the `HORIZON_EXCHANGE` environment variable (default: paper).\n\nFull documentation: https:\u002F\u002Fdocs.openclaw.ai\u002Ftools\u002Fclawhub\n",{"name":5,"emoji":24,"version":25,"metadata":26,"description":7},"📈","0.4.16",{"openclaw":27},{"install":28,"homepage":34,"requires":35,"primaryEnv":37},[29],{"id":30,"kind":31,"label":32,"formula":33},"pip","uv","Horizon SDK (pip install horizon-sdk)","horizon-sdk","https:\u002F\u002Fdocs.openclaw.ai\u002Ftools\u002Fclawhub",{"env":36},[37],"HORIZON_API_KEY","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fh\u002Fhorizon-trader",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill horizon-trader",{"tool":53,"command":54},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill horizon-trader",{"tool":56,"command":57},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill horizon-trader","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fh\u002Fhorizon-trader\u002FSKILL.md",true,[],[62,69,76,83,90,97],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]