How exposed is my whole book right now?
WORKFLOW · PORTFOLIO RISK · ADVANCED
Add every position you have open, across any exchange or instrument. See total P&L, total margin usage, and exactly which position sits closest to liquidation, in one view.
What positions do you have open?
Add each one: side, entry price, current mark price, size, and leverage. I'll total your exposure and tell you which position is closest to liquidation.
Use via API or MCP
This portfolio exposure check is available as a deterministic call, workflow.run_portfolio_risk: useful for bots or AI agents that need total exposure, margin use and liquidation distances across open positions.
EMBED ON YOUR SITE
<!-- TradingCalc widget: please keep the link below exactly as given (address and words) --> <div class="tradingcalc-widget" data-widget="portfolio-risk"><a href="https://tradingcalc.io/portfolio-risk?utm_source=embed&utm_medium=backlink&utm_campaign=portfolio-risk">Portfolio risk calculator by TradingCalc.io</a></div> <script async src="https://tradingcalc.io/embed.js"></script>
Free, no signup. Keep the text link in the code exactly as given, with its address and its words: it is the attribution and it points visitors to the full calculator. Change colors, size and start values or read the installation guide and FAQ.
What assumptions and edge cases does this calculator use?
Give 1 to 50 positions, each with entry price, mark price, size and leverage above zero. The maintenance margin rate is a fraction from 0 to 0.2 and fees are fractions from 0 to 0.05. An inverse position must name its settlement coin, and the account balance is optional (without it margin usage is not shown). Positions are not netted against each other. Not covered: correlation between positions, collateral shared across positions, tiered margin, funding and price moves after the mark price you give.
How is this different from the Liquidation or PnL calculators?
Those tools compute one position at a time. This one takes every open position you have (possibly across different exchanges and instruments) and rolls them up: total unrealized P&L, total margin in use, and which single position is closest to being liquidated. It calls the same underlying PnL and liquidation formulas per position, then aggregates the results.
Why are inverse (coin-margined) positions grouped by coin instead of summed with everything else?
A BTC-margined position settles in BTC and an ETH-margined position settles in ETH: adding those two numbers together produces a meaningless figure unless you convert both to USD at a live rate, which this tool does not assume. Linear (USDT-margined) positions are always USD-denominated, so those sum cleanly into one total; inverse positions get their own per-coin subtotal instead.
What does liquidation distance mean here?
How far the current mark price is from the price that would force-close each position, as a percentage. It is measured from the mark price you enter for that position, not the entry price, since these are already-open positions and price has usually moved since entry.
What does the verdict mean?
Healthy: your nearest liquidation is comfortably far away and margin usage (if you entered an account balance) is low. Watch: still safe but worth monitoring. Reduce: at least one position or your overall margin usage is getting tight. Critical: a position is close to liquidation or margin usage is very high; this is the state most likely to end in a forced close.
Can this pull my positions automatically from my exchange?
Not yet. Every position is entered manually (or passed as parameters by an AI agent/bot calling the MCP tool); there is no exchange API-key connection in this version.