UMA Protocol
Search…
Queries
Below are some sample queries you can use to gather information from UMA contracts.
You can build your own queries using a GraphQL Explorer and enter your endpoint to limit the data to exactly what you need.

Financial Contracts

{
financialContracts {
id
creator {
id
isRemoved
manager
}
deployer {
id
}
address
collateralToken {
id
name
}
collateralRequirement
expirationTimestamp
totalSyntheticTokensBurned
totalSyntheticTokensCreated
totalTokensOutstanding
cumulativeFeeMultiplier
globalCollateralizationRatio
rawTotalPositionCollateral
totalCollateralDeposited
totalCollateralWithdrawn
totalPositionCollateral
rawLiquidationCollateral
positions {
id
rawCollateral
collateral
tokensOutstanding
isEnded
}
liquidations {
id
status
amountWithdrawn
}
}
}

Liquidations

{
liquidations {
id
status
sponsor {
id
}
liquidator {
id
}
disputer {
id
}
liquidationId
tokensLiquidated
lockedCollateral
liquidatedCollateral
disputeBondAmount
disputeSucceeded
amountWithdrawn
events {
__typename
}
}
}

Price Requests

{
priceRequests {
id
isResolved
price
latestRound {
roundId
snapshotId
totalVotesRevealed
totalRewardsClaimed
totalSupplyAtSnapshot
votersAmount
votersClaimedAmount
tokenVoteParticipationRatio
tokenVoteParticipationPercentage
votersEligibleForRewardsRatio
votersEligibleForRewardsPercentage
votersClaimedRatio
votersClaimedPercentage
tokensClaimedRatio
tokensClaimedPercentage
winnerGroup {
votersAmount
totalVoteAmount
}
groups {
price
totalVoteAmount
won
votersAmount
}
}
time
identifier {
id
isSupported
}
committedVotes(first: 2) {
time
}
revealedVotes(first: 2) {
price
time
}
}
}
Copy link
On this page
Financial Contracts
Liquidations
Price Requests