Skip to main content

Get a position

queryfixedMarketPositionFixedMarketPosition

Returns a single fixed-rate position by its identifier.

Arguments

fixedMarketPositionIdString!required

Response

idString!
positionTypePositionType!
maturityBigInt
Maturity timestamp (seconds). Null for open-term positions (vault lend).
aprFloat
ltvBigInt
fixedMarketBalanceFixedMarketBalance!
Position balance in the position's loan token
principalBigInt!
Principal amount (adjustedCostBasis × units)
interestBalanceBigInt!
Accrued interest balance in loan token units
currentBalanceBigInt!
Current total balance (principal + interestBalance)
tokenToken!
symbolString!
decimalsInt!
marketTenorMarket
Market this fixedMarket belongs to. Use `market.whitelisted` to distinguish curated/listed markets from OTC. Null only when no market row exists for the fixedMarket (e.g. some synthetic positions).
idID!
loanTokenToken!
symbolString!
Try it
Query
Variables
Example response
{
"data": {
"fixedMarketPosition": {
"id": "15cfa98bba0f56af9ce489c4d14f78e1ef9d91a38ff101731ebd21dc490b279e",
"positionType": "BORROW",
"maturity": 1785369600,
"apr": 0.009147498187092096,
"ltv": null,
"fixedMarketBalance": {
"principal": 0,
"interestBalance": 0,
"currentBalance": 0,
"token": {
"symbol": "USDC",
"decimals": 6
}
},
"market": {
"id": "e7041445-c77d-4406-922a-1f7f33dd6ac0",
"loanToken": {
"symbol": "USDC"
}
}
}
}
}