Reference
API reference
22 operations, generated from the API's own OpenAPI spec. When a path, parameter or default changes in the API it changes here too, because nothing on this page is maintained by hand.
Base
https://priorcase.com/v1
Requests and responses are JSON, and all times are UTC in ISO 8601. This page documents Priorcase API version 1.0. The spec itself is at https://priorcase.com/openapi.json and needs no key.
Endpoints that cost an answer
These return moments and their price paths, and each one costs what it returns. The count follows the k or limit you ask for.
GET/v1/search1 answer / 10 k
Find the past moments whose price path most resembles a given one.
Parameters
assetstring- Asset symbol. Defaults to
BTC. atstring- UTC time; default = now (the last closed bar).
eventstring- Event slug; the moment it became known.
kinteger- How many past moments to return. Small values are noisy: measured on BTC at 15m, the spread of what followed had a median width of 4.73pp at k=8 against 0.75pp at k=50. Defaults to
10. scalestring- How far the returned paths reach back around each moment. It does not change which moments are found: the same question at any scale gives the same matches.
Returns
The past moments most like the one asked about, with what followed each.
assetstring- The asset searched.
window_barsobject- How far back this way of matching reads, in bars at each scale. The engine's own way reads 144 at every scale and says nothing here. Where it is given, a chart can be drawn over what was actually compared instead of over a different window.
unitstring- How a move in this asset is said:
%for a price,bpfor a rate or spread,ptsfor an index that is not a price. **Every figure below is counted in it.** The field names saypctonly because they shipped that way -- a rate'sret_24h_pctis basis points, and nothing else in this answer tells you so. providerstring- Who computed the answer.
provider_versionstring- Which way of matching produced it. Two answers with the same value were computed the same way, and a change to the way changes it. It is an identifier, not a description.
queryMomentOut- The moment answered about. Its
afteris always null, because it has not happened yet. Name one withatand this is that moment. Leaveatout and it is the most recent moment that could be answered, which can be a few minutes behind the last bar. Read it rather than assuming the clock. timestring- The moment itself, UTC, on a five-minute boundary.
thenThenOut- The market as it stood at that moment. Null where the history behind it is too short to measure.
afterAfterOut- What happened in the 32 hours after. Null until those hours have closed, so always null on the moment you asked about.
eventsEventOut[]- Events already public at that moment and no more than 24 hours old.
matchesMatchOut[]- The past moments that resemble it, closest first.
rankinteger- Its place in the answer, 1 being the closest.
similaritynumber- How alike the two moments are, 0 to 1, higher being closer, measured on embeddings from PRE, the Priorcase Regime Encoder.
rankis the order to read them in and can differ slightly from the order of this score. A high score does not mean the answer is worth much.qualityis what says that. momentMomentOut- The matched moment, with what was knowable then and what followed.
qualityQualityOut- How much the answer is worth: how many, how far apart, and against chance. Null where too few moments were found to say.
ninteger- How many matched moments this was computed from.
alikeinteger- How many past windows were about as similar as the ones returned.
nis what you asked for; this is how many there were to ask for. Eight out of ten is a different answer from eight out of sixty, and the two look the same on a chart. The bar is set from the answer itself — the spread of the returned similarities, dropped once below the last of them — because similarity is not on the same scale from one query to the next. Empty where the list was read from a precomputed file rather than scored here. first_yearinteger- The year of the oldest matched moment.
last_yearinteger- The year of the newest matched moment.
range_median_pctnumber- How far apart the matched outcomes landed: the median width, in percentage points.
baseline_range_median_pctnumber- The same width for sets of the same size drawn at random. The number to read
range_median_pctagainst. range_percentilenumber- Where this answer's spread sits among 2,000 random sets of the same size, 0 to 100. **Low is tight**: 25 means only a quarter of random sets held together more closely than this one. Near 50 the outcomes are spread about as widely as moments picked at random; above 50 they are spread wider, which says what followed these moments moved more than usual.
halves_range_rationumber- The older half's spread over the newer half's. Far from 1 means the two halves of the history disagree.
normalNormalOut[]- What these figures normally do for this asset. The yardstick a match is read against: −2% means nothing until you know the asset runs ±4% on an ordinary day.
figurestring- Which figure this band is for, named as it appears in a moment: "then.ret_24h_pct", "after.ret_32h_pct".
minutesinteger- The stretch of time the figure measures, in minutes. The window rows ("after.window_5m" and its halves) run as long as the answer was drawn at, which depends on the answer, so read this rather than assuming the engine's own 144 buckets.
lownumber- The 5th percentile of that figure for this asset: the low edge of ordinary.
midnumber- The median. Where nothing happening actually sits, which is rarely zero.
highnumber- The 95th percentile: the high edge of ordinary.
flat_atnumber- Where "it did not move" starts for this figure, in the asset's unit: the floor the screen prints (half of the last digit) or a share of this band, whichever is larger. Always present — a row exists only where the band does. Read it rather than deriving one, so the engine and the screen cannot count "flat" differently;
asked.flat_atis the same number where that object exists, and on a topic's rows it is the median of each event's own. readingsinteger- How many past moments the band was measured from.
since_daysinteger- How far back those readings reach, in days.
share_upnumber- Of the same readings, the share above zero: the base rate a count of "how many rose" has to beat. A coin is the wrong null, and how wrong depends on the horizon — bitcoin closed above its start 53.5% of the time over 36 hours and 67.8% of the time over 288 days, measured over its whole history — so this comes with each figure rather than being assumed once. For what a count is worth against it, read
asked.chance_up_at_least, which computes it; this field is the base rate and not the answer. Direction-free figures carry it too and it means nothing there. spreadnumber- For the set of moments asked about: its widest reading minus its narrowest. Where
askedis present this is exactlyasked.high - asked.low— the same reading, not a second measurement — and on the rows whereaskedis withheld (then.*, and figures with no direction) it is the only thing here that describes the answer rather than the asset. raritynumber- Where that spread sits among random sets of the same size, 0 to 1. 0 holds together, 0.5 is ordinary, 1 is scattered.
eachnumber[]- The same reading for each moment in
matches, in that order, or null where that moment's window did not finish. Present on the window rows;askedcounts exactly the non-null ones. askedAskedOut- The moments asked about, counted against
share_up. Null where there was nothing to count or no base rate to count it against -- a count without its base rate is not shipped. attestationAttestation- What this was computed from, and that nothing in it was unknowable at the moment asked about.
asked_atstring- The moment this answer is about, UTC.
providerstring- Who computed it.
provider_versionstring- Which way of matching produced it. An identifier, not a description.
rulestring- The rule the answer was checked against, in words.
verifiedboolean- True where the engine checked that nothing in this answer was unknowable at
asked_at. It refuses rather than return a leak, so this is never false. disclaimerstring- What this answer is not. Show it wherever you show the moments.
GET/v1/move1 answer
If it moved this much from here, what came after?
Parameters
pctnumberrequired- The move from here, in the asset's unit. Negative is a fall.
assetstring- Asset symbol. Defaults to
BTC. atstring- UTC time; default = now (the last closed bar).
within_hoursinteger- How long each past moment gets to reach it. Left out: 32, widened to 168 when fewer than five did.
poolinteger- How many moments like this one to look at. Defaults to
50.
Returns
If it moved this much from here: the moments like this one that did, and what came after.
assetstring- The asset.
unitstring%for a price,bpfor a rate or spread,ptsotherwise.pctnumber- The move asked about, in
unit. Negative is a fall. asked_atstring- The moment the move is counted from, UTC.
closenumber- Its close.
within_hoursinteger- How long each past moment was given to reach the move.
widenedboolean- True when too few reached it in 32 hours and the window was widened to 7 days — say so.
poolinteger- How many moments like this one were looked at.
reachedinteger- How many of them reached the move within
within_hours. nearestnumber- The furthest any of them went that way within the window — read it when
reachedis small. casesMoveCaseOut[]- Each one that reached it, in the order the search returned them.
timestring- The past moment, UTC.
similaritynumber- How alike it was to the moment asked about, 0 to 1.
touched_atstring- When it first reached the move: the close of that bar, UTC.
hours_tonumber- Hours from the moment to that close.
afterobject- What followed from that close, keyed
4h,24h,32h, in the asset's unit. Null where the record does not reach that far before the moment asked about. path_2hnumber[]- The move from that close every two hours, 16 values (+2h first).
afterMoveTallyOut[]- What followed the reach, counted, per horizon.
hoursinteger- Hours after the reach.
ninteger- Cases counted at this horizon.
upinteger- How many were higher.
downinteger- How many were lower.
flatinteger- How many moved less than 0.05 either way.
midnumber- The middle one.
lownumber- The lowest.
highnumber- The highest.
disclaimerstring- Past similarity does not guarantee future outcomes.
GET/v1/when1 answer / 10 limit
Find the moments a condition became true, most recent first.
Parameters
qstringrequired- A condition in words: "last time bitcoin fell 10%", "under 100k".
assetstring- Asset symbol. Defaults to
BTC. limitinteger- How many moments to return, most recent first. Costs one answer per ten. Defaults to
8.
Returns
Every past moment a condition held, with what followed each.
assetstring- The asset asked about.
unitstring- How a move in this asset is said:
%for a price,bpfor a rate or spread,ptsfor an index that is not a price. **Every figure below is counted in it.** The field names saypctonly because they shipped that way -- a rate'sret_24h_pctis basis points, and nothing else in this answer tells you so. conditionConditionOut- How the question was parsed. Read it before the matches.
fieldstring- The figure the condition tests, named as it appears in
then, e.g.ret_24h_pct. opstring- How it is compared:
<=,>=,<,>or==. valuenumber- What it is compared against, in that figure's own unit.
labelstring- The condition read back in words, e.g. "the price fell 10% or more in a day".
matchesMatchOut[]- The moments the condition held, most recent first.
rankinteger- Its place in the answer, 1 being the closest.
similaritynumber- How alike the two moments are, 0 to 1, higher being closer, measured on embeddings from PRE, the Priorcase Regime Encoder.
rankis the order to read them in and can differ slightly from the order of this score. A high score does not mean the answer is worth much.qualityis what says that. momentMomentOut- The matched moment, with what was knowable then and what followed.
disclaimerstring- What this answer is not. Show it wherever you show the moments.
GET/v1/moment/{at}1 answer
Get the state of the market at one moment.
Parameters
atstringrequired- The moment to read, UTC, ISO 8601. Rounded down to the five-minute grid.
assetstring- Asset symbol. Defaults to
BTC.
Returns
One moment read on its own, with the chart around it.
assetstring- The asset asked about.
as_ofAsOfOut- Whether these figures are of the moment asked for. Read
verdictbefore showing a time beside them. barstring- The last bar at or before
asked. Every figure here was read from it. askedstring- The moment asked for, floored to the five-minute grid.
behind_minutesinteger- How far
askedsits pastbar. usual_minutesinteger- The longest this asset went without a bar in the 90 days before
bar. For anything that closes, its weekend sets this. tradingboolean- Whether this asset usually publishes bars at this hour of this weekday, counted over the last eight weeks. **This is also the answer to "is the market open right now"** — not from a calendar, but from whether this asset has actually been trading at this hour lately. A daily series is
falseat every hour but the one it publishes. weeks_seeninteger- How many of those eight weeks had a bar at this hour.
tradingis true from four. verdictstringlive— the bar is the moment.quiet— older, but inside this asset's ordinary gap: nothing has traded since and that is normal, so the figures are still current.late— past that gap: bars are missing and these figures are older than the question. **Say so wherever you show them.**none— no bar at or before the moment.momentMomentOut- The moment, with what was knowable then and what followed.
timestring- The moment itself, UTC, on a five-minute boundary.
thenThenOut- The market as it stood at that moment. Null where the history behind it is too short to measure.
afterAfterOut- What happened in the 32 hours after. Null until those hours have closed, so always null on the moment you asked about.
eventsEventOut[]- Events already public at that moment and no more than 24 hours old.
chartPricePoint[]- The price around it, one point every 30 minutes, from 72 hours before to 32 hours after.
timestring- When the bar closed, UTC.
closenumber- Its close.
unitstring- How a move in this asset is said:
%for a price,bpfor a rate or spread,ptsfor an index that is not a price. **Every figure below is counted in it.** The field names saypctonly because they shipped that way -- a rate'sret_24h_pctis basis points, and nothing else in this answer tells you so. disclaimerstring- What this answer is not.
GET/v1/after/{topic}1 answer
List every event of topic, most recent first, each with the data before and after it.
Parameters
topicstringrequired- The topic's slug, as /v1/topics gives it.
assetstring- Asset symbol. Defaults to
BTC. alikestring- Order by how alike each is to this moment (ISO, or 'now') instead of by date.
Returns
Every event of a topic, each with its own before and after. No summary across them.
unitstring- How a move in this asset is said:
%for a price,bpfor a rate or spread,ptsfor an index that is not a price. **Every figure below is counted in it.** The field names saypctonly because they shipped that way -- a rate'sret_24h_pctis basis points, and nothing else in this answer tells you so. topicTopicOut- The topic asked for.
slugstring- Pass this to /v1/after/{topic}.
labelstring- The topic in words.
countinteger- How many events of this topic are already known.
itemsAfterItem[]- Every event of it, most recent first, or most alike first where
alikeasked for that. No summary across them: read the moments. eventEventOut- The event.
momentMomentOut- The first five-minute boundary after it became known, with what was knowable then and what followed.
flat_atnumber- Where "did not move" began **at this event's own moment**, for
after.ret_24h_pct, inunit. It is per event on purpose: the yardstick it comes from is bounded to what had already happened, so one threshold for a list spanning 2017 to 2026 would judge the early events by what was usual later. Null where the yardstick could not reach that moment. similaritynumber- How alike this moment and the one
alikenamed are, where that was asked for. Absent otherwise. biggerBiggerOut[]- How much further this asset went after events of this topic than it usually goes in the same hours, one row per horizon. Empty where the measurement does not stand for this topic -- which is not the same as 'no bigger than usual'. Read
low..high, nottimesalone. minutesinteger- 사건 뒤 이 분 동안. 60 이면 한 시간.
timesnumber- 평소의 몇 배인가. 비율들의 중앙값.
lownumber- 95% 구간의 아래끝. 사건 날짜를 묶어 10,000번 부트스트랩.
highnumber- 95% 구간의 위끝.
ninteger- 이 수를 낸 사건의 수.
sincestring- 어느 시대를 쟀나 — 이 시각부터. 반감기로 가른다.
measured_atstring- 언제 재었나. 시대가 아직 안 끝났으면 사건이 쌓이며 수가 움직인다.
methodstring- 재는 법을 적은 문서. 결과를 보기 전에 박았다.
beforeAskedOut- The week before each event, counted the same way as
asked: how many had been rising into it, the median run-up, the worst. Null where no event has a yardstick for it. Read it withasked, never alone — the same release landing in a rising market and in a falling one is not the same precedent. ninteger- How many of the asked moments had this figure.
upinteger- How many ended above the flat threshold.
downinteger- How many ended below minus the flat threshold.
flatinteger- How many ended inside it: not a direction.
flat_atnumber- The threshold "did not move" was counted at, in the figure's own unit. It travels with the counts because two places computing it separately disagree: it is the larger of 0.05 (half the last digit printed, so nothing reads "0.0%" and is counted as a fall) and 3% of the yardstick's 5-95 width.
lownumber- The worst of them. A real past moment, not a percentile: over eight cases the "bottom 10%" is the minimum, and a precedent is something that happened rather than something computed.
midnumber- Their median.
highnumber- The best of them.
up_ratenumber- The share of past readings above
flat_at-- the base rate the count of risers has to beat. Counted at the same threshold as the count, which is why it is notshare_up: that field is measured above zero, and pairing it with a count measured aboveflat_atreads a small positive as a rise on one side of the comparison and as flat on the other. down_ratenumber- The same below minus
flat_at. up_expectednumber- How many would have risen at random:
nxup_rate. down_expectednumber- How many would have fallen at random:
nxdown_rate. chance_up_at_leastnumber- The chance of at least this many rising by luck, against the asset's own rate and never against a coin -- a coin flatters every count: six of eight is 0.145 against a coin and 0.194 against BTC's own 53.4%. **One tail**: it answers the sentence "{up} of {n} rose". Where a reader takes whichever side is larger, the two tails add, because no direction was chosen in advance.
chance_down_at_leastnumber- The same for the fallers.
askedAskedOut- The 24-hour outcomes counted, each against the yardstick of its own moment.
flat_athere is the median of the per-event thresholds; the tail is computed from every event's own base rate, not from one average (Poisson binomial), because what was usual in 2017 is not what was usual in 2026. Null where the figure has no direction or no yardstick. It is the 24-hour row ofafteras well, kept here because it shipped here. ninteger- How many of the asked moments had this figure.
upinteger- How many ended above the flat threshold.
downinteger- How many ended below minus the flat threshold.
flatinteger- How many ended inside it: not a direction.
flat_atnumber- The threshold "did not move" was counted at, in the figure's own unit. It travels with the counts because two places computing it separately disagree: it is the larger of 0.05 (half the last digit printed, so nothing reads "0.0%" and is counted as a fall) and 3% of the yardstick's 5-95 width.
lownumber- The worst of them. A real past moment, not a percentile: over eight cases the "bottom 10%" is the minimum, and a precedent is something that happened rather than something computed.
midnumber- Their median.
highnumber- The best of them.
up_ratenumber- The share of past readings above
flat_at-- the base rate the count of risers has to beat. Counted at the same threshold as the count, which is why it is notshare_up: that field is measured above zero, and pairing it with a count measured aboveflat_atreads a small positive as a rise on one side of the comparison and as flat on the other. down_ratenumber- The same below minus
flat_at. up_expectednumber- How many would have risen at random:
nxup_rate. down_expectednumber- How many would have fallen at random:
nxdown_rate. chance_up_at_leastnumber- The chance of at least this many rising by luck, against the asset's own rate and never against a coin -- a coin flatters every count: six of eight is 0.145 against a coin and 0.194 against BTC's own 53.4%. **One tail**: it answers the sentence "{up} of {n} rose". Where a reader takes whichever side is larger, the two tails add, because no direction was chosen in advance.
chance_down_at_leastnumber- The same for the fallers.
afterAfterWindowOut[]- The same events counted over more than one span: 4 hours and 24 hours. **Read both.** By 24 hours most releases have moved no more than an ordinary day does, so that window alone makes every event look like a coin toss; 4 hours is where a release shows. The pair is the answer -- what moved, and that it stopped mattering.
figurestring- The figure counted, named as it appears in each item's
after. minutesinteger- How long after each event this window measures.
askedAskedOut- The outcomes in this window, each against the yardstick of its own moment -- the same count as
asked, over a different span. Null where no event has a yardstick for it. disclaimerstring- What this answer is not.
GET/v1/paths1 answer
Get the price paths around a set of moments, ready to plot.
Parameters
atstring[]required- UTC times, up to 24: the moment searched and the ones it is compared with.
assetstring- Asset symbol. Defaults to
BTC. scalestring- One of 5m, 15m, 30m, 1h, 2h, 4h, 1d. Defaults to
15m. after_minutesinteger- How far past T; default 32 hours (longer: through an event ahead). Defaults to
1920. before_minutesinteger- How far behind each moment to reach; the scale's own window by default.
Returns
The price paths around a set of moments, ready to plot.
assetstring- The asset these paths are of.
unitstring- How a move in this asset is said:
%for a price,bpfor a rate or spread,ptsfor an index that is not a price. **Every figure below is counted in it.** The field names saypctonly because they shipped that way -- a rate'sret_24h_pctis basis points, and nothing else in this answer tells you so. scalestring- The window these paths are drawn at.
step_minutesinteger- Minutes between one point and the next.
window_minutesinteger- How far each path reaches before its moment.
after_minutesinteger- How far each path reaches after its moment.
pathsPathOut[]- One path per moment asked for, in the order asked.
timestring- The moment this path is centred on, UTC.
base_closenumber- The close at the moment, which every percent here is measured from. Null where the window behind it is incomplete.
offsetsinteger[]- Minutes from the moment to each point. 0 and below is the window before; above 0 is what followed.
pctnumber[]- Each point in percent from
base_close, lined up withoffsets. Paths of different sizes can be plotted on top of each other. high_pctnumber[]- How far inside each bucket the price went up, on the same base. Empty for assets whose bar is a daily close with no inside to it.
low_pctnumber[]- The same, downward.
open_pctnumber[]- Where each bucket opened, on the same base. Empty for assets whose bar is a daily close.
vol_xnumber[]- Volume in each bucket as a multiple of this path's own normal: the median volume of the window behind the moment. 1.0 is an ordinary bucket for that moment, 3.0 is three times it. Empty for assets whose bars carry no volume.
eventsPathEventOut[]- Events that fall along this path, with where they fall.
GET/v1/normal1 answer
Get the usual range of these figures for an asset.
Parameters
atstring[]required- UTC times, up to 24: the moments to read against the yardstick.
known_bystringrequired- Read the yardstick as it stood at this moment, never later.
assetstring[]- Asset symbol. Repeat it to ask for up to 24 at once, which costs one request instead of one per asset. Defaults to
BTC. scalestring- One of 5m, 15m, 30m, 1h, 2h, 4h, 1d: which aftermath figure is the one drawn. Defaults to
15m. barsinteger- How many buckets after a moment the window rows measure. The engine's own window is 144; a list that reads further says so in /v1/search's window_bars. Defaults to
144.
Returns
The yardsticks alone, for a set of moments that was not found by a search.
assetstring- The asset the yardsticks are for.
unitstring- How a move in this asset is said:
%for a price,bpfor a rate or spread,ptsfor an index that is not a price. **Every figure below is counted in it.** The field names saypctonly because they shipped that way -- a rate'sret_24h_pctis basis points, and nothing else in this answer tells you so. normalNormalOut[]- One band per figure asked for.
figurestring- Which figure this band is for, named as it appears in a moment: "then.ret_24h_pct", "after.ret_32h_pct".
minutesinteger- The stretch of time the figure measures, in minutes. The window rows ("after.window_5m" and its halves) run as long as the answer was drawn at, which depends on the answer, so read this rather than assuming the engine's own 144 buckets.
lownumber- The 5th percentile of that figure for this asset: the low edge of ordinary.
midnumber- The median. Where nothing happening actually sits, which is rarely zero.
highnumber- The 95th percentile: the high edge of ordinary.
flat_atnumber- Where "it did not move" starts for this figure, in the asset's unit: the floor the screen prints (half of the last digit) or a share of this band, whichever is larger. Always present — a row exists only where the band does. Read it rather than deriving one, so the engine and the screen cannot count "flat" differently;
asked.flat_atis the same number where that object exists, and on a topic's rows it is the median of each event's own. readingsinteger- How many past moments the band was measured from.
since_daysinteger- How far back those readings reach, in days.
share_upnumber- Of the same readings, the share above zero: the base rate a count of "how many rose" has to beat. A coin is the wrong null, and how wrong depends on the horizon — bitcoin closed above its start 53.5% of the time over 36 hours and 67.8% of the time over 288 days, measured over its whole history — so this comes with each figure rather than being assumed once. For what a count is worth against it, read
asked.chance_up_at_least, which computes it; this field is the base rate and not the answer. Direction-free figures carry it too and it means nothing there. spreadnumber- For the set of moments asked about: its widest reading minus its narrowest. Where
askedis present this is exactlyasked.high - asked.low— the same reading, not a second measurement — and on the rows whereaskedis withheld (then.*, and figures with no direction) it is the only thing here that describes the answer rather than the asset. raritynumber- Where that spread sits among random sets of the same size, 0 to 1. 0 holds together, 0.5 is ordinary, 1 is scattered.
eachnumber[]- The same reading for each moment in
matches, in that order, or null where that moment's window did not finish. Present on the window rows;askedcounts exactly the non-null ones. askedAskedOut- The moments asked about, counted against
share_up. Null where there was nothing to count or no base rate to count it against -- a count without its base rate is not shipped. assetsAssetNormalsOut[]- One block per asset asked for, in the order asked. Repeat
assetin the query to fill this.asset,unitandnormalabove repeat the first of them, so a client written against one asset keeps reading them. assetstring- The symbol these yardsticks are for.
unitstring- How a move in it is said:
%,bporpts. Every figure below is counted in it. normalNormalOut[]- One band per figure.
Endpoints that are free
These tell you what the data is and what is in it. They need no key and count against nothing, because they describe the catalogue instead of reading from it.
GET/v1/assetsfree
List the assets a search can be about. The measures beside them are not searched.
Returns
What can be asked about, and in what words.
assetsAssetOut[]- Every asset, with where its data starts and ends.
symbolstring- What to pass as
asset, e.g.BTC. namestring- Its name in words.
kindstringcrypto,index,commodityorfx.unitstring- How a move in this one is said:
%for a price,bpfor a rate or spread,ptsfor an index that is not a price. **Read it before labelling any figure.** Everyret_*andwindow_*number for this asset is counted in it, and the field names saypctonly because they shipped that way -- a rate'sret_24h_pctis basis points. Dividing by a yield near zero measures the denominator: the two-year stood at 0.14 on 2021-03-01, and six basis points drawn as a percentage came out a 42.9% swing. aliasesstring- Words a question may name it by.
sourcestring- Where its bars come from.
livestring- Where the price can be watched between bars, as "venue:symbol". Null where nothing streams it. A search only ever reads closed bars.
sampleboolean- True where its prices are synthetic rather than market data.
startstring- The first bar held for it, which is where
thenandaftercan be measured from. **It is not where a search can begin** — readsearchable_fromfor that. The two were the only dates here andnowsays "searched", so the pair read as a searchable range: for bitcoin that overstated it by four years and seven months. searchable_fromstring- The first moment a search can stand: where the compared window is first whole, floored by the event calendar (nothing before 2017-08-17 is a precedent, only a shape). Earlier than this the engine answers with no matches rather than an error, so this is the date to offer a reader, not
start. It is notstartplus the window: a series whose market closes has gaps, and the two-year's window is not whole until 2018-03-01 against 2017-12-24 by arithmetic. Absent only from an engine built before this field. nowstring- The latest moment it can be searched at.
spansobject- The scales this asset can honestly be drawn at, and how many minutes a path at each one covers.
scalesstring[]- The windows a path can be drawn at. A scale changes how far a returned path reaches, not which moments are found.
conditionsstring[]- Conditions /v1/when understands, written the way they are said.
GET/v1/topicsfree
List the kinds of event with their members, so you can ask what happened after halvings.
Parameters
qstring- A question such as 'after rate cuts'.
Returns
Every kind of event that can be asked for.
topicsTopicOut[]- One row per topic.
slugstring- Pass this to /v1/after/{topic}.
labelstring- The topic in words.
countinteger- How many events of this topic are already known.
GET/v1/eventsfree
List the events already known by the end of the data, most recent first.
Parameters
qstring- Words that must all appear in the name or aliases.
kindstring- fomc, cpi, crypto, macro or market.
sincestring- Known at or after (UTC).
untilstring- Known at or before (UTC).
limitinteger- How many events to return. Defaults to
10.
Returns
Events, newest first.
eventsEventOut[]- The events that matched.
slugstring- Stable id for the event, e.g.
cpi-2026-09. Use it with /v1/events/{slug}. kindstring- What sort of event it is, e.g.
cpi,fomc,halving. namestring- The event in words, as a reader would name it.
known_atstring- When it became public knowledge, UTC. Searches treat the event as unknown before this instant.
precisionstring- How exactly
known_atis dated:minutefor a timed release,dayfor one known only to the day. daystring- For
precision: day, the local date the event concerns. sourcestring- Who published it.
topicsstring[]- The topics it belongs to. Pass one to /v1/after/{topic} to get every event of that kind.
howstring- How this event reached the record, which bounds what a measurement over it can mean.
set: its date and nature were public beforehand (a CPI release, an expiry, a halving, an announced launch), so it was picked regardless of outcome.decided: its date was public but the label is the outcome (approved, struck down), so these compare only among themselves.noticed: it is in the record because it happened, or because it moved (hacks, failures, crash days) -- cause and effect run the other way, and these are not evidence that the event moved the market.
GET/v1/events/{slug}free
Get one event by its slug, with the time it became public and its source.
Parameters
slugstringrequired- The event's stable id, as /v1/events gives it.
Returns
One scheduled or published event, and the instant it became knowable.
slugstring- Stable id for the event, e.g.
cpi-2026-09. Use it with /v1/events/{slug}. kindstring- What sort of event it is, e.g.
cpi,fomc,halving. namestring- The event in words, as a reader would name it.
known_atstring- When it became public knowledge, UTC. Searches treat the event as unknown before this instant.
precisionstring- How exactly
known_atis dated:minutefor a timed release,dayfor one known only to the day. daystring- For
precision: day, the local date the event concerns. sourcestring- Who published it.
topicsstring[]- The topics it belongs to. Pass one to /v1/after/{topic} to get every event of that kind.
howstring- How this event reached the record, which bounds what a measurement over it can mean.
set: its date and nature were public beforehand (a CPI release, an expiry, a halving, an announced launch), so it was picked regardless of outcome.decided: its date was public but the label is the outcome (approved, struck down), so these compare only among themselves.noticed: it is in the record because it happened, or because it moved (hacks, failures, crash days) -- cause and effect run the other way, and these are not evidence that the event moved the market.
GET/v1/events/nextfree
Get the next scheduled event after the end of the data.
Returns
One scheduled or published event, and the instant it became knowable.
slugstring- Stable id for the event, e.g.
cpi-2026-09. Use it with /v1/events/{slug}. kindstring- What sort of event it is, e.g.
cpi,fomc,halving. namestring- The event in words, as a reader would name it.
known_atstring- When it became public knowledge, UTC. Searches treat the event as unknown before this instant.
precisionstring- How exactly
known_atis dated:minutefor a timed release,dayfor one known only to the day. daystring- For
precision: day, the local date the event concerns. sourcestring- Who published it.
topicsstring[]- The topics it belongs to. Pass one to /v1/after/{topic} to get every event of that kind.
howstring- How this event reached the record, which bounds what a measurement over it can mean.
set: its date and nature were public beforehand (a CPI release, an expiry, a halving, an announced launch), so it was picked regardless of outcome.decided: its date was public but the label is the outcome (approved, struck down), so these compare only among themselves.noticed: it is in the record because it happened, or because it moved (hacks, failures, crash days) -- cause and effect run the other way, and these are not evidence that the event moved the market.
GET/v1/events/upcomingfree
List the scheduled events due in the next days, soonest first.
Parameters
daysinteger- How far ahead to look, in days. Defaults to
30. limitinteger- How many events to return. Defaults to
5.
Returns
Events, newest first.
eventsEventOut[]- The events that matched.
slugstring- Stable id for the event, e.g.
cpi-2026-09. Use it with /v1/events/{slug}. kindstring- What sort of event it is, e.g.
cpi,fomc,halving. namestring- The event in words, as a reader would name it.
known_atstring- When it became public knowledge, UTC. Searches treat the event as unknown before this instant.
precisionstring- How exactly
known_atis dated:minutefor a timed release,dayfor one known only to the day. daystring- For
precision: day, the local date the event concerns. sourcestring- Who published it.
topicsstring[]- The topics it belongs to. Pass one to /v1/after/{topic} to get every event of that kind.
howstring- How this event reached the record, which bounds what a measurement over it can mean.
set: its date and nature were public beforehand (a CPI release, an expiry, a halving, an announced launch), so it was picked regardless of outcome.decided: its date was public but the label is the outcome (approved, struck down), so these compare only among themselves.noticed: it is in the record because it happened, or because it moved (hacks, failures, crash days) -- cause and effect run the other way, and these are not evidence that the event moved the market.
GET/v1/pricesfree
Get closes at every step boundary: the long chart a moment is picked from.
Parameters
assetstring- Asset symbol. Defaults to
BTC. stepstring- 5m, 15m, 30m, 1h, 4h or 1d. Defaults to
1d. sincestring- From (UTC).
untilstring- To (UTC).
Returns
A plain price series.
assetstring- The asset.
unitstring- How a move in this asset is said:
%for a price,bpfor a rate or spread,ptsfor an index that is not a price. **Every figure below is counted in it.** The field names saypctonly because they shipped that way -- a rate'sret_24h_pctis basis points, and nothing else in this answer tells you so. stepstring- How far apart the points are:
5m,15m,30m,1hor1d. pointsPricePoint[]- The prices, oldest first.
timestring- When the bar closed, UTC.
closenumber- Its close.
GET/v1/barsfree
Get open, high, low, close and volume at every step, and how current the last one is.
Parameters
assetstring- Asset symbol. Defaults to
BTC. stepstring- 5m, 15m, 30m, 1h, 4h or 1d. Defaults to
1d. sincestring- From (UTC).
untilstring- To (UTC). Left out, the bars run to now.
Returns
Open, high, low, close and volume at a fixed step, and how current the last one is.
assetstring- The asset.
unitstring- How a move in this asset is said:
%,bporpts. stepstring- How long each bar is:
5m,15m,30m,1h,4hor1d. as_ofAsOfOut- How current the data is at the end of the window —
until, or now when it is left out.baris when the newest bar held **closed**, on the same clock as each bar'stime: when it equals the last bar'stime, that bar is the newest and it has closed. At a step longer than the bars underneath (an hour of five-minute bars), the list ends at the last whole step andbarcan be later. **Readverdictbefore putting a time beside the last close.** barstring- The last bar at or before
asked. Every figure here was read from it. askedstring- The moment asked for, floored to the five-minute grid.
behind_minutesinteger- How far
askedsits pastbar. usual_minutesinteger- The longest this asset went without a bar in the 90 days before
bar. For anything that closes, its weekend sets this. tradingboolean- Whether this asset usually publishes bars at this hour of this weekday, counted over the last eight weeks. **This is also the answer to "is the market open right now"** — not from a calendar, but from whether this asset has actually been trading at this hour lately. A daily series is
falseat every hour but the one it publishes. weeks_seeninteger- How many of those eight weeks had a bar at this hour.
tradingis true from four. verdictstringlive— the bar is the moment.quiet— older, but inside this asset's ordinary gap: nothing has traded since and that is normal, so the figures are still current.late— past that gap: bars are missing and these figures are older than the question. **Say so wherever you show them.**none— no bar at or before the moment.barsBar[]- The bars, oldest first. A bar still forming is left out.
timestring- When the step closed, UTC. Every figure was known by then.
opennumber- Its first bar's open.
nullfor an asset kept at one value a day or a week: there is only the close. highnumber- The highest it traded.
nullas foropen. lownumber- The lowest it traded.
nullas foropen. closenumber- Its last bar's close — the same number /v1/prices gives at this time.
volumenumber- How much traded, in the asset's own unit (BTC for BTC).
nullfor an asset kept at one value a day or a week: a published rate has no volume, and a zero would read as nothing traded.
GET/v1/newsfree
List government headlines known in the window, most recent first, with title, source, time and link.
Parameters
untilstring- Known by (UTC); default now.
sincestring- Known from (UTC); default 72 hours before until.
limitinteger- How many headlines to return. Defaults to
20. qstring- Words the title must have.
Returns
Headlines over a stretch of time.
sincestring- The start of the stretch, UTC.
untilstring- Its end, UTC.
headlinesHeadlineOut[]- What was published in it, newest first.
sourcestring- Who published it.
titlestring- The headline.
urlstring- Where to read it.
published_atstring- The publisher's own time, UTC.
known_atstring- When it could first be known: when we saw it live, or the publisher's time where we did not.
publisher_timeboolean- True where
known_atis the publisher's claim rather than a first sighting of ours.
GET/v1/acrossfree
Get every other asset and measure as it stood at each moment.
Parameters
atstring[]required- UTC times, up to 24: the moments to read the other assets at.
assetstring- Leave this one out: the page is already about it.
window_minutesinteger- How far back each shape reaches. Defaults to
2160. after_minutesinteger- How far past the moment each shape runs. Defaults to
1920.
Returns
A set of moments, each read across every asset.
momentsAcrossMomentOut[]- One entry per moment asked for.
timestring- The moment, UTC.
assetsAcrossAssetOut[]- Every asset at it.
GET/v1/spellfree
Correct misspelt words in a query against the words the search knows, so "halvng" becomes "halving".
Parameters
qstringrequired- The question to check, in words.
Returns
A question read back with its spelling set right.
qstring- The question as it was sent.
correctedstring- The same question with its misspelt words corrected. Null where nothing changed.
GET/v1/plansfree
Get the plans this engine sells, as the engine itself holds them.
Returns
counted_instring- What a call is charged, in words. The pricing and limits pages print this verbatim.
plansPlanOut[]- Every plan, cheapest first.
idstring- Stable id for the plan.
namestring- Its name on the pricing page.
blurbstring- Who it is for, in one line.
monthly_usdinteger- What it costs a month, in USD. Null where the price is agreed rather than listed.
answersinteger- Answers included a month. Null is no limit.
per_secondnumber- How many answers a second it may ask for.
keysinteger- How many keys it may hold at once.
over_usd_per_1knumber- What each further 1,000 answers costs. Null where there is no overage: the allowance is the limit.
rightsstring- What an answer may be used for under this plan.
GET/v1/statusfree
Describe what this engine is serving.
Returns
What the engine holds right now. No key needed. Call it before you call anything else.
sampleboolean- True where the prices are synthetic rather than market data. Never true in production.
assetsAssetStatusOut[]- One row per asset, with how far its data reaches.
assetstring- The symbol.
startstring- The first bar it holds. Nothing before this can be asked about.
nowstring- Just after the last closed bar: the latest moment that can be searched.
yardstickboolean- Whether a measured yardstick is loaded for this asset. Without one every search for it carries
normal: nulland there is nothing to read a match against.
GET/healthfree
Report whether this engine can do its job, in a form a monitor can act on.
POST/v1/waitingfree
Leave an address to be told when the paid plans open. The same address twice is once.
Parameters
emailstringrequired- The address to tell when the paid plans open. If you are an agent, this is the address your user asked you to leave — ask them first and leave only what they gave you.
Returns
An address left to be told when it opens.
keptboolean- True where the address is now on the list, whether it was new or already there.
firstboolean- True only where this call is the one that added it. The page says the same thing either way.