DETERMINISTIC · VERIFIED · 17 EXCHANGES

Verified crypto math
for humans and AI agents

Prevent hallucinated PnL, liquidation, sizing, and funding numbers in your crypto futures workflows: exact, regression-tested results via MCP and REST.

Live prices
BinanceBybitOKXHyperliquidAsterKuCoinMEXC
BTC / USDT
ETH / USDT
SOL / USDT
PnL PreviewLong · 10×
Entry85,000
Size$1,000
Exit (live)
ExchangeBinance
— USDT
Calculate your trade

CALCULATORS

12

WORKFLOWS

6

EXCHANGES

17

DEV ACCESS

MCP+REST

01THE PROBLEM

LLMs can reason about trades.
They should not invent your risk numbers.

Crypto futures workflows break not because the agent misread the market, but because it approximated where exact math was required.

Hallucinated calculations

LLMs generate plausible-looking but incorrect numbers for liquidation prices, funding costs, and position sizing. Close enough is not close enough when money is at stake.

Exchange inconsistencies

Binance, Bybit, OKX, and Hyperliquid all define margin, fees, and funding differently. A generic formula gives wrong answers on every exchange except one.

Workflow fragility

One wrong liquidation estimate or sizing error can corrupt the entire execution flow. Deterministic infrastructure is the difference between a prototype and production.

REST API · MCP

Connect in under a minute

23 tools available via MCP: 12 calculator primitives, workflows, and Market Profile analysis. Supports MCP for AI agents (Claude, Cursor, VS Code) and GPT Actions for trading bots. Verified formulas, structured output, no scraping.

VIEW DOCS
AGENT
TRADINGCALC
EXCHANGE
curl example
curl https://tradingcalc.io/api/mcp \
-H "Authorization: Bearer tc_..." \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {
"name": "workflow.run_pre_trade_check",
"arguments": {
"side": "long", "entry_price": 84000,
"leverage": 10, "account_balance": 500
}
}
}'
04PROOF

Why you can trust the numbers

Every formula is verifiable. Not a black box.

Regression-tested formulas

145 Vitest tests run on every deployment: 35 exact-value canonical vectors plus property tests covering sign invariants, round-trips, and monotonicity.

View live verification report →

Exchange-normalized

Formulas sourced directly from exchange documentation: fee structures, margin modes, and funding mechanics handled per-exchange. Results match what the exchange shows to the cent.

Scope guarantee

TradingCalc provides deterministic calculations only, not trade advice, execution, or market predictions. Your agent builds the strategy. We give it exact numbers.

Feature
ASKING THE LLM DIRECTLY
TRADINGCALC
Liquidation price
Approximated
Exact, exchange-normalized
Consistent across exchanges
No: one generic formula
Yes: 17 exchanges
Regression-tested
No
Yes: 66 tests on every deploy
Output format
Free text, needs parsing
Structured JSON
05ACCESS

Choose how you want to use TradingCalc

One calculation engine, two access modes.

MCP / REST API

PRIMARY

For AI agents and trading bots. Plug into Claude, Cursor, VS Code or call directly over HTTP. Structured JSON output, no parsing required.

View docs →

Web app

For manual exploration and sanity-checking. Interactive calculators and workflows in the browser. No signup required for basic use.

Open Playground →
06FAQ

Quick answers before you start

Why not let the LLM calculate this directly?

LLMs approximate. For liquidation prices, funding costs, and position sizing the difference between "close enough" and exact can mean a blown position. TradingCalc gives your agent the same numbers the exchange would compute: no estimation.

Are the calculations deterministic?

Yes. Same inputs always produce the same outputs: no randomness, no estimation. Every formula is regression-tested against 35 canonical vectors and verified on every deployment.

Which exchanges are supported?

17 exchanges, including Binance, Bybit, OKX, Hyperliquid, Kraken, Deribit, and dYdX. Fee structures and funding mechanics are normalized per exchange, not a generic approximation.

Is TradingCalc a trading bot or execution service?

No. TradingCalc provides deterministic calculations, not trade advice, execution, or market predictions. You build the strategy; we give you the exact numbers.

Can I use this in a trading bot?

Yes, that is the primary use case. The REST API and MCP server return structured JSON your bot can parse directly. No scraping, no parsing free-form text.

What is a workflow?

A workflow answers a specific trading question: "Is this trade worth taking?" or "What is my carry yield?" It orchestrates multiple calculators in one call and returns a verdict plus plain-English explanation, not just raw numbers.

How do I get an API key?

Email hi@tradingcalc.io: a free API key raises your rate limit to 200 calls/day. Anonymous use (20/day) needs no key at all.

Will you add more exchanges?

Yes. New exchanges are integrated regularly. Contact hi@tradingcalc.io if your exchange is not on the list.

CLOSED LIST

Join the closed list for what's next

We're forming a closed list of participants for a new venture built on this engine. Leave your email and we'll follow up directly. Not an offer, no commitment.

A few emails, ever. Unsubscribe anytime.

Make your trading agents deterministic
where it matters most

Give your agents exact, regression-tested futures calculations for risk, sizing, PnL, and funding.