Licensed API

For customers with a signed data licence: the release reactions, the release calendar and the summaries, as JSON by page or as whole CSV files, within the datasets, coins and reports your licence covers. Read-only. Past reactions are history, not a forecast.

Authentication

Your key is issued with your licence and shown once. Send it in a header with every request; a key in the address is refused, so it never ends up in logs along the way.

curl -H "Authorization: Bearer cmx_live_yourkey" "https://www.clometrix.com/api/v1/licensed/reactions?report=cpi&coin=BTC&from=2024-01-01"

Keep the key secret. If it is lost or exposed, write to us and we will revoke it and issue a new one.

Filters and pages

  • report: one report's slug, or several separated by commas, such as cpi,nonfarm-payrolls. Without it, every report your licence covers.
  • coin: BTC or ETH, or both separated by a comma.
  • from, to: UTC dates or times in ISO 8601, such as 2024-01-01 or 2024-01-11T13:30:00Z. A date alone in to runs to the end of that day.
  • tier: 1, 2 or 3; Tier 1 moves crypto most.
  • limit: 1,000 rows a page by default, up to 5,000.
  • cursor: the next_cursor of the page before. Rows come oldest first; next_cursor is null on the last page.

Release reactions

GET /api/v1/licensed/reactions: one row per release per coin.

{
    "credit": "Data from Clometrix (https://www.clometrix.com). Credit and link to Clometrix wherever it is shown. What prices did after past releases, not advice.",
    "data": [
        {
            "report": "cpi",
            "scheduled_utc": "2024-01-11T13:30:00Z",
            "coin": "BTC",
            "move_15m_pct": -0.62,
            "move_60m_pct": -1.04,
            "swing_15m_x": 4.21,
            "regime_1d_trend": "up",
            "regime_1d_volatility": "hot",
            "release_page": "https://www.clometrix.com/data/cpi/…/BTC",
            "is_final": true
        }
    ],
    "next_cursor": "MjAyNC0wMS0xMSAxMzozMDowMHw0MTI"
}

Within minutes of a Tier 1 or Tier 2 release a row appears with an early read, is_final false; about 13 hours after the release the full measure replaces it, is_final true, and the figures do not change after that unless a price window has to be repaired. A licence with a webhook is sent each release's final rows as they come in (below).

Release calendar

GET /api/v1/licensed/calendar: every release of the reports, past and ahead, oldest first, with the same filters. Releases ahead have the status scheduled.

Summaries

GET /api/v1/licensed/summaries: per report and coin, over the final reactions the filters take: how many, and the spread of the swing and of the moves. One page, no cursor.

Whole datasets as CSV

GET /api/v1/licensed/export/reactions.csv, calendar.csv, summaries.csv: the whole dataset in one file, streamed, with the same filters and fields. The first line is the credit, starting "# "; the second is the field names.

The fields

As on the licensing page and in the free sample pack. Times are UTC in ISO 8601; figures have two decimals; a fall has a minus sign.

Release reactions

FieldWhat it is
reportThe report, by its Clometrix slug and name
scheduled_utcThe release time, UTC, to the minute
coinBTC or ETH
move_15m_pctSigned % change over the 15 minutes from the release
move_60m_pctSigned % change over the 60 minutes from the release
swing_15m_xThe 15 minutes' high-low range against a normal 15 minutes that day (1.00 is ordinary)
regime_1d_trend, regime_1d_volatilityThe coin's daily trend (up, down, sideways) and volatility (calm, normal, hot) going into the release
release_pageThe release on clometrix.com, with its chart
is_finaltrue once the 12 hours after the release are in and the full measure has replaced the early read; false for an early read

Release calendar and timing

FieldWhat it is
report, report_name, publisher, tierWhich report, who publishes it, and its tier (1 moves crypto most)
scheduled_utcWhen it came out, UTC
originally_scheduled_utc, rescheduledThe time first set, where it was moved
statusScheduled (ahead), released, never published (the figures were never produced), or released with no comparable figure

Release-by-release summaries

FieldWhat it is
releasesHow many releases are measured
swing_median_x, swing_p25_x, swing_p75_x, swing_min_x, swing_max_xThe middle swing, its middle half and its range
abs_move_15m_median_pct, abs_move_60m_median_pctThe usual size of the 15- and 60-minute moves, whatever their direction

Limits and errors

Each key has a daily limit of requests, set in your licence (50,000 unless agreed otherwise), counted by UTC day, and at most 600 requests a minute. Every request is counted for your licence's statement of use.

An error is JSON with error and message:

{"error": "rate_limited", "message": "Over this key's 50,000 requests today (UTC). ..."}
  • 400 bad_request: a filter, limit or cursor that is not valid.
  • 401 unauthorized: no key, a key not known, or a key in the address.
  • 403 forbidden: a dataset, coin or report outside your licence, or a key suspended, revoked, not started or expired.
  • 429 rate_limited: over the daily limit, with a Retry-After header in seconds until midnight UTC; or over 600 requests a minute.

Webhook

With a webhook address in your licence, each release's final reactions within your licence are sent to it as a POST of JSON, with event reactions.final and the rows under data. Each post is signed with your webhook secret, shown once when it is set:

X-Clometrix-Signature: sha256=<hex HMAC-SHA256 of the raw body, keyed with your secret>

Check the signature on the raw body before you trust a post. Answer with any 2xx status; a post that fails is sent again after 5 minutes, 30 minutes and 2 hours. Only https addresses are posted to.

Credit

Every answer carries the credit line, and every CSV starts with it. Wherever the data is shown, credit Clometrix and link to it, as your licence sets out:

Data from Clometrix (https://www.clometrix.com). Credit and link to Clometrix wherever it is shown. What prices did after past releases, not advice.

The datasets are Clometrix's own measures only. They do not include the exchange's prices or candles, the agencies' published figures or the market consensus, which belong to their owners. Past reactions are history, not a forecast or advice.

Questions, or a key for a new licence: [email protected].