{"slug":"agents-204-168-199-108-sslip-io-v1-crypto-perp-calc-fee048","title":"For a long or short USDT/USDC-margined perp (isolated)","host":"agents.204-168-199-108.sslip.io","method":"GET","resource":"https://agents.204-168-199-108.sslip.io/v1/crypto/perp-calc","category":"market","description":"For a long or short USDT/USDC-margined perp (isolated): give entry, leverage and size (quantity, margin or notional) and get notional, initial margin, liquidation price, distance to liquidation, breakeven price after round-trip fees, PnL per 1% move. Add exit (+ hours_held and funding_rate_pct per 8","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":3,"answered_7d":3,"latency_ms_median":963,"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":{"entry":"3000","exit":"3150","funding_rate_pct":"0.01","hours_held":"24","leverage":"10","margin":"500","side":"long"},"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":{"entry":{"description":"Entry price","type":"string"},"exit":{"description":"Exit price (optional)","type":"string"},"fee_bps":{"description":"Taker fee per side in bps (default 5)","type":"string"},"funding_rate_pct":{"description":"Funding per 8h in % (optional)","type":"string"},"hours_held":{"description":"Hours held (for funding)","type":"string"},"leverage":{"description":"Leverage (default 1)","type":"string"},"maintenance_margin_pct":{"description":"Default 0.5","type":"string"},"margin":{"description":"Or: collateral in USD","type":"string"},"notional":{"description":"Or: position value in USD","type":"string"},"quantity":{"description":"Position size in coins","type":"string"},"side":{"description":"long or short","type":"string"}},"required":["entry"],"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":[{"day":"2026-11-30","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":954,"error":null},{"day":"2026-11-29","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":968,"error":null},{"day":"2026-11-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":963,"error":null}],"description_full":"For a long or short USDT/USDC-margined perp (isolated): give entry, leverage and size (quantity, margin or notional) and get notional, initial margin, liquidation price, distance to liquidation, breakeven price after round-trip fees, PnL per 1% move. Add exit (+ hours_held and funding_rate_pct per 8h) for gross/net PnL, fees, funding paid, ROE and whether it would have been liquidated first. Maintenance margin and fee bps adjustable (defaults 0.5% / 5 bps).","last_updated":"2026-11-27T22:56:57.551Z","schemes":["exact"]}