MarginPad Paper trading API

Free simulated trading REST API (test your bot with no real money). Auth via X-API-Key.

GitHub OpenAPI

Operations 34

GET /api/bot/v1/price Paper price (keyless) #
GET /api/bot/v1/time Server time (keyless) #
POST /api/bot/v1/open Open a paper position #
POST /api/bot/v1/close Close a paper position #
POST /api/bot/v1/sltp Move stop-loss / take-profit #
GET /api/bot/v1/orders List limit orders #
POST /api/bot/v1/cancel_order Cancel a limit order #
GET /api/bot/v1/positions List paper positions #
GET /api/bot/v1/trades Closed-trade ledger #
GET /api/bot/v1/account Paper account #
POST /api/bot/v1/close_all Close every open paper position #
GET /api/bot/v1/balance Paper balance #
GET /api/bot/v1/markets Tradable markets #
POST /api/bot/v1/modify_order Modify a resting order #
GET /api/bot/v1/webhooks List webhooks (API Pro and above) #
POST /api/bot/v1/webhooks Add / delete / test a webhook (API Pro and above) #
GET /api/bot/v1/history The market archive (API Premium) #
GET /api/bot/v1/usage Your plan, limits and usage #
GET /api/bot/v1/sim The simulation profile #
POST /api/bot/v1/sim Set the simulation #
GET /api/bot/v1/realism Fill realism (read) #
POST /api/bot/v1/realism Fill realism (set) #
GET /api/bot/v1/fees Fee schedules (venues) and your default #
POST /api/bot/v1/fees Set your default fee venue #
GET /api/bot/v1/accounts Books (sub-accounts) of this account #
POST /api/bot/v1/reset Reset this book to $10,000 #
GET /api/bot/v1/equity Equity curve #
GET /api/bot/v1/replay Replay status, price and candles #
POST /api/bot/v1/replay Start or stop a replay of a past day #
GET /api/arena Bot arena (public) #
GET /api/bot/v1/report Trading report #
POST /api/whsink/{token} Webhook test sink (write) #
GET /api/whsink/{token} Webhook test sink (read) #
GET /api/bot/v2/{endpoint} Same API, standard envelope #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/marginpad-io:marginpad-io-paper-trading-api"
All apis
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.

Get an API 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 Specification

marginpad-io-paper-trading-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MarginPad Free Crypto Paper trading API
  version: 2.9.1
  description: Free, keyless, CORS-enabled crypto market-data API. Live prices, OHLC candles, a scored futures screener, funding rates, open interest, long/short ratios, liquidations, an economic calendar, the Fear & Greed index, top coins, global market stats, DeFi TVL, trading calculators, and a free paper-trading REST API for testing bots. No API key. No sign-up. about 60 requests/minute per client. Every response uses the envelope { ok, data, error, ts }, except the four liquidation-collector passthroughs (feed, liquidations/live, liquidations/recent, clusters), which return the raw collector object and are marked as such.
  contact:
    name: MarginPad
    url: https://marginpad.io/free-crypto-api/
  license:
    name: Free for public use
servers:
- url: https://marginpad.io
  description: Production
tags:


# --- truncated at 32 KB (45 KB total) ---
# Full source: https://artifacts.apis.io/marginpad-io/openapi/marginpad-io-paper-trading-api-openapi.yml