A page of candles.
Answers a page of candles of one pool, oldest first, in the quote token or in US dollars. A bucket without trades or data is a gap, never an invented price.
/v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/candleschainstringrequiredThe pool's chain by its slug, for example base.
solanaethereumbaserobinhoodbscarchyperevmprotocolstringrequiredThe protocol, for example uniswap.
variantstringrequiredThe protocol version or pool type, for example v3.
deploymentstringrequiredThe deployment of the variant on the chain.
poolKeystringrequiredThe pool's address, id or account within its deployment.
intervalstringrequiredThe candle bucket, from 1s to 1d; a pool lists the ones it offers in intervals.
1s5s15s30s1m5m15m30m1h4h1dbeforeintegerOnly candles that open strictly before this Unix time in seconds; the newest when left out.
limitintegerHow many candles at most.
unitstringPrices in the pool's quote token, or in US dollars.
quoteusdSuccess.
intervalstringrequired1s5s15s30s1m5m15m30m1h4h1dsubjectobjectrequiredWhat the prices are of, and in what: quote is USD for a page in US dollars.
Show propertiesHide properties
basestringrequiredquotestringrequiredunitstringrequiredquoteusdusdCoveragestring | nullrequiredFor unit=usd: how much of the page has a USD price; none means every bucket is missing. Null in quote.
Show propertiesHide properties
stringnullitemsCandle[]requiredOldest first.
Show propertiesHide properties
CandletimeintegerrequiredA point in time: Unix time in whole seconds, UTC.
kindstringrequiredcoveragestringrequiredcompletepartialbasisstringrequiredswapprovideropenDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
highDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
lowDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
closeDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
volumeUsdUsdValuerequiredA US-dollar figure, measured.
Show propertiesHide properties
statusstringrequiredCurrent and from a trusted read.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredOlder than its freshness bound; shown with its age.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredResting on one source, not yet confirmed.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
sourcestringrequiredThe source the value rests on.
statusstringrequiredTwo sources disagree; both values are given.
valuesany[]requiredThe two values that disagree, each with its source.
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredNo value; never shown as zero.
reasonstringrequiredWhy there is no value; it is never zero.
timeintegerrequiredA point in time: Unix time in whole seconds, UTC.
kindstringrequiredcoveragestringrequiredtimeintegerrequiredA point in time: Unix time in whole seconds, UTC.
kindstringrequiredcoveragestringrequiredreasonstringrequiredno-datano-usd-priceolderinteger | nullrequiredThe before of the page of older candles, or null when the pool's history starts here.
Show propertiesHide properties
integernullasOfintegerrequiredA point in time: Unix time in whole seconds, UTC.
Invalid input; errors names the fields.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
Not found, or not yours.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
Too many requests; retryAfterSeconds says when to ask again.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
Server error.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
