Borrow/lend reserve history
curl --request POST \
--url 'https://api.hypedexer.com/info#borrowLendReserveHistory' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "borrowLendReserveHistory",
"token": 0,
"interval": "1h",
"limit": 2
}
'import requests
url = "https://api.hypedexer.com/info#borrowLendReserveHistory"
payload = {
"type": "borrowLendReserveHistory",
"token": 0,
"interval": "1h",
"limit": 2
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({type: 'borrowLendReserveHistory', token: 0, interval: '1h', limit: 2})
};
fetch('https://api.hypedexer.com/info#borrowLendReserveHistory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hypedexer.com/info#borrowLendReserveHistory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'type' => 'borrowLendReserveHistory',
'token' => 0,
'interval' => '1h',
'limit' => 2
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hypedexer.com/info#borrowLendReserveHistory"
payload := strings.NewReader("{\n \"type\": \"borrowLendReserveHistory\",\n \"token\": 0,\n \"interval\": \"1h\",\n \"limit\": 2\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hypedexer.com/info#borrowLendReserveHistory")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"borrowLendReserveHistory\",\n \"token\": 0,\n \"interval\": \"1h\",\n \"limit\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypedexer.com/info#borrowLendReserveHistory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"borrowLendReserveHistory\",\n \"token\": 0,\n \"interval\": \"1h\",\n \"limit\": 2\n}"
response = http.request(request)
puts response.read_body{
"token": 0,
"interval": "1h",
"history": [
{
"time": 1790409600000,
"token": 0,
"tokenName": "USDC",
"borrowYearlyRate": "0.05",
"supplyYearlyRate": "0.0279124045",
"balance": "208202451.005587",
"utilization": "0.6202756556",
"oraclePx": "1",
"ltv": "0",
"totalSupplied": "548298787.797238",
"totalBorrowed": "340096390.067647"
},
{
"time": 1790413200000,
"token": 0,
"tokenName": "USDC",
"borrowYearlyRate": "0.05",
"supplyYearlyRate": "0.0278340968",
"balance": "209209869.07949",
"utilization": "0.6185354843",
"oraclePx": "1",
"ltv": "0",
"totalSupplied": "548438471.178158",
"totalBorrowed": "339228655.390016"
}
]
}{
"error": "Invalid API key"
}Borrow/Lend
Borrow/lend reserve history
History of Hyperliquid’s borrow/lend reserves, sampled every minute from our own node since 2026-09-23. For the current state, use allBorrowLendReserveStates and borrowLendUserState.
tokenis the Hyperliquid token index (0USDC,150HYPE,197UBTC,268USDT0,360USDH); omit it for every reserve.- Without
interval, raw one-minute samples. Withinterval, one row per bucket carrying the last sample of the bucket, not an average;timeis then the bucket start. limitkeeps the most recent samples of the window;historyis returned oldest first.- Values are strings, as in
allBorrowLendReserveStates.
POST
/
info#borrowLendReserveHistory
Borrow/lend reserve history
curl --request POST \
--url 'https://api.hypedexer.com/info#borrowLendReserveHistory' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "borrowLendReserveHistory",
"token": 0,
"interval": "1h",
"limit": 2
}
'import requests
url = "https://api.hypedexer.com/info#borrowLendReserveHistory"
payload = {
"type": "borrowLendReserveHistory",
"token": 0,
"interval": "1h",
"limit": 2
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({type: 'borrowLendReserveHistory', token: 0, interval: '1h', limit: 2})
};
fetch('https://api.hypedexer.com/info#borrowLendReserveHistory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hypedexer.com/info#borrowLendReserveHistory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'type' => 'borrowLendReserveHistory',
'token' => 0,
'interval' => '1h',
'limit' => 2
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hypedexer.com/info#borrowLendReserveHistory"
payload := strings.NewReader("{\n \"type\": \"borrowLendReserveHistory\",\n \"token\": 0,\n \"interval\": \"1h\",\n \"limit\": 2\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hypedexer.com/info#borrowLendReserveHistory")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"borrowLendReserveHistory\",\n \"token\": 0,\n \"interval\": \"1h\",\n \"limit\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypedexer.com/info#borrowLendReserveHistory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"borrowLendReserveHistory\",\n \"token\": 0,\n \"interval\": \"1h\",\n \"limit\": 2\n}"
response = http.request(request)
puts response.read_body{
"token": 0,
"interval": "1h",
"history": [
{
"time": 1790409600000,
"token": 0,
"tokenName": "USDC",
"borrowYearlyRate": "0.05",
"supplyYearlyRate": "0.0279124045",
"balance": "208202451.005587",
"utilization": "0.6202756556",
"oraclePx": "1",
"ltv": "0",
"totalSupplied": "548298787.797238",
"totalBorrowed": "340096390.067647"
},
{
"time": 1790413200000,
"token": 0,
"tokenName": "USDC",
"borrowYearlyRate": "0.05",
"supplyYearlyRate": "0.0278340968",
"balance": "209209869.07949",
"utilization": "0.6185354843",
"oraclePx": "1",
"ltv": "0",
"totalSupplied": "548438471.178158",
"totalBorrowed": "339228655.390016"
}
]
}{
"error": "Invalid API key"
}Authorizations
Your Hypedexer API key, sent as Authorization: Bearer <key>. The X-API-Key: <key> header and the api_key query parameter are accepted as well.
Body
application/json
Available options:
borrowLendReserveHistory Token index; omit for every reserve
Required range:
x >= 0Inclusive, epoch milliseconds. Default: now minus 7 days
Inclusive, epoch milliseconds
Resampling; omit for raw one-minute samples
Available options:
1m, 5m, 15m, 1h, 4h, 1d Required range:
1 <= x <= 10000