LIVE
DATA API

The same noclose data, in your code.

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.

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 →

Authentication and limits

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).

Endpoints

GET /api/v1/markets

Live markets

Quote 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.

Parameters

  • asset Asset, e.g. BTC, TSLA, XAU. Optional: without it, the whole market.
  • format json (default) or csv.

Example

curl -H "Authorization: Bearer nc_live_…" \
  "https://noclose.vercel.app/api/v1/markets?asset=BTC"
GET /api/v1/compare

Total cost by platform

What 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.

Parameters

  • 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.

Example

curl -H "Authorization: Bearer nc_live_…" \
  "https://noclose.vercel.app/api/v1/compare?asset=TSLA&size=5000&days=7&country=ES"
GET /api/v1/history

History

Series 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.

Parameters

  • 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.

Example

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/assets

Asset list

Every asset the other endpoints accept (id, name and class). Use it to loop over the whole market in a full history download.

Parameters

  • format json (default) or csv.

Example

curl -H "Authorization: Bearer nc_live_…" \
  "https://noclose.vercel.app/api/v1/assets?format=csv"
GET /api/v1/stream

5-second stream

Live 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.

Parameters

  • asset One or more assets separated by commas, up to 5 (BTC,ETH,TSLA). Required.

Example

curl -N -H "Authorization: Bearer nc_live_…" \
  "https://noclose.vercel.app/api/v1/stream?asset=BTC,ETH"

Webhooks

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.

  1. When you add an address you get a signing secret (whsec_…), once. We send a test event (webhook.test) right away.
  2. Every request carries the headers X-Noclose-Event, X-Noclose-Delivery (unique id: use it to ignore repeats) and X-Noclose-Signature: t=<seconds>,v1=<hex>.
  3. The signature is HMAC-SHA256 of “t.body” with your secret. Compare it and reject the request if t is more than 5 minutes old.
  4. We expect a 2xx from your server within 5 seconds. On failure (network error, 5xx, 408 or 429) we retry up to 4 times: now, after 30 s, 5 min and 30 min; a 4xx is taken as a refusal and not repeated. Pending retries are lost if we restart the service. After 10 failed deliveries in a row the address is switched off.
  5. Only https:// addresses with a domain name (port 443 or 8443). Redirects are not followed and nothing is sent to IP addresses or internal networks. At most 500 deliveries a day per account.

What you receive

{
  "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. …"
}

How to check the signature (Node.js)

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"));
}

Terms

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.