v1/getHistoricalOHLCV RPC Method - Crypto Market Data API
Parameters
symbol_id
string
REQUIRED
Loading...
period_id
string
REQUIRED
Loading...
time_start
string
REQUIRED
Loading...
time_end
string
REQUIRED
Loading...
limit
integer
Loading...
Returns
result
array
Loading...
time_period_start
string
Loading...
time_period_end
string
Loading...
time_open
string
Loading...
time_close
string
Loading...
price_open
integer
Loading...
price_high
integer
Loading...
price_low
integer
Loading...
price_close
integer
Loading...
volume_traded
integer
Loading...
trades_count
integer
Loading...
Request
1curl https://docs-demo.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "v1/getHistoricalOHLCV",6"params": [{7"symbol_id": "BITSTAMP_SPOT_BTC_USD",8"period_id": "1HRS",9"time_start": "2024-01-01T00:00:00Z",10"time_end": "2024-01-02T00:00:00Z",11"limit": 2412}],13"id": 1,14"jsonrpc": "2.0"15}'
1curl https://docs-demo.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "v1/getHistoricalOHLCV",6"params": [{7"symbol_id": "BITSTAMP_SPOT_BTC_USD",8"period_id": "1HRS",9"time_start": "2024-01-01T00:00:00Z",10"time_end": "2024-01-02T00:00:00Z",11"limit": 2412}],13"id": 1,14"jsonrpc": "2.0"15}'
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free