技能潮 SkillTide 提交收录
官方说明开源项目7 天前
Marginpad/sdk

Marginpad/sdk

MarginPad SDK: free crypto-futures paper trading for bots and AI agents, plus a remote MCP server (29 tools). Python and JavaScript, zero dependencies.
在 GitHub 查看 ↗直链 · 无中转页
★ 数取值
0 ★ · Marginpad/sdk · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-10-10 · 最近见到 2026-10-10 · 共见到 1 次 · 被 1 个来源列出
评分构成
综合分 103 · 1 个来源 · repo
安装
pip install marginpad
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是 pip install marginpad。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 Marginpad/sdk;我们收录于 2026-10-10;最近见到 2026-10-10。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

MarginPad SDK

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

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.
The simulation is yours to set
Eighteen fields and eight presets, so the paper venue can be the one you will actually trade. The defaults are deliberately frictionless, and nothing you have already built moves until you change them.
The **book** (start_balance_usd, margin_enforced, leverage_max, max_notional_usd), the **fill** (slippage, slippage_bps, impact_bps_per_100k, exit_slippage, latency_ms, partial_fills, min_fill_pct, reject_rate_pct), the **cost** (taker_bps, funding, funding_mult) and the **liquidation** (margin_venue, margin_tiers, mmr_pct).
Out-of-range values are refused, never clamped, and a position keeps the simulation it was filled under for life. margin_enforced turns the balance into a real budget: size past it and the open comes back 402, which is the failure a live bot has to handle and a frictionless simulator never shows you. reject_rate_pct is the one a retry loop is worth writing for.
Every field with its range: https://marginpad.io/trading-api/#sim
Examples
- examples/agent_loop.py: a signal loop that opens, manages and closes positions once a minute without polling storms.
- examples/webhook_server.js: receive position.closed / order.filled events with signature verification.
- examples/mcp.md: let Claude Desktop or Cursor trade on your paper account through the MCP server.
Limits
| Plan | Requests/min | Keys | Open positions | Books | Webhooks |
|---|---|---|---|---|---|
| Free $0 | 120 | 3 | 50 | 1 | - |
| Pro $39 | 600 | 10 | 200 | 5 | 3 |
| Max $99 | 2000 | 30 | 500 | 20 | 15 |
| Business $199 | 5000 | 100 | 1000 | 50 | 50 |
An API plan is its own product: a MarginPad Premium subscription buys nothing here, and an API plan buys nothing on the site. The whole engine, the simulation, several books per key, the replay, the WebSocket stream and every market-data endpoint are free - only webhooks and the AI read are gated. Trade history is 30 days on Free and 90 on a paid plan.
来源
github · https://github.com/Marginpad/sdk
按领域浏览
开源项目
收录于
7 天前

更多开源项目

查看开源项目全部 731 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引