Skip to content

GET /coins/{address}/candles

Price candles in USD from every trade on chain, continuous (a quiet interval is flat).

GET https://uprally.co/api/v1/coins/{address}/candles
NameInRequiredMeaning
addresspathyesThe coin’s contract address
tfqueryDefault 5m
limitqueryDefault 300
toqueryUnix seconds: the last candle; default now
FieldTypeRequiredMeaning
tokenstringyesA 0x address, lower case
tfstringyes
stepSecsintegeryes
columnsstring[]yes
candlesnumber[][]yes
morebooleanyes
indexedThroughBlocknumber or nullyes

Captured from the live API on Robinhood Chain, exactly as it was sent (long calldata shortened).

{
"token": "0x39dbed3a2bd333467115de45665cc57f813c4571",
"tf": "1h",
"stepSecs": 3600,
"columns": [
"time",
"open",
"high",
"low",
"close",
"volumeUsd"
],
"candles": [
[
1792112400,
0.3387750243601221,
0.34404727753270836,
0.3387750243601221,
0.34039681822239537,
850034.295744582
],
[
1792116000,
0.34039681822239537,
0.348267167771383,
0.3371571645799335,
0.337528254236828,
857390.3542841362
],
[
1792119600,
0.337528254236828,
0.3414283410222915,
0.3365714101879952,
0.3369495807578557,
331926.17017810984
]
],
"more": true,
"indexedThroughBlock": 89764062
}

Every error is { "error": { "code", "message", "fix"? } }. This endpoint can answer:

  • INVALID_ADDRESS: A field that must be a 0x address is not one; field says which.
  • INVALID_QUERY: A query parameter is out of range or malformed; field says which.
  • DATA_UNREACHABLE: The data behind this answer could not be read just now.