Skip to main content

Get the yield curve

queryyieldCurve[YieldCurvePoint!]!

Returns one point per maturity for a market. supplyRate and borrowRate are null at maturities with no resting offer on that side; midRate falls back to whichever side is quoted.

Arguments

inputYieldCurveInput!required
tenorMarketIdString!required
takerAddress

Response

timestampBigInt!
supplyRateFloat
borrowRateFloat
midRateFloat
Try it
Query
Variables
Example response
{
"data": {
"yieldCurve": [
{
"timestamp": 1787788800,
"supplyRate": 0.002560927174848,
"borrowRate": 0.002512906771536,
"midRate": 0.0025369169731920002
},
{
"timestamp": 1790208000,
"supplyRate": 0.010918175438592,
"borrowRate": 0.017623608892992,
"midRate": 0.014270892165791998
},
{
"timestamp": 1792627200,
"supplyRate": null,
"borrowRate": 0.030114326151648,
"midRate": 0.030114326151648
},
{
"timestamp": 1795046400,
"supplyRate": null,
"borrowRate": 0.047697757739136,
"midRate": 0.047697757739136
},
{
"timestamp": 1797465600,
"supplyRate": 0.044762321674224,
"borrowRate": null,
"midRate": 0.044762321674224
}
]
}
}