Skip to main content
GET
/
markets
/
{market_address}
/
candles
Get candles for a market
curl --request GET \
  --url https://api-testnet.gte.xyz/v1/markets/{market_address}/candles
[
  {
    "timestamp": 123,
    "open": 123,
    "high": 123,
    "low": 123,
    "close": 123,
    "volume": 123
  }
]

Path Parameters

market_address
string
required

EVM address

Query Parameters

interval
enum<string>
required

Interval of the candle

Available options:
1s,
15s,
30s,
1m,
2m,
3m,
5m,
10m,
15m,
20m,
30m,
1h,
4h,
1d,
1w
startTime
integer<int64>
required
endTime
integer<int64>

If not supplied, the current time will be used

limit
integer<uint>
default:500
Required range: 1 <= x <= 1000

Response

List of candles

timestamp
integer<int64>
required

Start time of the candle in milliseconds

open
number<double>
required

Open price of the candle (in quote asset)

high
number<double>
required

High price of the candle (in quote asset)

low
number<double>
required

Low price of the candle (in quote asset)

close
number<double>
required

Close price of the candle (in quote asset)

volume
number<double>
required

Volume of the candle (in base asset)