Files
foxhunt/crates
jgrusewski dc2fcac103 feat: GPU-native risk integration — Kelly, sqrt impact, order-type costs
4 priorities from risk module investigation:

P1: Kelly fraction sizing — new kernel parameter kelly_scale (f32).
    Computed per-epoch on CPU, uploaded as scalar. Stacks with
    CVaR × conviction: size = exposure × CVaR × conviction × kelly.

P3: Square-root market impact (Almgren & Chriss 2000) — replaced
    quadratic x² with √x. Academic standard for futures markets.
    Less penalty for moderate sizes, more realistic.

P4: Order-type tx cost differentiation — decode order_type branch
    from factored action. Market=+0bps, IoC=+2bps, LimitMaker=-5bps.
    LimitMaker rebate teaches model to prefer limit orders.

P2 (C51 VaR) deferred — IQN CVaR already provides this signal.

Position sizing chain is now:
  target = exposure × max_pos × CVaR × conviction × kelly
  cost = |delta| × price × (tx_mult × spread × √impact + order_premium)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 12:22:26 +01:00
..