Nephyr Risk
Nephyr Risk by CLM Studios — battle-tested prediction market risk management tools. Calculate optimal position sizes using the Kelly criterion, compute expected value with Polymarket and Kalshi fee models, monitor risk status with automated drawdown protection, and validate trades before execution. Built from real trading infrastructure powering live prediction market bots. Stateless API — every…
Nephyr Risk endpoints
| Method | Endpoint | Description |
|---|---|---|
| meta | ||
| GET |
health_v1_health_get /v1/health |
Returns 200 when the API is up. Includes library version. |
| sizing | ||
| POST |
kelly_v1_kelly_post /v1/kelly |
Calculate the recommended position size using the Kelly criterion. Uses quarter-Kelly (default `kelly_fraction=0.25`) with a hard bankroll-percentage cap. Returns `size=0` with a… |
| analysis | ||
| POST |
fee_v1_fee_post /v1/fee |
Calculate the fee per leg for a given platform and contract price. - **Polymarket**: `fee = 0.02 × price` - **Kalshi**: `fee = 0.07 × P × (1−P)` Returns both `fee_per_leg` and… |
| POST |
drawdown_v1_drawdown_post /v1/drawdown |
Simulate a hypothetical sequence of losses and report when risk limits trigger. Pass a `loss_sequence` (positive values = losses, negative = gains). The simulation walks through… |
| POST |
ev_v1_ev_post /v1/ev |
Calculate the expected value of a YES contract after platform fees. Fee models: - **Polymarket**: flat 2% of price per leg (`fee = 0.02 × price`) - **Kalshi**: non-linear `fee =… |
| risk | ||
| POST |
risk_status_v1_risk_status_post /v1/risk-status |
Check current risk management status against configured limits. Returns one of three statuses: - **ACTIVE** — All limits clear, trading allowed. - **PAUSED** — Daily loss limit… |
| POST |
validate_trade_endpoint_v1_validate_trade_post /v1/validate-trade |
Validate whether a proposed trade passes all pre-trade risk checks. Projects the worst case (full loss of `proposed_size`) and checks whether it would breach the daily loss or… |
| portfolio | ||
| POST |
exposure_v1_exposure_post /v1/exposure |
Summarise portfolio exposure relative to bankroll. Pass a list of open positions (each with a `size` in USD). Returns total and largest position percentages, and a concentration… |
Nephyr Risk pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO Recommended | $29 / month | 10 / second |
|