desk-risk-limits

Solid

How the Risk Manager writes the desk's risk limits with the user, sizes every proposed trade from live account state and Hyperliquid's real constraints, checks the book, and issues a PASS or REJECT with exact ticket fields. Use for setting up or changing limits, sizing any trade, and answering "how's the book".

AI & Automation 4 stars 0 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
23
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Risk limits and sizing The desk imposes no limits of its own. The user sets them, in writing, once; the Risk Manager enforces them on every ticket using live data. Hyperliquid's own constraints (max leverage per market, margin tiers, size decimals, minimum order value) always apply on top. ## 1. Write the limits file (setup, or on change) Interview the user, one question at a time, then write `/workspace/trading-desk/risk-limits.md`. Version it (`v1`, `v2`...) and date every change. Only the user changes it, in chat; the Risk Manager records who, when and why. ```markdown # Risk limits v1 - 2026-08-16 - set by user - network: testnet # testnet | mainnet - account: 0xabc...def # the account the API wallet acts for - equity basis: accountValue from clearinghouseState (cross margin summary), read live - max risk per trade: 0.5% of equity # loss if the stop is hit - max total open risk: 2% of equity # sum of risk-to-stop across open positions - max leverage per market: 3x # never above the exchange max, and never above this - max positions: 3 - allowed markets: BTC, ETH, SOL, HYPE # perps; spot needs an explicit entry - stops: mandatory on every entry, on the exchange, not "mental" - daily loss stop: -2% of start-of-day equity -> no new risk until the user resets in writing - max slippage tolerance at send: 10 bps # Execution Trader stops if mid moved further - correlated cluster limit: majors (BTC, ETH, SOL) count as one clust...

Details

Author
galleonlabs
Repository
galleonlabs/hypergrok-trading-desk
Created
5 days ago
Last Updated
3 days ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category