priorcase

CONNECT

REST API

Every endpoint answers with past moments and what actually followed them, one by one, never averaged into one line. Plain HTTPS GET requests, JSON responses.

Basics

All endpoints live under /v1 and take query parameters. Responses are JSON. Every time, sent or received, is UTC in ISO 8601, for example 2025-12-26T17:00:00Z.

Each moment is point in time: what it reports under then was knowable at that moment, and what came later sits under after. Moves are given in the asset's unit: % for a price, bp for a rate or spread, pts otherwise.

Similarity is measured on embeddings from PRE, the Priorcase Regime Encoder. The method is not disclosed.

Base URL
https://priorcase.com/v1
OpenAPI spec, no key needed
https://priorcase.com/openapi.json

Authentication

Send your key as a bearer token: Authorization: Bearer pc_live_…. Create and revoke keys on the API keys page, and keep them on your server, never in browser code. Details are in Authentication and keys.

ACCESSENDPOINTS
No key needed/v1/status/v1/assets/v1/topics/v1/events/v1/events/{slug}/v1/events/next/v1/events/upcoming/v1/across/v1/prices/v1/bars/v1/spell
Key, or a daily allowance without one/v1/search/v1/move/v1/after/{topic}
Key required/v1/moment/{at}/v1/paths/v1/normal/v1/when

Metered calls count as answers: one per call, or one per ten moments when you ask for more with k or limit. Allowances are on Limits.

Authorization header
curl -G https://priorcase.com/v1/paths \
  -d asset=BTC -d at=2025-12-26T17:00:00Z \
  -H "Authorization: Bearer $PRIORCASE_API_KEY"

Errors

Errors use HTTP status codes and a JSON body with detail. The message is written to be read: it says what was wrong and what to send instead.

STATUSMEANING
401No key where one is needed, or a key that is not valid or has been revoked. detail says how to send one.
404An asset, topic or event slug the engine does not know. detail names what is available.
422A parameter is missing, malformed or out of range. detail is a list, one entry per parameter.
429Over the daily allowance or the per-second rate. The Retry-After header gives the seconds to wait.
401
{
  "detail": "This endpoint needs an API key. Send it as `Authorization: Bearer pc_live_…`. Keys: https://priorcase.com/docs/authentication"
}
422
{
  "detail": [
    {
      "type": "less_than_equal",
      "loc": ["query", "k"],
      "msg": "Input should be less than or equal to 50",
      "input": "99",
      "ctx": { "le": 50 }
    }
  ]
}

The moment object

Search, moment, when and topic answers all describe a moment the same way: time, then then (what was knowable), after (what followed) and events (what had just become known). after is null for a moment whose 32 hours have not closed, such as now.

then

FIELDMEANING
closeThe last close at or before the moment. Every percent in then and after is measured from it.
ret_1h_pctret_24h_pctret_72h_pctret_7d_pctret_30d_pctPercent change over the hour, day, three days, week and month to the moment.
drawdown_7d_pctHow far the close sits below the highest price of the past 7 days. Never positive.
vol_ratio_24h_30dHow jumpy the last 24 hours were against the asset's own 30-day level. 1 is usual.
volume_24hvolume_ratio_24h_30dWhat traded in the 24 hours to the moment, and the same against its 30-day level.
high_24hlow_24hThe highest and lowest price in the 24 hours to the moment.

after

FIELDMEANING
ret_4h_pctret_24h_pctret_32h_pctPercent change from the moment to 4, 24 and 32 hours after it.
max_up_32h_pctmax_down_32h_pctThe highest and lowest price reached in those 32 hours, in percent from the moment. Reached at some point, not held.
path_pctThe whole 32 hours, one point every 30 minutes (64 points), each in percent from the moment.

A RECORD, NOT A PROMISE

after is what happened following a past moment. The spread across matches is the answer; no endpoint averages them into one path.

ENGINE

Status

GET/v1/status

What the engine is serving right now.

No key needed

Lists every asset with how far its data reaches back, its most recent bar, and whether its yardstick is loaded. sample is true when a deployment runs on synthetic prices; check it before treating figures as live.

Returns

sample, and one entry per asset with start, now and yardstick.

curl https://priorcase.com/v1/status
Response, trimmed
{
  "sample": false,
  "assets": [
    {
      "asset": "BTC",
      "start": "2013-01-01T00:00:00Z",
      "now": "2026-11-27T16:15:00Z",
      "yardstick": true
    },
    {
      "asset": "ETH",
      "start": "2018-01-01T00:00:00Z",
      "now": "2026-11-27T16:15:00Z",
      "yardstick": true
    }
  ]
}

Assets

GET/v1/assets

The assets a request can be about, and the words the engine reads.

No key needed

Each asset carries its unit (% for a price, bp for a rate or spread, pts otherwise), where its record starts, and searchable_from, the first moment a similarity search can reach. scales lists the values scale accepts and conditions the phrases /v1/when reads.

Returns

assets, scales and conditions.

curl https://priorcase.com/v1/assets
Response, trimmed
{
  "assets": [
    {
      "symbol": "BTC",
      "name": "Bitcoin",
      "kind": "crypto",
      "unit": "%",
      "aliases": "btc bitcoin xbt",
      "sample": false,
      "start": "2013-01-01T00:00:00Z",
      "searchable_from": "2017-08-17T00:00:00Z",
      "now": "2026-11-27T16:15:00Z"
    }
  ],
  "scales": [
    "5m",
    "15m",
    "30m",
    "1h",
    "2h",
    "4h",
    "1d"
  ],
  "conditions": [
    "crashed",
    "rallied",
    "fell 10% in a day",
    "rose 10% in a day",
    "fell 5% in an hour",
    "was 20% below its 7-day high",
    "was this volatile",
    "was quiet"
  ]
}

PRECEDENT

Read one moment

GET/v1/moment/{at}

The state of the market at one moment, and what followed it.

Key required

Every figure in then is read from bars that had closed by that moment, so a question about 2019 is answered with 2019 numbers and nothing later.

Path parameters

atstringrequired
The moment, UTC in ISO 8601. Rounded down to the five-minute grid.

Query parameters

assetstringdefault BTC
Asset symbol, as /v1/assets lists it.

Returns

A moment object under moment, and chart, the closes around it.

curl -G https://priorcase.com/v1/moment/2024-03-05T15:00:00Z \
  -d asset=BTC \
  -H "Authorization: Bearer $PRIORCASE_API_KEY"
Response, trimmed
{
  "asset": "BTC",
  "unit": "%",
  "moment": {
    "time": "2024-03-05T15:00:00Z",
    "then": {
      "close": 68800.0,
      "ret_1h_pct": 1.43,
      "ret_24h_pct": 3.8397,
      "ret_72h_pct": 11.1883,
      "vol_ratio_24h_30d": 1.7753,
      "drawdown_7d_pct": -0.1437,
      "volume_24h": 297417311.3959,
      "volume_ratio_24h_30d": 2.4906,
      "ret_7d_pct": 20.6594,
      "ret_30d_pct": 60.5002,
      "high_24h": 68899.0,
      "low_24h": 65150.0
    },
    "after": {
      "ret_4h_pct": -6.9448,
      "ret_24h_pct": -4.1759,
      "ret_32h_pct": -4.1294,
      "max_up_32h_pct": 0.5959,
      "max_down_32h_pct": -13.7892,
      "path_pct": [
        -2.2035,
        -2.8459,
        -4.3517,
        -4.8488
      ]
    },
    "events": []
  },
  "chart": [
    {
      "time": "2024-03-02T15:00:00Z",
      "close": 61877.0
    },
    {
      "time": "2024-03-02T15:30:00Z",
      "close": 61995.0
    },
    {
      "time": "2024-03-02T16:00:00Z",
      "close": 61848.0
    }
  ],
  "disclaimer": "Past similarity does not guarantee future outcomes."
}

Price paths

GET/v1/paths

The price path around each of a set of moments, ready to plot.

Key required

Every point is in percent from the close at the moment, so paths of different sizes and years draw on one axis. Each path carries the events that became known across it.

before_minutes widens what comes back, not what was matched: the base stays the close at the moment, so you can zoom out without searching again.

Query parameters

atstring[]required
UTC times in ISO 8601, the moments to draw. Repeat the parameter for each, up to 24.
assetstringdefault BTC
Asset symbol, as /v1/assets lists it.
scalestringdefault 15m
One of 5m, 15m, 30m, 1h, 2h, 4h, 1d.
after_minutesintegerdefault 1920
How far past each moment to draw. The default is 32 hours.
before_minutesinteger
How far behind each moment to reach. Defaults to the scale's own window.

Returns

One path per moment: offsets in minutes from the moment (0 and below is before), and pct, high_pct, low_pct, open_pct on the same base, with events along it.

curl -G https://priorcase.com/v1/paths \
  -d asset=BTC \
  -d scale=1h \
  -d at=2025-12-26T17:00:00Z \
  -d after_minutes=240 \
  -H "Authorization: Bearer $PRIORCASE_API_KEY"
Response, trimmed
{
  "asset": "BTC",
  "unit": "%",
  "scale": "1h",
  "step_minutes": 60,
  "window_minutes": 8640,
  "after_minutes": 240,
  "paths": [
    {
      "time": "2025-12-26T17:00:00Z",
      "base_close": 86771.0,
      "offsets": [
        -8580,
        -8520,
        -8460
      ],
      "pct": [
        1.5823,
        1.7437,
        1.6388
      ],
      "high_pct": [
        1.6618,
        1.8266,
        1.7448
      ],
      "low_pct": [
        1.497,
        1.5547,
        1.6054
      ],
      "open_pct": [
        1.5454,
        1.5812,
        1.7437
      ],
      "events": [
        {
          "slug": "gdp-2025-07-01",
          "name": "GDP for 2025 Q3: 4.3% a year",
          "kind": "gdp",
          "offset_minutes": -4530,
          "scheduled": false
        }
      ]
    }
  ]
}

Usual range

GET/v1/normal

The usual range of each figure for an asset, as it stood at a given time.

Key required

The same yardstick /v1/search reads its matches against, on its own for sets you found another way: every past CPI release, every moment a condition held.

known_by is the moment you compare from, not now. Ask about 2019 and you get what was usual in 2019. Repeat asset to read several at once for the price of one call; an asset whose data does not reach the moments is left out rather than failing the rest.

Query parameters

atstring[]required
UTC times in ISO 8601, the moments to read against the range. Repeat the parameter for each, up to 24.
known_bystringrequired
Read the range as it stood at this moment, never later.
assetstring[]default BTC
Asset symbol. Repeat it for up to 24 assets.
scalestringdefault 15m
One of 5m, 15m, 30m, 1h, 2h, 4h, 1d.

Returns

One band per figure under normal: low (5th percentile), mid (median), high (95th percentile), and how many readings over how many since_days it was drawn from.

curl -G https://priorcase.com/v1/normal \
  -d asset=BTC \
  -d at=2025-12-26T17:00:00Z \
  -d known_by=2026-11-27T16:15:00Z \
  -H "Authorization: Bearer $PRIORCASE_API_KEY"
Response, trimmed
{
  "asset": "BTC",
  "unit": "%",
  "normal": [
    {
      "figure": "then.ret_1h_pct",
      "minutes": 60,
      "low": -0.6476,
      "mid": -0.0036,
      "high": 0.7578,
      "flat_at": 0.05,
      "readings": 883,
      "since_days": 730,
      "share_up": 0.496
    },
    {
      "figure": "then.ret_24h_pct",
      "minutes": 1440,
      "low": -3.6566,
      "mid": 0.0134,
      "high": 3.3439,
      "flat_at": 0.21,
      "readings": 883,
      "since_days": 730,
      "share_up": 0.5051
    }
  ]
}

When a condition held

GET/v1/when

The moments a condition became true, most recent first, each with what followed.

Key required

A run of bars that all meet the condition counts once, at the first. Every value is measured on bars that had closed by that moment.

Counts one answer per ten moments asked for.

Query parameters

qstringrequired
A condition in words, such as fell 10% in a day or under 100k. /v1/assets lists the phrases it reads.
assetstringdefault BTC
Asset symbol, as /v1/assets lists it.
limitintegerdefault 8
How many moments to return, 1 to 50.

Returns

condition as the engine read it, with a label in words, and matches, each a moment object.

curl -G https://priorcase.com/v1/when \
  -d asset=BTC \
  --data-urlencode "q=fell 10% in a day" \
  -d limit=2 \
  -H "Authorization: Bearer $PRIORCASE_API_KEY"
Response, trimmed
{
  "asset": "BTC",
  "unit": "%",
  "condition": {
    "field": "ret_24h",
    "op": "<=",
    "value": -10.0,
    "label": "the price fell 10% or more in a day"
  },
  "matches": [
    {
      "rank": 1,
      "moment": {
        "time": "2026-02-06T03:50:00Z",
        "then": {
          "close": 64138.0,
          "ret_24h_pct": -10.0461,
          "ret_72h_pct": -18.2695,
          "drawdown_7d_pct": -24.097
        },
        "after": {
          "ret_4h_pct": 0.87,
          "ret_24h_pct": 10.2669,
          "ret_32h_pct": 5.577,
          "max_up_32h_pct": 11.7481,
          "max_down_32h_pct": -0.6767,
          "path_pct": [
            0.8341,
            1.107,
            2.0627,
            2.6942
          ]
        },
        "events": []
      }
    }
  ],
  "disclaimer": "Past similarity does not guarantee future outcomes."
}

If it moved this much

GET/v1/move

Of the past moments most like this one, the ones that went on to move that far, and what came after.

Key, or a daily allowance without one

Not a drawn guess: each case is a real past moment followed from the bar where it reached the move. When fewer than five reach it in 32 hours the window widens to seven days and widened says so. When none reach it, nearest says how far the closest got.

Query parameters

pctnumberrequired
The move from here, in the asset's unit, between -50 and 50. Negative is a fall.
assetstringdefault BTC
Asset symbol, as /v1/assets lists it.
atstring
The moment to count from, UTC in ISO 8601. Defaults to the last closed bar.
within_hoursinteger
How long each past moment gets to reach the move. Left out: 32, widened to 168 when fewer than five did.
poolintegerdefault 50
How many moments like this one to look through, 10 to 50.

Returns

reached of pool made the move. cases lists them with touched_at, hours_to and after at 4h, 24h and 32h. after counts them per horizon: up, down, flat, and the mid, low and high.

curl -G https://priorcase.com/v1/move \
  -d asset=BTC \
  -d pct=3 \
  -H "Authorization: Bearer $PRIORCASE_API_KEY"
Response, trimmed
{
  "asset": "BTC",
  "unit": "%",
  "pct": 3.0,
  "asked_at": "2026-11-27T16:15:00Z",
  "close": 59969.55,
  "within_hours": 32,
  "widened": false,
  "pool": 50,
  "reached": 9,
  "nearest": 6.3425,
  "cases": [
    {
      "time": "2019-08-24T10:00:00Z",
      "similarity": 0.7358,
      "touched_at": "2019-08-25T12:55:00Z",
      "hours_to": 26.92,
      "after": {
        "4h": -2.5321,
        "24h": 0.5256,
        "32h": -0.6679
      },
      "path_2h": [
        -2.67,
        -2.53,
        -2.47
      ]
    }
  ],
  "after": [
    {
      "hours": 4,
      "n": 9,
      "up": 2,
      "down": 7,
      "flat": 0,
      "mid": -0.6166,
      "low": -2.7456,
      "high": 1.1937
    },
    {
      "hours": 24,
      "n": 9,
      "up": 2,
      "down": 7,
      "flat": 0,
      "mid": -1.3024,
      "low": -3.2757,
      "high": 0.5256
    },
    {
      "hours": 32,
      "n": 9,
      "up": 2,
      "down": 7,
      "flat": 0,
      "mid": -0.8565,
      "low": -3.346,
      "high": 1.3677
    }
  ],
  "disclaimer": "Past similarity does not guarantee future outcomes."
}

EVENTS

Topics

GET/v1/topics

The kinds of event the record groups, with how many of each.

No key needed

Pass a slug to /v1/after/{topic} to get every event of that kind.

Query parameters

qstring
A question such as after rate cuts. Narrows the list to the topics it names.

Returns

topics, each with slug, label and count.

curl https://priorcase.com/v1/topics
Response, trimmed
{
  "topics": [
    {
      "slug": "halving",
      "label": "halvings",
      "count": 2
    },
    {
      "slug": "fomc",
      "label": "Fed statements (FOMC)",
      "count": 75
    },
    {
      "slug": "rate-cut",
      "label": "Fed rate cuts",
      "count": 13
    },
    {
      "slug": "rate-hike",
      "label": "Fed rate hikes",
      "count": 17
    }
  ]
}

After a topic

GET/v1/after/{topic}

Every event of a topic, each with the market before it and what followed.

Key, or a daily allowance without one

Without alike this is the record: every CPI release, newest first. With it the same list is ranked by how much each moment looked like the one named, and each item carries that similarity. The measure is the same one /v1/search uses.

Path parameters

topicstringrequired
A topic slug, as /v1/topics gives it.

Query parameters

assetstringdefault BTC
Asset symbol, as /v1/assets lists it.
alikestring
now or a UTC time. Ranks the list by how alike each moment was to it.

Returns

topic with its count, and items, each an event and the moment object at the time it became known.

curl -G https://priorcase.com/v1/after/cpi \
  -d asset=BTC \
  -d alike=now \
  -H "Authorization: Bearer $PRIORCASE_API_KEY"
Response, trimmed
{
  "unit": "%",
  "topic": {
    "slug": "cpi",
    "label": "CPI releases",
    "count": 110
  },
  "items": [
    {
      "event": {
        "slug": "cpi-2024-12",
        "kind": "cpi",
        "name": "CPI release for December 2024: +0.4% on the month, core +0.2%",
        "known_at": "2025-01-15T13:30:00Z",
        "precision": "minute",
        "day": null,
        "topics": [
          "cpi"
        ],
        "how": "set"
      },
      "similarity": 0.5271,
      "moment": {
        "time": "2025-01-15T13:30:00Z",
        "then": {
          "close": 97240.0,
          "ret_24h_pct": 1.4798,
          "ret_7d_pct": 1.7442
        },
        "after": {
          "ret_4h_pct": 1.9375,
          "ret_24h_pct": 1.5971,
          "ret_32h_pct": 2.7098,
          "max_up_32h_pct": 3.7227,
          "max_down_32h_pct": 0.0103,
          "path_pct": [
            1.7462,
            1.4994,
            2.2491,
            2.5278
          ]
        }
      }
    },
    {
      "event": {
        "slug": "cpi-2020-01",
        "kind": "cpi",
        "name": "CPI release for January 2020: +0.1% on the month, core +0.2%",
        "known_at": "2020-02-13T13:30:00Z",
        "precision": "minute",
        "day": null,
        "topics": [
          "cpi"
        ],
        "how": "set"
      },
      "similarity": 0.5265,
      "moment": {
        "time": "2020-02-13T13:30:00Z",
        "then": {
          "close": 10279.61,
          "ret_24h_pct": -0.9783,
          "ret_7d_pct": 4.9427
        },
        "after": {
          "ret_4h_pct": -1.1757,
          "ret_24h_pct": -0.2779,
          "ret_32h_pct": 0.9639,
          "max_up_32h_pct": 2.1488,
          "max_down_32h_pct": -1.8128,
          "path_pct": [
            -0.7148,
            0.0305,
            -0.3146,
            -0.2478
          ]
        }
      }
    }
  ],
  "disclaimer": "Past similarity does not guarantee future outcomes."
}

List events

GET/v1/events

The events already known, most recent first.

No key needed

known_at is when an event became public, not when it happened. Searches treat an event as unknown before that instant. An event known only by its date counts from the end of that day.

Query parameters

qstring
Words that must all appear in the name.
kindstring
An event kind, such as cpi, fomc or claims.
sincestring
Known at or after this time, UTC.
untilstring
Known at or before this time, UTC.
limitintegerdefault 10
How many to return, 1 to 500.

Returns

events, each with slug, kind, name, known_at, precision and topics.

curl -G https://priorcase.com/v1/events \
  -d kind=cpi \
  -d limit=2
Response, trimmed
{
  "events": [
    {
      "slug": "cpi-2026-10",
      "kind": "cpi",
      "name": "CPI release for October 2026",
      "known_at": "2026-11-10T13:30:00Z",
      "precision": "minute",
      "day": null,
      "topics": [
        "cpi"
      ],
      "how": "set"
    },
    {
      "slug": "cpi-2026-09",
      "kind": "cpi",
      "name": "CPI release for September 2026: +0.6% on the month, core +0.3%",
      "known_at": "2026-10-14T12:30:00Z",
      "precision": "minute",
      "day": null,
      "topics": [
        "cpi"
      ],
      "how": "set"
    }
  ]
}

Retrieve an event

GET/v1/events/{slug}

One event by its slug.

No key needed

how says how the event reached the record: set when its date and nature were public beforehand, decided when the date was public but the label is the outcome, noticed when it is in the record because it happened.

Path parameters

slugstringrequired
The event's stable id, as /v1/events gives it.

Returns

One event.

curl https://priorcase.com/v1/events/cpi-2026-10
Response, trimmed
{
  "slug": "cpi-2026-10",
  "kind": "cpi",
  "name": "CPI release for October 2026",
  "known_at": "2026-11-10T13:30:00Z",
  "precision": "minute",
  "day": null,
  "topics": [
    "cpi"
  ],
  "how": "set"
}

Next event

GET/v1/events/next

The next scheduled event after the end of the data.

No key needed

A calendar is public in advance; what a release will say is not. An event still ahead carries only its kind and time.

Returns

One event.

curl https://priorcase.com/v1/events/next
Response, trimmed
{
  "slug": "claims-due-2026-12-03",
  "kind": "claims",
  "name": "Jobless claims",
  "known_at": "2026-12-03T13:30:00Z",
  "precision": "minute",
  "day": null,
  "topics": [
    "claims"
  ],
  "how": "set"
}

Upcoming events

GET/v1/events/upcoming

The scheduled events due in the next few days, soonest first.

No key needed

Counted from the end of the data, not from the wall clock.

Query parameters

daysintegerdefault 30
How far ahead to look, 1 to 800.
limitintegerdefault 5
How many to return, 1 to 50.

Returns

events, soonest first.

curl -G https://priorcase.com/v1/events/upcoming \
  -d days=30 \
  -d limit=3
Response, trimmed
{
  "events": [
    {
      "slug": "claims-due-2026-12-03",
      "kind": "claims",
      "name": "Jobless claims",
      "known_at": "2026-12-03T13:30:00Z",
      "precision": "minute",
      "day": null,
      "topics": [
        "claims"
      ],
      "how": "set"
    },
    {
      "slug": "jobs-due-2026-12-04",
      "kind": "jobs",
      "name": "Jobs report",
      "known_at": "2026-12-04T13:30:00Z",
      "precision": "minute",
      "day": null,
      "topics": [
        "jobs"
      ],
      "how": "set"
    }
  ]
}

MARKET DATA

Across assets

GET/v1/across

Every other asset and measure as it stood at each moment.

No key needed

Point in time throughout. An asset whose market was closed is read from its last close before the moment, and stale_minutes says how long before. An asset whose data does not reach the moment is left out.

Query parameters

atstring[]required
UTC times in ISO 8601, the moments to read the other assets at. Repeat the parameter for each, up to 24.
assetstring
Leave this asset out, usually the one you are already looking at.
window_minutesintegerdefault 2160
How far back each shape reaches, 60 to 43200.
after_minutesintegerdefault 1920
How far past the moment each after runs, 0 to 43200.

Returns

One entry per moment, each with assets: close, ret_24h, ret_72h, the usual 72-hour range (usual_low, usual_high), shape before and after, all in the asset's unit.

curl -G https://priorcase.com/v1/across \
  -d at=2025-12-26T17:00:00Z \
  -d asset=BTC
Response, trimmed
{
  "moments": [
    {
      "time": "2025-12-26T17:00:00Z",
      "assets": [
        {
          "asset": "ETH",
          "name": "Ether",
          "kind": "crypto",
          "unit": "%",
          "step": "5m",
          "close": 2907.1,
          "ret_24h": -1.3342,
          "ret_72h": -1.6373,
          "usual_low": -9.3838,
          "usual_high": 10.6537,
          "stale_minutes": 5,
          "shape": [
            1.1021,
            1.1087,
            0.5318
          ],
          "after": [
            0.1644,
            0.5425,
            0.6876
          ]
        }
      ]
    }
  ]
}

Closes

GET/v1/prices

The close at every step boundary.

No key needed

The long chart a moment is picked from. A series that cannot be searched can still be drawn.

Query parameters

assetstringdefault BTC
Asset symbol, as /v1/assets lists it.
stepstringdefault 1d
Bar size: 5m, 15m, 30m, 1h, 4h or 1d.
sincestring
From this time, UTC.
untilstring
To this time, UTC.

Returns

points, each a time and a close.

curl -G https://priorcase.com/v1/prices \
  -d asset=BTC \
  -d step=1d \
  -d since=2026-11-20T00:00:00Z
Response, trimmed
{
  "asset": "BTC",
  "unit": "%",
  "step": "1d",
  "points": [
    {
      "time": "2026-11-20T00:00:00Z",
      "close": 61914.05
    },
    {
      "time": "2026-11-21T00:00:00Z",
      "close": 58813.83
    },
    {
      "time": "2026-11-22T00:00:00Z",
      "close": 60078.34
    }
  ]
}

Bars

GET/v1/bars

Open, high, low, close and volume at every step, and how current the last bar is.

No key needed

Each bar is stamped when it closed, and a bar still forming is left out, so nothing here was unknown at its own time. Missing bars look exactly like a quiet market until measured: read as_of.verdict before putting a time beside the last close.

Query parameters

assetstringdefault BTC
Asset symbol, as /v1/assets lists it.
stepstringdefault 1d
Bar size: 5m, 15m, 30m, 1h, 4h or 1d.
sincestring
From this time, UTC.
untilstring
To this time, UTC. Left out, the bars run to now.

Returns

as_of, which says how far behind the last bar is, and bars.

curl -G https://priorcase.com/v1/bars \
  -d asset=BTC \
  -d step=1d \
  -d since=2026-11-20T00:00:00Z
Response, trimmed
{
  "asset": "BTC",
  "unit": "%",
  "step": "1d",
  "as_of": {
    "bar": "2026-11-27T16:15:00Z",
    "asked": "2026-11-27T16:15:00Z",
    "behind_minutes": 0,
    "usual_minutes": 5,
    "trading": true,
    "weeks_seen": 8,
    "verdict": "live"
  },
  "bars": [
    {
      "time": "2026-11-20T00:00:00Z",
      "open": 62977.77,
      "high": 64014.05,
      "low": 61365.0,
      "close": 61914.05,
      "volume": 1223.9396
    },
    {
      "time": "2026-11-21T00:00:00Z",
      "open": 61910.04,
      "high": 62549.4,
      "low": 57668.4,
      "close": 58813.83,
      "volume": 2189.799
    }
  ]
}

UTILITIES

Spelling

GET/v1/spell

Corrects misspelt words against the words the engine knows.

No key needed

Useful before /v1/when or /v1/topics when the words come from a person.

Query parameters

qstringrequired
The words to check.

Returns

q as sent and corrected.

curl -G https://priorcase.com/v1/spell \
  -d q=halvng
Response, trimmed
{
  "q": "halvng",
  "corrected": "halving"
}