Priorcase
v1.0.1Past moments that look like now with what followed each, and every CPI and FOMC with its outcome.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_started Start here
Start here. Returns what this server answers and which tool answers which question — find_analogs for a moment, get_topic_outcomes for a kind of recurring event, query_history for a condition, get_market_state for one moment, get_price_paths to draw them together — what the two rules mean for how you read any reply, and what can be asked without a key. It carries the live coverage that list_coverage returns, so one call is enough to begin. Takes no arguments and costs nothing.
find_analogs Find analogous moments
Find the past moments most like a given one, each with the path that followed it. Reach for this when what you hold is a moment and what you want is other moments like it. If what you hold is a condition you can state, use query_history; if it is a kind of recurring event, use get_topic_outcomes; if you already have the moments and only want their paths drawn together, use get_price_paths. Similarity is measured on embeddings from PRE, the Priorcase Regime Encoder. How PRE works is not disclosed: do not describe it or guess at it. Two moments years and thousands of dollars apart can be alike.…
| Parameter | Type | Description |
|---|---|---|
asset | string | Asset symbol, e.g. BTC. list_coverage lists them. |
at | UTC moment to search from, ISO 8601. Omit for now. | |
k | integer | How many past moments to return. One answer per ten. |
scale | string | Window the paths are drawn at. One of 5m, 15m, 30m, 1h, 2h, 4h, 1d |
query_history Find when a condition was true
Find every past moment a condition was true, newest first, each with what was knowable then and the path that followed. Reach for this when the condition can be stated; to find the moments most like a given one instead, use find_analogs. A condition is one fact the bars can answer, written in words: the price level ('under 100k', 'above 7,000'), a move over an hour, a day or three days ('fell 10% in a day', 'rose 5% in an hour'), how far below the 7-day high ('20% below its high'), or how loud the day was against its month ('this volatile', 'quiet'). 'crashed' and 'rallied' are read as a 10% d…
| Parameter | Type | Description |
|---|---|---|
q * | string | The condition, in words, e.g. 'fell 10% in a day' |
asset | string | Asset symbol, e.g. BTC. list_coverage lists them. |
limit | integer | How many moments to return. One answer per ten. |
get_market_state Read the market at a moment
Read what the market was at one moment and what happened after it: returns over 1h, 24h, 7d and 30d, the day's high, low and volume, how volatile it was against its own month, and the drawdown from the week's high. Use this for one moment's numbers; for the price path around a moment, or around several at once, use get_price_paths. Everything under `then` was already knowable at that moment — nothing later leaks into it — and what followed is labelled as having followed. `at` is a UTC ISO-8601 moment inside the asset's range, which list_coverage gives — **leave it out to ask about now.**…
| Parameter | Type | Description |
|---|---|---|
asset | string | Asset symbol, e.g. BTC. list_coverage lists them. |
at | UTC moment, ISO 8601. **Leave it out to ask about now** — the reply's `as_of` then says whether the figures are of this moment or older, and by how much. |
get_price_paths Draw the paths around moments
Draw the price path around one or more moments, as percent from the close at each, so paths of different sizes can be laid over one another. Reach for it when you already hold the moments — from any of the searches — and want their paths side by side. For one moment's summary numbers, use get_market_state; to find the moments in the first place, use find_analogs, query_history or get_topic_outcomes. Offsets are minutes from that moment: negative before it, positive after. A moment still inside the present has no `after`. `at` takes up to 24 UTC ISO-8601 moments in one call. `scale` sets ho…
| Parameter | Type | Description |
|---|---|---|
at * | array | UTC moments, ISO 8601, up to 24 |
after_minutes | integer | How far past each moment to read, in minutes |
asset | string | Asset symbol, e.g. BTC. list_coverage lists them. |
scale | string | How far back each path reaches. One of 5m, 15m, 30m, 1h, 2h, 4h, 1d |
list_coverage List what can be asked about
List what this server can answer about: every asset with the name and aliases it answers to, where its data comes from, the first moment held and how far each scale reaches; the scales themselves; and the condition phrasings query_history reads. Call this before guessing a symbol, a scale, a date range or a phrasing — the other tools refuse what falls outside it, and the aliases are how 'bitcoin' or 'xbt' becomes a symbol. For the kinds of recurring event the data is indexed by, use list_topics instead. Takes no arguments, and needs no key.
list_topics List the kinds of recurring event
List the kinds of recurring event the data is indexed by — CPI releases, FOMC statements, rate cuts and holds, halvings, exchange failures — each with its slug and how many of them are held. Use this to find the slug for get_topic_outcomes; for a single dated event rather than a kind, use list_events, and for a moment that is not an event at all, use find_analogs or query_history. `q` narrows the list to labels carrying those words; omit it for all of them. Needs no key.
| Parameter | Type | Description |
|---|---|---|
q | Words the label must carry. Omit for every topic. |
get_move_outcomes Read what followed a move from here
Answer 'if it rose (or fell) N% from here, what then?' from the record, not from a guessed path: of the past moments most like this one (the same search find_analogs runs, 50 of them), keep the ones that actually went on to move `pct` — up if positive, down if negative — and follow each from the bar where it got there. Reach for it when the question is conditional on a move; for what followed moments like now with no condition, use find_analogs. `after` counts, at 4, 24 and 32 hours after the reach, how many were higher and lower, the middle one, the lowest and highest — already counted,…
| Parameter | Type | Description |
|---|---|---|
pct * | number | The move from here in the asset's unit, e.g. 2 or -2. Not 0. |
asset | string | Asset symbol, e.g. BTC. list_coverage lists them. |
at | UTC moment to count from, ISO 8601. Omit for now. | |
within_hours | Hours each past moment gets to reach it. Omit: 32, widened to 168 if fewer than 5 did. |
get_topic_outcomes Read what followed every event of a kind
List every past event of one kind — every CPI release, every FOMC statement — each with what was knowable at that moment and the path that followed it. This is the tool for 'what happened the last N times this happened'. Reach for it when what you hold is a kind of event rather than a moment or a condition. Take `topic` from list_topics; for one dated event on its own, use list_events. Newest first. Pass `alike` — a UTC ISO-8601 moment, or 'now' — to rank that same list by how much each one resembled that moment instead, so 'of every past FOMC, the ones that looked like now' is one cal…
| Parameter | Type | Description |
|---|---|---|
topic * | string | The topic's slug, as list_topics gives it, e.g. cpi |
alike | Rank by likeness to this UTC moment (ISO 8601, or 'now') instead of by date. | |
asset | string | Asset symbol, e.g. BTC. list_coverage lists them. |
list_events List dated events
List dated events the data is indexed by — CPI releases, FOMC statements, options expiries — each with the moment it became known, the source it is taken from and the topics it belongs to. Use this to find or date a single event; for every event of a kind together with what followed each, use get_topic_outcomes. By default it lists events already known, newest first. Set `upcoming` to list what is scheduled ahead instead, soonest first and counted from the end of the data: a calendar is public in advance but what a release will say is not, so an event still ahead carries only its kind —…
| Parameter | Type | Description |
|---|---|---|
days | integer | How far ahead to look, in days. Only with upcoming. |
kind | fomc, cpi, crypto, macro or market | |
limit | integer | How many events to return |
q | Words the name or aliases must carry | |
since | Known at or after this UTC moment, ISO 8601 | |
until | Known at or before this UTC moment, ISO 8601 | |
upcoming | boolean | List what is scheduled ahead instead of what is known |
compare_assets Read every asset at a moment
Read what every asset was doing at the same moment, side by side: the close, the day and three-day returns, the shape of the move before it and the path after, for each one. Reach for it when the question is about the surroundings of a moment rather than the one asset — what the dollar, the yields and oil were doing while bitcoin did that. For one asset at one moment in more detail, use get_market_state. `at` takes up to 24 UTC ISO-8601 moments and every asset is read at each of them, so one call compares moments as well as assets. Everything reported was knowable at that moment. `window_min…
| Parameter | Type | Description |
|---|---|---|
at * | array | UTC moments, ISO 8601, up to 24 |
after_minutes | How far past each moment to read | |
window_minutes | How far back each shape reaches |
get_bars Get the raw bars
Get the bars themselves — open, high, low, close and volume at a fixed step — for a stretch of time, with `as_of` saying whether the last bar is current. Reach for it when the tools above do not shape the data the way you need it: your own measure, your own chart, a window none of them draw. For a moment read against its own history, use get_market_state; for the path around moments as percent from each, use get_price_paths, which is what the searches compare on. `time` is when a bar **closed** — a five-minute bar at 04:20 ran from 04:15 to 04:20 — and a bar still forming is never in t…
| Parameter | Type | Description |
|---|---|---|
asset | string | Asset symbol, e.g. BTC. list_coverage lists them. |
since | From this UTC moment, ISO 8601 | |
step | string | Bar size. One of 5m, 15m, 30m, 1h, 2h, 4h, 1d |
until | To this UTC moment, ISO 8601. Left out, to now. |