curl --request GET \
--url https://api.kamino.finance/benchmark-rates/sofr/historyconst options = {method: 'GET'};
fetch('https://api.kamino.finance/benchmark-rates/sofr/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/benchmark-rates/sofr/history"
response = requests.get(url)
print(response.text)false[
{
"date": "2024-01-10",
"rate": "1234.56789",
"index": "1234.56789",
"avg30d": "1234.56789",
"avg90d": "1234.56789",
"avg180d": "1234.56789"
}
]{
"error": "Invalid query request",
"details": [
{
"code": "invalid_union",
"errors": [
[
{
"code": "custom",
"path": [],
"message": "Invalid date string"
}
],
[
{
"expected": "number",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected number, received string"
}
]
],
"path": [
"start"
],
"message": "Invalid input"
}
]
}{
"error": "An internal error occurred"
}Get SOFR rate history
Returns daily SOFR rates published by the New York Fed from 2023 onwards, including the compounded SOFR index and 30/90/180-day compounded averages. The rate can be null for the latest date because the index is published one business day ahead of the rate. Supports filtering by date range (whole days, inclusive).
curl --request GET \
--url https://api.kamino.finance/benchmark-rates/sofr/historyconst options = {method: 'GET'};
fetch('https://api.kamino.finance/benchmark-rates/sofr/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/benchmark-rates/sofr/history"
response = requests.get(url)
print(response.text)false[
{
"date": "2024-01-10",
"rate": "1234.56789",
"index": "1234.56789",
"avg30d": "1234.56789",
"avg90d": "1234.56789",
"avg180d": "1234.56789"
}
]{
"error": "Invalid query request",
"details": [
{
"code": "invalid_union",
"errors": [
[
{
"code": "custom",
"path": [],
"message": "Invalid date string"
}
],
[
{
"expected": "number",
"code": "invalid_type",
"path": [],
"message": "Invalid input: expected number, received string"
}
]
],
"path": [
"start"
],
"message": "Invalid input"
}
]
}{
"error": "An internal error occurred"
}Query Parameters
Date input (ISO 8601 string or epoch in ms)
"2024-01-01T00:00:00.000Z"
Date input (ISO 8601 string or epoch in ms)
"2024-01-01T00:00:00.000Z"
Response
OK
Effective date of the rate (as published by the New York Fed)
"2024-01-10"
Daily SOFR rate in percent, null when not yet published for the date
"1234.56789"
SOFR compounded index
"1234.56789"
30-day compounded average SOFR in percent
"1234.56789"
90-day compounded average SOFR in percent
"1234.56789"
180-day compounded average SOFR in percent
"1234.56789"