Back ProofPerps

API & MCP

Your own accounts, for your tools and your AI assistant. Read the room left today, pull your trades into your sheets, and with a trading key, place and manage orders under the same rules as the terminal.

What it does

Any key reads what your trader space shows about your accounts, as data your tools can use:

  • Your accounts: program, size, stage, status, balance and equity.
  • Account status: where one account stands right now.
  • Risk left today: the room to your Daily Loss Limit and to your Max Drawdown, and when the trading day resets.
  • Trading terms: the order types of your account and the leverage of each market.
  • Open positions: size, entry, mark, unrealized PnL, stop loss and take profit.
  • Orders: your open orders, and the ones already filled or cancelled.
  • Trade history: every execution with its price, fee and realized PnL.
  • Payout requests: each request and where it stands.
  • Markets and quotes: every market you can trade and its current quote.

A key with trading allowed also acts on your accounts:

  • Orders: place market, limit, stop and stop-limit orders, with a stop loss and a take profit; change or cancel a working order.
  • Positions: exit a position at market, move its stop loss and take profit, or reverse it.
  • Leverage: choose the leverage of each market, up to its ceiling.

Every order counts toward your account’s rules exactly like one placed in the terminal.

Create your key

  1. Sign in to your trader space and open your Profile: the API keys panel is under Sessions and security.
  2. Create a key and name it. Tick Allow trading only if your tools should place orders. The key is shown once: copy it right away.
  3. Revoke it in one click whenever you want: it stops working at once. “Sign out everywhere” revokes your keys too.

A key starts with ppk_. Keep it like a password: it opens your accounts.

Open my profile

Connect your AI assistant

The MCP server gives your assistant tools to read your accounts and, with a trading key, to place and manage orders. Add it once with your key, then ask in your own words.

MCP server https://app.proofperps.com/mcp

Claude Code

In a terminal:

claude mcp add --transport http proofperps https://app.proofperps.com/mcp \
  --header "Authorization: Bearer ppk_YOUR_KEY"

Cursor

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "proofperps": {
      "url": "https://app.proofperps.com/mcp",
      "headers": {
        "Authorization": "Bearer ppk_YOUR_KEY"
      }
    }
  }
}

Claude Desktop and claude.ai

Settings, Connectors, Add custom connector: the MCP server address above, No sign-in, then under Request headers the name authorization and the value Bearer ppk_YOUR_KEY.

Request headers are in beta in Claude and may not show on every plan yet.

Replace ppk_YOUR_KEY with your key.

Ask in your own words

Once connected, your assistant reads the answer from your account, and acts when you ask it to:

  • How much room is left before my Daily Loss Limit today?
  • Which of my open positions has no stop loss?
  • Sum up my trades of this week by market, fees included.
  • Where does my last payout request stand?
  • Move the stop loss of my open position to my entry price.

The API

Plain HTTPS and JSON for your scripts, sheets and bots, with your key in the header of every request. Every write also carries an Idempotency-Key header: sent again with the same key, a request is answered once, never carried out twice.

Base URL
https://app.proofperps.com/v1/api
Header
Authorization: Bearer ppk_YOUR_KEY
Account stream
wss://app.proofperps.com/v1/api/accounts/:id/stream
:id is an account id from /accounts. Amounts are whole numbers in millionths of a dollar (1,000,000 is $1); times are milliseconds, UTC.
RouteWhat it does
GET /accounts Your accountsMCP tool list_accounts
GET /accounts/:id The full status of one accountMCP tool get_account_status
GET /accounts/:id/risk Room to the Daily Loss Limit and the Max DrawdownMCP tool get_risk_today
GET /accounts/:id/trading-terms Order types and leverage per marketMCP tool get_trading_terms
GET /accounts/:id/positions Open positionsMCP tool get_open_positions
GET /accounts/:id/orders Orders: status=working for the open ones, status=final for the others; up to 500 a page with limit and after_seqMCP tool get_orders
GET /accounts/:id/executions Trade history, oldest first; up to 500 a page with limit and after_seq, one market with symbolMCP tool get_executions
GET /accounts/:id/payout-requests Payout requests and their statusMCP tool get_payout_requests
GET /markets The markets you can tradeMCP tool list_markets
GET /markets/:symbol/quote A market’s current quoteMCP tool get_quote
With a key that allows trading. Bodies and answers are the terminal’s own.
RouteWhat it does
POST /accounts/:id/orders Place an orderMCP tool place_order
PATCH /accounts/:id/orders/:order_id Change a working orderMCP tool modify_order
DELETE /accounts/:id/orders/:order_id Cancel a working orderMCP tool cancel_order
POST /accounts/:id/positions/:symbol/close Exit a position at marketMCP tool close_position
PUT /accounts/:id/positions/:symbol/brackets Set a position’s stop loss and take profitMCP tool set_brackets
POST /accounts/:id/positions/:symbol/reverse Reverse a position
PUT /accounts/:id/leverage/:symbol Choose a market’s leverageMCP tool set_leverage

Your accounts, from a terminal:

curl https://app.proofperps.com/v1/api/accounts \
  -H "Authorization: Bearer ppk_YOUR_KEY"

Limits and answers

60 requests a minute per key, and orders have a budget of their own. Past either, the answer is a 429 with a Retry-After header: the seconds to wait before the next request.

Every answer that is not a success says why, in JSON.
StatusWhat it meansCode
401 The key is missing, unknown or revoked API_KEY_INVALID
403 This key reads only: create a key with trading allowed to place orders API_KEY_READ_ONLY
404 This account, order or market is not one of yours ·
405 This route does not take this method ·
422 The order was refused by your account’s rules or by the market: the code says why ·
429 Too many requests: wait the seconds of Retry-After RATE_LIMITED
503 The API is paused for a moment: try again later API_DISABLED
503 Trading through the API is paused for a moment; reading still works API_TRADING_DISABLED

Safe by design

  • A key reads only unless you allowed trading when you made it. No key ever requests a payout, changes an address or buys anything.
  • Your key sees your own accounts, nobody else’s.
  • We keep a hash of your key, never the key itself.
  • The MCP server stores nothing: it passes your key to the API with each request.
  • You revoke a key in one click in your trader space.
  • What your assistant reads goes to your AI provider, like everything you ask it.
  • A key written in a configuration file, such as ~/.cursor/mcp.json, is stored there in plain text: keep the file private, and revoke the key if it is ever exposed.
  • Orders sent by your software follow every rule of your account, and the Prohibited Trading Practices apply to them.

The developer docs

Every route, field and answer, a five-step quickstart with curl, the account stream and the MCP server, in one place.

Read the docs

Choose your account.