{
"type": "subscribe",
"channel": "lendingRates"
}{
"type": "subscribed",
"channel": "lendingRates",
"contents": {
"isSnapshot": true,
"ratePpm": 80000,
"borrowIndex": "1002500000000",
"utilizationPpm": 673400,
"timestamp": 1780410803123456800,
"globalSequenceId": 9600000001
}
}{
"type": "channel_data",
"channel": "lendingRates",
"contents": {
"isSnapshot": false,
"ratePpm": 82000,
"borrowIndex": "1002600000000",
"utilizationPpm": 681200,
"timestamp": 1780414403123456800,
"globalSequenceId": 9600000123
}
}Lending rates
Endpoint:
wss://api.arcus.xyz/v1/ws— one socket multiplexes every channel and RPC request. Click Connect, then send the example subscribe message below to start receiving data.
Global channel (no id) that streams the exchange-wide borrow rate and cumulative borrow index — the lending analog of oraclePrices. Frames are pushed as the borrow index accrues, carrying the current annual borrow rate (ratePpm) and the global borrow index (borrowIndex, stringified integer at 1e12 scale).
A borrower’s live accrued interest = loanBalance × (borrowIndex − the account’s lastBorrowIndex) / 1e12, using the account channel’s lending fields.
On subscribe the last observed tick is replayed as a snapshot (isSnapshot: true); when no tick has been observed since server start the subscribe ack carries empty contents ({}) and the client picks up state from the first streaming frame.
{
"type": "subscribe",
"channel": "lendingRates"
}{
"type": "subscribed",
"channel": "lendingRates",
"contents": {
"isSnapshot": true,
"ratePpm": 80000,
"borrowIndex": "1002500000000",
"utilizationPpm": 673400,
"timestamp": 1780410803123456800,
"globalSequenceId": 9600000001
}
}{
"type": "channel_data",
"channel": "lendingRates",
"contents": {
"isSnapshot": false,
"ratePpm": 82000,
"borrowIndex": "1002600000000",
"utilizationPpm": 681200,
"timestamp": 1780414403123456800,
"globalSequenceId": 9600000123
}
}The last observed lending rate tick, replayed once on subscribe (isSnapshot: true). When no tick has been observed since server start, the subscribe ack carries empty contents ({}) instead.
Each frame carries the current annual borrow rate and the global cumulative borrow index. A borrower's live accrued interest = loanBalance × (borrowIndex − the account's lastBorrowIndex) / 1e12.
Was this page helpful?