CHARTS API
Retrieve historical OHLCV price bars for supported symbols. This endpoint costs 0.0004 USD per settled request.
GET /bars
/barsMethod
GET
Description
Returns price bars between two timestamps at a specified resolution.
Settlements
/, /solana, /base
Price
0.0004 USD
Query parameters
symbol
string
yes
Symbol code (for example BTC, ETH).
from
integer
yes
Unix timestamp (seconds) marking the inclusive start of the window.
to
integer
yes
Unix timestamp (seconds) marking the exclusive end of the window. Must be greater than from.
resolution
string
yes
Resolution such as 1, 5, 15, 60, 240, 1D, 1W, 1M.
removeLeadingNullValues
boolean (string)
no
true to strip leading null entries. Defaults to false.
Example request
curl -G "$NEURA_BASE_URL/bars" \
--data-urlencode "symbol=BTC" \
--data-urlencode "from=1705200000" \
--data-urlencode "to=1705286400" \
--data-urlencode "resolution=1D" \
-H "Accept: application/json" \
-H "X-402-Invoice: $INVOICE" \
-H "X-402-Payment-Proof: $PROOF"Response snapshot
{
"success": true,
"data": {
"bars": [
{ "t": 1705200000, "o": 45780.1, "h": 46200.4, "l": 45210.6, "c": 45950.2, "volume": 12876.44 },
{ "t": 1705286400, "o": 45950.2, "h": 46500.1, "l": 45580.3, "c": 46210.6, "volume": 14210.12 }
],
"symbol": "BTC",
"resolution": "1D",
"from": 1705200000,
"to": 1705286400,
"lastUpdated": "2025-01-15T13:00:00.000Z"
},
"timestamp": "2025-01-15T13:00:00.250Z"
}Validation tips
fromandtomust parse as integers; fractional or non-numeric values return400.Neura enforces
from < to. Reversed timestamps trigger a validation error.Avoid large window sizes at fine resolutions to reduce payload size; fetch multiple windows if needed.
See the Data Schemas section for field descriptions.
Last updated
