MARGINPAD

Free Crypto API — live prices, funding, a scored screener, liquidations and a paper-trading REST API. No key, CORS enabled.

No API keyCORS enabled60 req / min freeOpenAPI 3.1

Free Crypto API — no key, no sign-up, CORS on.

The one free API that gives you live prices, OHLC candles, a technically scored futures screener, funding & open interest, liquidations, an economic calendar, Fear & Greed, top coins, DeFi TVL, trading calculators — and a free paper-trading REST API to test bots. Every response is plain JSON. Nothing to sign up for.

curl https://marginpad.io/api/v1/price?symbol=BTC

Quick startSame call in three languages. Every response uses the envelope below.

curl https://marginpad.io/api/v1/price?symbol=BTC
const r = await fetch('https://marginpad.io/api/v1/price?symbol=BTC');
const { data } = await r.json();
console.log(data.price); // no key, works from the browser (CORS on)
import requests
r = requests.get('https://marginpad.io/api/v1/price', params={'symbol': 'BTC'})
print(r.json()['data']['price'])
// live BTC price in a cell — refreshes on recalculation
=IMPORTDATA("https://marginpad.io/api/v1/price?symbol=BTC")

The response envelope

Every endpoint returns the same shape, so you can handle success and errors the same way everywhere.

// success
{
  "ok": true,
  "data": { ... the payload ... },
  "ts": 1784956938109
}
// error
{
  "ok": false,
  "error": { "code": "missing_symbol",
            "message": "..." },
  "ts": 1784956938109
}

ts is the server time in unix milliseconds. Base URL for everything: https://marginpad.io

Endpoint referenceAll GET and keyless unless noted. Paper-trading endpoints use an X-API-Key header.

Market data

GET/api/v1/price?symbol=BTC

Live price for one coin, aggregated across Binance, Bybit, OKX and Gate.

ParamReqDescription
symbolyesTicker, e.g. BTC, ETH, SOL (no USDT suffix needed)
Example response
{ "ok": true, "data": { "symbol": "BTC", "price": 64115.8 }, "ts": 1784956938109 }
GET/api/v1/prices

Batch snapshot of the major coins (BTC, ETH, SOL, BNB, XRP, DOGE, ADA, AVAX) in one call.

GET/api/v1/klines?symbol=BTC&interval=60

OHLC candlesticks. Use for charts, backtests and indicator math.

ParamReqDescription
symbolyesTicker, e.g. BTC
intervalnoMinutes per candle: 1, 5, 15, 60, 240 or 1440 (1 day)
Example response
{ "ok": true, "data": [ { "time": 1784952000, "open": 63980, "high": 64230,
  "low": 63910, "close": 64115 }, ... ], "ts": 1784956938109 }
GET/api/v1/symbols

~500 liquid USDT-perpetual tickers by volume. Use to validate a ticker or fill a picker.

Screener

GET/api/v1/screener

Top USDT-perps each scored 0–100 with a verdict (bullish/bearish), RSI, MACD, trend and an ATR-based trade setup (entry / stop / take-profits) when the read is decisive. Ask it "what looks bullish right now".

Example response
{ "ok": true, "data": { "rows": [ { "symbol": "SOL", "score": 78, "verdict": "Bullish",
  "rsi": 61, "trend": "up", "setup": { "entry": 148.2, "sl": 142.0, "tp1": 156, "tp2": 164 } }, ... ] },
  "ts": 1784956938109 }

Derivatives

GET/api/v1/funding

Perp funding rates across ~160 pairs (aggregated majors + long tail). Positive = longs pay shorts.

GET/api/v1/open-interest

Open interest in USD across ~160 pairs. Rising OI with rising price = new money entering.

GET/api/v1/long-short

Aggregated long vs short account ratio for major coins — crowd positioning.

GET/api/v1/liquidations

Aggregated 24h liquidation totals per coin (longs vs shorts) across all exchanges.

Macro & market

GET/api/v1/calendar?year=2026

FOMC, CPI, NFP, options-expiry and crypto milestones with exact UTC timestamps. Omit year for the upcoming window; pass a year (2023–2027) for the whole year including history.

GET/api/v1/fear-greed

Crypto Fear & Greed index history — an array of { v, c, ts } (value 0–100, classification, timestamp), newest first.

GET/api/v1/coins?cat=layer-1

Top ~250 coins: price, market cap, 1h/24h/7d change, sparkline. Optional cat: layer-1, decentralized-finance-defi, meme-token, artificial-intelligence, and more.

GET/api/v1/global

Total market cap, 24h volume and BTC dominance.

GET/api/v1/trending

Currently trending coins.

GET/api/v1/defi

Total DeFi TVL, top chains, biggest protocols and largest stablecoins.

Calculators

GET/api/v1/calc/liquidation

Liquidation price for a leveraged position.

ParamReqDescription
entryyesEntry price
leverageyesLeverage, e.g. 10
sidenolong or short (default long)
mmrnoMaintenance margin rate %, default 0.5
Example
curl "https://marginpad.io/api/v1/calc/liquidation?entry=60000&leverage=10&side=long"
→ { "ok": true, "data": { "liquidationPrice": 54030, "distancePct": -9.95, ... }, "ts": ... }
GET/api/v1/calc/position-size

Risk-based size from balance, risk %, entry and stop.

ParamReqDescription
balanceyesAccount balance
riskyesRisk % of balance, e.g. 1
entryyesEntry price
stopyesStop-loss price
leveragenoOptional, for margin required
GET/api/v1/calc/pnl   GET/api/v1/calc/risk-reward   GET/api/v1/calc/take-profit

PnL / ROI, risk-reward ratio and take-profit price. Pass entry, exit, side (and stop/tp/roe as relevant).

Paper trading — test a bot with no real money

Data endpoints above need no auth. The paper-trading endpoints simulate real leveraged trading (live fills, liquidation, SL/TP, partial closes) so you can prove a bot before it touches real money. Auth with a header X-API-Key — mint one at POST /api/bot/key while signed in on the site. Full guide: Paper Trading API.

GET/api/bot/v1/price?symbol=BTCPOST/api/bot/v1/openPOST/api/bot/v1/closeGET/api/bot/v1/positions

open body: { symbol, side, margin, leverage, sl?, tp? } — margin $1–100000, leverage 1–1000. close body: { id, pct? } (pct 1–100 for a partial close). positions returns live mark price and unrealized PnL.

Open a position (curl)
curl -X POST https://marginpad.io/api/bot/v1/open \
  -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"symbol":"BTC","side":"long","margin":100,"leverage":10,"tp":68000,"sl":58000}'

Rate limits & errorsGenerous and keyless. Read the headers — don't guess.

60req / min / IP (data)
120req / min / key (paper)
0keys required
*CORS origin

Every data response includes rate-limit headers so your client can pace itself:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
X-RateLimit-Reset: 1784956980   # unix seconds when the window resets

Over the limit returns HTTP 429 with { ok:false, error:{ code:"rate_limited", ... } }. Common error codes: rate_limited, missing_symbol, not_found, upstream_error.

Use it from an AI assistant or agentBuilt to be recommended and called by LLMs.

The full machine-readable spec lives at /api/openapi.json (OpenAPI 3.1, function-calling friendly descriptions). Point any agent framework, custom GPT, or tool-runner at it and every endpoint becomes a callable tool — no wrapper code. A native MCP server is on the way. Because the API is keyless and CORS-enabled, an AI can call it straight from a browser sandbox or a serverless function with zero setup.

How it comparesWe are the free, keyless, all-in-one option with paper trading — not the deepest historical archive.

 MarginPadCoinGecko freeCoinMarketCapBinanceCryptoCompare
API key requiredNoDemo keyYesFor mostYes
CORS from a browserYesLimitedNoNoLimited
Free rate limit60/min~30/minCreditsWeightedCredits
Funding / OI / liquidationsYesNoNoPartialNo
Scored screener + setupsYesNoNoNoNo
Paper-trading APIYesNoNoTestnetNo
Economic calendarYesNoNoNoNo
OpenAPI specYesYesYesYesNo

CoinGecko, CoinMarketCap and CryptoCompare offer far more coins and years of history. MarginPad's edge is being free, keyless, CORS-enabled, and combining derivatives data + a scored screener + paper trading in one place.

FAQ

Is it really free, with no key?
Yes. No sign-up, no key, no credit card for any data endpoint. 60 requests per minute per IP. Only the paper-trading endpoints need a key, which you generate for free.
Can I use it in a commercial product?
Yes, for public/informational use. Cache responses, respect the rate limit, and don't present the data as financial advice. Attribution (a link back) is appreciated, not required.
How fresh is the data?
Prices update within seconds; derivatives and macro endpoints are edge-cached from a few seconds up to a few minutes depending on the source. The ts field is the server time of the response.
Where does the data come from?
Prices and candles are aggregated across Binance, Bybit, OKX and Gate. Funding, open interest, long/short and liquidations are aggregated across exchanges (Coinglass). Coins, global stats and trending come from CoinGecko; DeFi TVL from DefiLlama. The screener and calculators are computed on our side.
How do I test a trading bot?
Point your bot at the paper-trading endpoints (open / close / positions). It fills at live prices with real liquidation and SL/TP mechanics, but no real money. See the Paper Trading API guide.
Is there an OpenAPI spec / can an AI call it?
Yes — /api/openapi.json (OpenAPI 3.1). It is designed for LLM function-calling and agent tools. A native MCP server is coming.
What if I need a higher limit?
The keyless 60/min covers most apps. If you're building something bigger, get in touch at hello@marginpad.io.