Skip to main content

Collateral composition

Use this query to retrieve current collateral stats, daily averages, and time-series grouped by remaining term and on-chain tokens.

query CollateralComposition(
$from: String!
$to: String!
$customGroups: [CustomGroupInput!]
) {
CollateralCurrent {
eligibleTreasuries
nonEligibleTreasuries
remainingTerm
totalCash
totalTreasuries
yieldToMaturity
totalTokenCollateral
eligibleTokenCollateral
nonEligibleTokenCollateral
}

TreasuriesTimeSeries: CollateralTimeSeries(
from: $from
to: $to
groupBy: "remainingTerm"
customGroups: $customGroups
) {
definitions {
name
}
groups {
name
datapoints {
absoluteAmount
date
relativeAmount
averageYieldToMaturity
}
}
}

OnChainCollateralTimeSeries: CollateralTimeSeries(
from: $from
to: $to
groupBy: "token"
) {
definitions {
name
}
groups {
name
datapoints {
absoluteAmount
date
relativeAmount
nav
yieldToMaturity
tokenBalance
}
}
}
}

Parameters

  • from: start time (e.g., "2025-01-01")
  • to: end time (e.g., "2025-10-01")
  • customGroups: optional array of groups to bucket remaining terms

Example customGroups

{
name: "Short-term",
key: "remainingTerm",
values: ["0-1Y", "1-3Y"]
}

You can pass multiple groups to create custom buckets for the remainingTerm series.