How to get a key
On the Trader plan you create up to 3 keys from “My account”, with 10,000 calls a day each. If you need a bigger quota or a commercial licence, tell us what you are building and we will agree it.
Request a key →Live quotes, the total cost of a position on every platform, funding, open interest and history, as JSON. On the Trader plan you create your own keys from your account.
On the Trader plan you create up to 3 keys from “My account”, with 10,000 calls a day each. If you need a bigger quota or a commercial licence, tell us what you are building and we will agree it.
Request a key →Send your key in the header Authorization: Bearer nc_live_… Each key has a daily call quota (it resets at 00:00 UTC). Responses include X-RateLimit-Limit and X-RateLimit-Remaining. Errors: 401 invalid key, 403 the key belongs to an account that is no longer on the Trader plan, 429 quota reached, 400 bad parameters. Almost every endpoint accepts format=csv to download the data as CSV (comma separator, decimal point, times in UTC).
GET /api/v1/marketsQuote of one asset on every platform: price, bid/ask, spread, funding (now, 24 h and 7-day average), open interest, volume and taker fee. Without “asset” it returns every asset at once.
asset Asset, e.g. BTC, TSLA, XAU. Optional: without it, the whole market.format json (default) or csv.curl -H "Authorization: Bearer nc_live_…" \ "https://noclose.vercel.app/api/v1/markets?asset=BTC"
GET /api/v1/compareWhat the same position would cost on every platform (fees + execution from the order book + funding over the period), cheapest first among the comparable ones. Each result says whether it is comparable and why not.
asset Asset. Required.size Size in USD, 100 to 10,000,000. Default 10000.days Days the position is held, 0 to 365. Default 7.side long or short. Default long.country Country of residence (ES, PT, MX…) for legal availability. Default: no filter.curl -H "Authorization: Bearer nc_live_…" \ "https://noclose.vercel.app/api/v1/compare?asset=TSLA&size=5000&days=7&country=ES"
GET /api/v1/historySeries per platform, up to 365 days. Funding: what each platform settled (as far back as it serves; the rest builds up from when we started storing it). Spread and open interest: our own captures (every 30 min for the last 14 days, 4-hour averages up to 90 days and daily ones beyond), from the day we started recording them: there is no earlier data.
asset Asset. Required.kind funding, spread or oi (open interest). Default funding.range 1d, 7d, 30d, 90d, 180d or 365d. Default 7d.from, to Alternative to range: UTC days as YYYY-MM-DD (“to” included).format json (default) or csv: one line per market and point.curl -H "Authorization: Bearer nc_live_…" \ "https://noclose.vercel.app/api/v1/history?asset=BTC&kind=funding&range=365d&format=csv" -o btc-funding.csv
GET /api/v1/assetsEvery asset the other endpoints accept (id, name and class). Use it to loop over the whole market in a full history download.
format json (default) or csv.curl -H "Authorization: Bearer nc_live_…" \ "https://noclose.vercel.app/api/v1/assets?format=csv"
GET /api/v1/streamLive quotes over Server-Sent Events: every 5 seconds you get the “markets” event of each requested asset. A connection lasts about 4.5 minutes and ends with a “reconnect” event: connect again. It counts as one call of your quota per connection. Up to 3 connections at a time per key. The browser's EventSource cannot send the Authorization header: use fetch with stream reading, curl -N or an SSE client that accepts headers.
asset One or more assets separated by commas, up to 5 (BTC,ETH,TSLA). Required.curl -N -H "Authorization: Bearer nc_live_…" \ "https://noclose.vercel.app/api/v1/stream?asset=BTC,ETH"
On the Trader plan you add up to 3 HTTPS addresses in “My account”. When you create an alert you pick the “Webhook” channel instead of email: when it is met, noclose sends a JSON POST to all your addresses. Unlike email alerts, a webhook alert is not deleted: it re-arms when the condition stops being met and notifies again the next time.
{
"id": "evt_5b0c…",
"type": "alert.triggered",
"createdAt": "2026-10-02T10:00:00.000Z",
"data": {
"alert": { "id": 12, "kind": "price", "asset": "BTC", "venue": null, "op": ">", "threshold": 100000, "thresholdUnit": "usd" },
"observed": { "priceUsd": 100412.5 },
"message": "…"
},
"notice": "Information only, not investment advice. …"
}import { createHmac, timingSafeEqual } from "node:crypto";
// rawBody: the request body exactly as received (before JSON.parse)
function isFromNoclose(secret, rawBody, header) {
const m = /^t=(\d+),v1=([0-9a-f]{64})$/.exec(header ?? "");
if (!m || Math.abs(Date.now() / 1000 - Number(m[1])) > 300) return false;
const mine = createHmac("sha256", secret).update(`${m[1]}.${rawBody}`).digest();
return timingSafeEqual(mine, Buffer.from(m[2], "hex"));
}Information only: not investment advice, and data comes as each platform publishes it, with possible errors or delays. Credit noclose as the source. Before using the data in a commercial product or redistributing it, let's talk: terms are agreed when the key is issued.