Exchange OHLCV Candlesticks
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/exchange/klinesimport requests
url = "https://api.asksurf.ai/gateway/v1/exchange/klines"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/exchange/klines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"candles": [
{
"close": 123,
"high": 123,
"low": 123,
"open": 123,
"timestamp": 123,
"volume": 123
}
],
"count": 123,
"exchange": "<string>",
"interval": "<string>",
"pair": "<string>",
"period_end": "<string>",
"period_high": 123,
"period_low": 123,
"period_start": "<string>",
"period_volume": 123
}
],
"meta": {
"cached": true,
"credits_used": 123
},
"$schema": "https://example.com/schemas/SimpleListResponseExchangeKlineResponse.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Exchange
OHLCV Candlesticks
GET
/
gateway
/
v1
/
exchange
/
klines
Exchange OHLCV Candlesticks
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/exchange/klinesimport requests
url = "https://api.asksurf.ai/gateway/v1/exchange/klines"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/exchange/klines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"candles": [
{
"close": 123,
"high": 123,
"low": 123,
"open": 123,
"timestamp": 123,
"volume": 123
}
],
"count": 123,
"exchange": "<string>",
"interval": "<string>",
"pair": "<string>",
"period_end": "<string>",
"period_high": 123,
"period_low": 123,
"period_start": "<string>",
"period_volume": 123
}
],
"meta": {
"cached": true,
"credits_used": 123
},
"$schema": "https://example.com/schemas/SimpleListResponseExchangeKlineResponse.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}