
Sdk
io.github.Marginpadv2.9.1Updated Oct 8, 2026
Free crypto-futures paper trading and live market data for AI agents. 28 tools; no key for data.
Overview
Lets an assistant fetch live crypto-futures market data and run simulated paper trades with fees, funding, liquidations and stops.
- What it does
- A remote MCP server for crypto-futures paper trading and market data, described as having 28 tools. Market-data tools work without a key; paper-trading tools open and manage simulated positions with leverage, limit and stop orders, trailing stops, and account, equity and replay views. It also covers multiple trading books per account and a replay mode that runs the same calls against a past day of candles.
- When to use it
- Useful when you want an assistant to test a trading strategy or agent loop against live prices without risking real money, or to pull crypto-futures quotes and account state into a conversation. It is a simulator, so results still need a small live test before real use.
- Requirements
- A remote endpoint at marginpad.io over streamable HTTP; no local package is required. Market-data tools need no credentials. Paper-trading tools need a MarginPad Bot API key sent in the X-API-Key header. Free tier limits apply: 120 requests per minute per key, 3 keys, 50 open positions.
Installation
In SourceWeft
- Open Sdk in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Other MCP clients
Add this to your client's mcpServers config.
{
"mcpServers": {
"sdk": {
"type": "http",
"url": "https://marginpad.io/mcp"
}
}
}README
MarginPad SDK
Free crypto-futures paper trading for bots and free market data. One key, no KYC, no deposit. Test a strategy or an AI agent against live prices with real fee schedules, funding, liquidations, limit and stop orders, trailing stops, webhooks and a WebSocket stream, then take the same code to a real exchange.
- Guide: https://marginpad.io/trading-api/
- Reference (OpenAPI, try it live): https://marginpad.io/api-docs/
- Status: https://marginpad.io/status/ - Changelog: https://marginpad.io/api/changelog.xml
- MCP server for Claude, ChatGPT and Cursor: https://marginpad.io/trading-api/#mcp
Install
Python
JavaScript
Books, reset, equity, replay (2.5 / 2.6)
A key minted with book ({"act":"create","name":"rsi","book":"rsi"} on POST /api/bot/key) trades a separate journal: one strategy, one key, one clean result. During a replay every trading call of that key acts on a replay journal priced from the candle under the cursor; stops, targets and liquidations are checked on every candle between two calls.
Examples
examples/agent_loop.py: a signal loop that opens, manages and closes positions once a minute without polling storms.examples/webhook_server.js: receiveposition.closed/order.filledevents with signature verification.examples/mcp.md: let Claude Desktop or Cursor trade on your paper account through the MCP server.
Limits
Free: 120 requests/minute per key, 3 keys, 50 open positions. Premium: 600/minute, 10 keys, 200 open positions.
Every response carries X-RateLimit-Limit / Remaining / Reset; on 429 both clients wait Retry-After and retry once.
Out-of-range input is refused with a named error (leverage_max carries the market's cap), never silently clamped.
Honesty note
This is a simulator. Fees, funding and liquidation math mirror real exchanges; there is no order book, so slippage is modelled, not measured on depth. A bot that passes here still needs a small live test. Educational use, not financial advice.
MIT licensed.
Source: README.md at commit fcf5d5f
Tools
0Version history
1- v2.9.1LatestOct 8, 2026
