{"slug":"agents-204-168-199-108-sslip-io-v1-crypto-position-size-2ac54a","title":"Risk-based position sizing for a crypto (or any) trade","host":"agents.204-168-199-108.sslip.io","method":"GET","resource":"https://agents.204-168-199-108.sslip.io/v1/crypto/position-size","category":"market","description":"Risk-based position sizing for a crypto (or any) trade: from account size, risk % and entry/stop it returns units to buy/sell, notional, margin needed at your leverage, estimated isolated-margin liquidation price and whether the stop is hit before liquidation, plus reward and risk:reward if you give","price_listed":0.001,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["aws:base","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"account_size":"10000","entry":"3500","leverage":"10","risk_pct":"1","stop":"3400","take_profit":"3800"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"account_size":{"description":"Account equity in USD (or quote currency)","type":"string"},"entry":{"description":"Entry price","type":"string"},"fee_pct":{"description":"Fee % per side (default 0)","type":"string"},"leverage":{"description":"Leverage (default 1 = spot)","type":"string"},"maintenance_margin_pct":{"description":"Maintenance margin % (default 0.5)","type":"string"},"risk_pct":{"description":"% of account to risk on this trade, e.g. 1","type":"string"},"side":{"description":"long or short (default: inferred from stop)","type":"string"},"stop":{"description":"Stop-loss price","type":"string"},"take_profit":{"description":"Optional take-profit price","type":"string"}},"required":["account_size","risk_pct","entry","stop"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Risk-based position sizing for a crypto (or any) trade: from account size, risk % and entry/stop it returns units to buy/sell, notional, margin needed at your leverage, estimated isolated-margin liquidation price and whether the stop is hit before liquidation, plus reward and risk:reward if you give a take-profit. Optional round-trip fee %. Side is inferred from the stop.","last_updated":"2026-11-27T17:17:06.628Z","schemes":["exact"]}