Get candles from exchange

GET https://api.cryptohopper.com/v1/exchange/{exchange}/candle/{pair}/{time-frame}/{start-date}/{end-date}

Returns candles for one market of an exchange over a time range.

Served by a separate service, not by the main API backend, so the response format is not documented here yet. The API gateway checks the access-token before the request reaches that service.

Example request

curl "https://api.cryptohopper.com/v1/exchange/EXCHANGE/candle/PAIR/TIME_FRAME/START_DATE/END_DATE" \
  -H "access-token: YOUR_ACCESS_TOKEN"

Parameters

Headers

NameTypeRequiredDescription
access-token string Required The OAuth access token of the user.

Path parameters

NameTypeRequiredDescription
time-frame string Required Candle time frame.
exchange string Required Exchange key as returned by Get available exchanges, for example binance or kucoin. Case insensitive.
start-date string Required Start of the time range.
end-date string Required End of the time range.
pair string Required Market pair, in the exchange's own pair format as returned by Get available markets, for example BTCUSDT on Binance or BTC/USDT on KuCoin.

Response

The response is JSON. An example response for this endpoint is not documented yet.

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.