Deterministic trading math for AI agents
TradingCalc is the computation layer your agent calls for exact options, forex, risk and statistics, prediction-market, on-chain, and futures math. Every result is signed, and every formula is published. Same inputs always produce the same outputs. Every formula is traceable to exchange documentation and regression-tested.
https://tradingcalc.io/api/mcp
$ curl -X POST https://tradingcalc.io/api/mcp \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1, "method":"tools/call","params":{ "name":"workflow.run_pnl_planning", "arguments":{"side":"long", "entryPrice":83000,"exitPrice":85000, "size":0.1,"feeOpenPct":0.0002, "feeClosePct":0.0005}}}' // result.content[0].text{ "pnl": 194.09, "pnlPct": 0.02339, "fees": 5.91, "gross": 200.00}Why deterministic matters
The model does the reasoning. TradingCalc does the math.
77 MCP tools across 11 suites
Options, Forex, Risk/Stats, Prediction Markets, On-Chain, Crypto Spot, and for perpetual futures Trade Planning, Risk & Margin, Funding & Carry, Integrated Decision and Market Structure: every tool is callable by name over the same JSON-RPC endpoint.
FULL TOOL CATALOG →Built for
Example agent workflows
- 1.Call `workflow.run_risk_reward` → R:R ratio, position size, liquidation, P&L at stop and target, verdict
- 2.Call `workflow.run_funding_cost` → cumulative funding cost over hold period
- 3.Call `workflow.run_pre_trade_check` → full decision: sizing + liquidation + breakeven + funding in one call
- 1.Call `workflow.run_dca_entry` with fill levels → avg entry, breakeven, per-level contribution
- 2.Call `workflow.run_liquidation_safety` → liquidation distance from averaged entry
- 3.Call `workflow.run_scale_out` with exit levels → P&L per exit, weighted avg exit, overall ROI
- 1.Call `workflow.run_carry_trade` → net yield, gross/net profit, breakeven days, verdict
- 2.Call `workflow.run_funding_breakeven` → price move needed to cover funding + fees
- 3.Call `workflow.run_funding_arbitrage` → annualized arb yield between two exchanges
- 1.Call `workflow.run_scenario_planning` with price targets → full P&L table
- 2.Call `workflow.run_exit_target` → exact price to hit target ROE
- 3.Call `primitive.hedge_ratio` → perp short size to hedge the position
Self-verification
Three independent proofs, not one claim: system.verify confirms the formulas are correct (46/46 test vectors, callable via MCP before you trust a result), and every tools/call response is signed with ECDSA P-256 so you can confirm the specific response you got wasn't altered in transit, not just that the formula behind it is right. The third proof is public: once a day the verification state is signed and its hash is written to Solana, so a past day cannot be quietly rewritten.
Access methods
{ "mcpServers": { "tradingcalc": { "command": "npx", "args": ["-y", "mcp-remote", "https://tradingcalc.io/api/mcp"] } }}Free tier: no signup required for anonymous use. Cursor / VS Code config, direct HTTP calls, and API-key authentication for higher limits are in the full API & MCP reference.
Frequently asked questions
Start in 30 seconds
No signup required. Add to Claude Desktop or Cursor using the config above, or call the endpoint directly.