{"uid":"cap_6s5glp2R4B4rBevii2Cg5","slug":"moneytools-position-risk-calculator-62b9abdb","name":"MoneyTools Position Risk Calculator","description":"Catalog of MoneyTools: 116 cheap, read-only tools for AI agents. Free daily tier, then x402 USDC micropayments or prepaid credits. Token safety, approvals, tx decoding, EIP-712 risk, gas, ENS, x402 validation, DNS, RDAP, JSON Schema, time, FX.","url":"https://tools.moneytools.dev/v1/position-risk?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":["entryPrice","leverage","side"],"properties":{"side":{"type":"string","examples":["long"],"description":"long | short"},"feeBps":{"type":"string","examples":[5],"description":"taker fee bps per side (default 5) (number, sent as a query string)"},"sizeUsd":{"type":"string","examples":[1000],"description":"position size USD (default 1000) (number, sent as a query string)"},"leverage":{"type":"string","examples":[5],"description":"1-200 (number, sent as a query string)"},"holdHours":{"type":"string","examples":[24],"description":"default 24 (number, sent as a query string)"},"entryPrice":{"type":"string","examples":[60000],"description":"entry price (number, sent as a query string)"},"fundingRatePct8h":{"type":"string","examples":[0.01],"description":"funding % per 8h (number, sent as a query string)"},"maintenanceMarginPct":{"type":"string","examples":[0.5],"description":"default 0.5 (number, sent as a query string)"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","properties":{"payment":{"type":"object","properties":{"charged":{"type":"boolean"},"network":{"type":"string"},"amountUsd":{"type":"string"},"transaction":{"type":["string","null"]}}},"freeTier":{"type":"object"},"_moneytools":{"type":"object","description":"optional plan / partner hints"}},"description":"Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{"side":"long","sizeUsd":1000,"warning":"Approximation (isolated margin, constant maintenance margin). Leverage can lose your whole margin. Not financial advice.","leverage":5,"marginUsd":200,"entryPrice":60000,"breakEvenMovePct":0.13,"liquidationPrice":48300,"roundTripFeesUsd":1,"estFundingCostUsd":0.3,"distanceToLiquidationPct":19.5}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cCt8YUeZal7CWLiR2WhQN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates liquidation price, margin requirements, funding costs, and overall risk metrics for a leveraged trading position given entry price, leverage, side, and optional fee/funding parameters.","exampleAgentPrompt":"If I open a long position on BTC at $60,000 with 10x leverage, using a $5,000 position size and a 5 bps taker fee, what's my liquidation price and overall position risk?","exampleUseCases":[{"title":"Liquidation price check before trade","prompt":"I'm about to go long on ETH at $3,200 with 20x leverage and a $2,000 position size — what's my liquidation price and how much margin am I risking?"},{"title":"Overnight funding cost estimation","prompt":"If I hold a short position on BTC entered at $65,000 with 5x leverage for 48 hours, with a funding rate of 0.01% per 8 hours, what will my total funding costs and risk metrics look like?"},{"title":"Aggressive leverage risk assessment","prompt":"What are the position risk metrics if I open a long at $42,000 with 100x leverage and $500 in size — specifically give me the liquidation price and maintenance margin required?"}],"resultDescription":"A JSON object containing computed risk metrics for the specified leveraged position, including liquidation price, margin requirements, estimated funding costs, and fee totals, along with payment metadata indicating whether the free tier was used or a $0.001 USDC micropayment was charged.","failureModes":["Missing required fields (entryPrice, leverage, or side) returns a 400 validation error","Leverage value outside 1-200 range rejected","Invalid side value (not 'long' or 'short') causes error","Payment failure via x402 if free tier exhausted and no valid USDC payment provided","Malformed numeric inputs return schema validation errors"],"whenToPreferThis":"Use this endpoint when an agent needs to compute position risk metrics for a leveraged derivatives trade in real time, especially when inputs are known (entry price, leverage, side) and the agent needs liquidation price or margin data without connecting to a full exchange API. Ideal for pre-trade risk checks in DeFi or CeFi trading workflows at $0.001 per call with a free daily tier.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T00:43:04.322Z","isFirstParty":false,"canonicalSlug":"moneytools-position-risk-calculator-62b9abdb"}