Skip to content

List USD or JPY Klines​

GET
/v2/klines

Returns locally stored closed and active Klines in chronological order. CoinGecko-only historical candles have volume 0. Timestamps are Unix milliseconds; intervals use UTC boundaries.

Authorizations​

bearerAuth

Required when cp_auth.enabled=true. The token must have the oracle scope.

Type
HTTP (bearer)

Parameters​

Query Parameters

symbol*

Base asset symbol, e.g. BTC.

Type
string
Required
Example"BTC"
quote

Output currency; defaults to JPY.

Type
string
Valid values
"USD""JPY"
Default
"JPY"
interval*
Type
string
Required
Valid values
"1m""5m""15m""30m""1h""1d""1w""1M"
startTime

Inclusive Unix timestamp in milliseconds.

Type
integer
Format
"int64"
endTime

Inclusive Unix timestamp in milliseconds.

Type
integer
Format
"int64"
limit

Defaults to 500; maximum 1000.

Type
integer
Minimum
1
Maximum
1000
Default
500

Responses​

Array of [open_time_ms, open, high, low, close, volume, is_closed] rows.

application/json
JSON
[
  
[
  
  
[
  
  
  
1787961600000,
  
  
  
"100",
  
  
  
"102",
  
  
  
"99",
  
  
  
"101",
  
  
  
"12.5",
  
  
  
true
  
  
],
  
  
[
  
  
  
1787961660000,
  
  
  
"101",
  
  
  
"101",
  
  
  
"101",
  
  
  
"101",
  
  
  
"0",
  
  
  
true
  
  
]
  
]
]

Playground​

Authorization
Variables
Key
Value

Samples​