borrowLendReserveState
Returns the borrow/lend reserve state for a single token by its token index.
Field
Type
Description
type
string
Must be "borrowLendReserveState"
token
int
Token index (required)
Request
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "borrowLendReserveState",
"token": 0
}'import requests
import os
import json
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'borrowLendReserveState',
'token': 0
},
headers={
'Authorization': f'Bearer {os.environ["HYDROMANCER_API_KEY"]}',
'Content-Type': 'application/json'
}
)
print(json.dumps(response.json(), indent=2))Response Fields
Field
Type
Description
borrowYearlyRate
string
Annualized borrow rate
supplyYearlyRate
string
Annualized supply rate
balance
string
Reserve balance
utilization
string
Utilization ratio (borrowed / supplied)
oraclePx
string
Oracle price of the token
ltv
string
Loan-to-value ratio
totalSupplied
string
Total supplied to the reserve
totalBorrowed
string
Total borrowed from the reserve
Last updated