Market
OHLC
Historical open, high, low, close price for an asset during a given period.
GET
/v1/market/ohlc
x-invezo-api-key*
curl --request GET \
--url https://api.invezo.com/v1/market/ohlc \
--header 'x-invezo-api-key: <x-invezo-api-key>'
Query Parameters
pairrequired
string
asset symbol with base currency (example: btc-usd)
minrequired
int
start of the aggregate time window as a timestamp (example: 1168300800)
maxrequired
int
end of the aggregate time window as a timestamp (example: 1652486400)
intervalrequired
string
size of the time window (valid intervals: 5m, 1h, 1d, 1w, 1mo)
sort
string
sort the results by timestamp. asc will return results in ascending order (oldest to newest), desc will return results in descending order (newest to oldest). default value is asc
limit
int
limit the number of results returned, default is 5000 and max is 50000
{
"status": "OK",
"request_id": "",
"pair": "BTC-USD",
"result_count": 5000,
"data": [
{
"t": 1608854400,
"o": 23480.43491,
"h": 24786.33409,
"l": 23428.86903,
"c": 24710.55866
},
{
"t": 1608940800,
"o": 24711.22226,
"h": 26854.21774,
"l": 24496.99906,
"c": 26488.46616
},
...
]
}
curl --request GET \
--url https://api.invezo.com/v1/market/ohlc \
--header 'x-invezo-api-key: <x-invezo-api-key>'
{
"status": "OK",
"request_id": "",
"pair": "BTC-USD",
"result_count": 5000,
"data": [
{
"t": 1608854400,
"o": 23480.43491,
"h": 24786.33409,
"l": 23428.86903,
"c": 24710.55866
},
{
"t": 1608940800,
"o": 24711.22226,
"h": 26854.21774,
"l": 24496.99906,
"c": 26488.46616
},
...
]
}