TradingCalc System API
The system API from TradingCalc — 3 operation(s) for system.
The system API from TradingCalc — 3 operation(s) for system.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/tradingcalc-io:tradingcalc-io-system-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TradingCalc tools System API
description: 'Every TradingCalc tool as a plain HTTP endpoint: POST the arguments as JSON, get the result as JSON. These are the same tools, with the same input schemas, quota and signed results, as the MCP server at https://tradingcalc.io/api/mcp. The same input always returns the same number, and every formula is published at https://docs.tradingcalc.io. Inputs are never stored.'
version: 1.0.0
servers:
- url: https://tradingcalc.io
security:
- {}
- bearerAuth: []
tags:
- name: System
paths:
/api/v1/tools/system.verify:
post:
operationId: system_verify
summary: Verify Calculations
description: 'Run the full regression suite: 60 canonical test vectors (linear and inverse/coin-margined) across all 12 calculators, and return a pass/fail report with counts and timestamp. Useful as a health check before relying on results in production workflows.'
tags:
- System
requestBody:
required: true
content:
application/json:
schema:
type: object
properties: {}
required: []
responses:
'200':
description: 'The tool result as JSON. The X-TradingCalc-Signature, X-TradingCalc-Kid and X-TradingCalc-Signed-At headers sign the exact bytes of this body (verification steps: tool system.pubkey, or GET /api/mcp/pubkey). The object carries _method.release, the server release that produced it.'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: The body is not valid JSON.
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'404':
description: Unknown tool name.
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'413':
description: The body is too large.
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'422':
description: 'Invalid arguments: the message names the fields.'
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'429':
description: Daily quota or per-minute cap exceeded; Retry-After says how many seconds until the quota or the minute resets.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'500':
description: Internal error; retry later.
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'502':
description: 'The tool could not finish: usually a live data source it needs failed, otherwise an internal error. Retry later.'
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
/api/v1/tools/system.pubkey:
post:
operationId: system_pubkey
summary: Signing Public Key
description: Return the ECDSA P-256 public key (PEM + JWK) and canonical signing format used to sign tool responses, so results can be verified offline without calling back to TradingCalc. Every tools/call result includes a signed second content block when signing is configured; also available at GET /api/mcp/pubkey.
tags:
- System
requestBody:
required: true
content:
application/json:
schema:
type: object
properties: {}
required: []
responses:
'200':
description: 'The tool result as JSON. The X-TradingCalc-Signature, X-TradingCalc-Kid and X-TradingCalc-Signed-At headers sign the exact bytes of this body (verification steps: tool system.pubkey, or GET /api/mcp/pubkey). The object carries _method.release, the server release that produced it.'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: The body is not valid JSON.
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'404':
description: Unknown tool name.
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'413':
description: The body is too large.
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'422':
description: 'Invalid arguments: the message names the fields.'
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'429':
description: Daily quota or per-minute cap exceeded; Retry-After says how many seconds until the quota or the minute resets.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'500':
description: Internal error; retry later.
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'502':
description: 'The tool could not finish: usually a live data source it needs failed, otherwise an internal error. Retry later.'
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
/api/v1/tools/system.batch:
post:
operationId: system_batch
summary: Batch
description: 'Run up to 10 calls of other tools in one request and get all results back together, in order. Each entry is {name, arguments} exactly as for a single call; each result carries its own signature block, so every one verifies on its own. The batch call itself is free: every entry counts as one call against the daily limit. A failed entry does not stop the others (it comes back with an error), except that once the daily limit is reached or the batch has run for about 20 seconds, the entries after that point are not run and not counted: the reply says so for each, so send them again. A batch cannot contain a batch. Entries run one after another, in order, and none sees the output of another.'
tags:
- System
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
calls:
type: array
minItems: 1
maxItems: 10
description: 1 to 10 calls
items:
type: object
properties:
name:
type: string
description: Tool name as listed by tools/list, for example workflow.run_var_cvar
arguments:
type: object
description: Arguments of that tool
required:
- name
required:
- calls
responses:
'200':
description: 'The tool result as JSON. The X-TradingCalc-Signature, X-TradingCalc-Kid and X-TradingCalc-Signed-At headers sign the exact bytes of this body (verification steps: tool system.pubkey, or GET /api/mcp/pubkey). The object carries _method.release, the server release that produced it.'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
description: The body is not valid JSON.
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'404':
description: Unknown tool name.
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'413':
description: The body is too large.
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'422':
description: 'Invalid arguments: the message names the fields.'
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'429':
description: Daily quota or per-minute cap exceeded; Retry-After says how many seconds until the quota or the minute resets.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'500':
description: Internal error; retry later.
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
'502':
description: 'The tool could not finish: usually a live data source it needs failed, otherwise an internal error. Retry later.'
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Optional API key. Anonymous callers get a smaller daily quota; the quota is shared with /api/mcp.