LogoLogo
UMA HomeProjectsVoter DappOO Dapp
  • Welcome to UMA
  • What's New!
  • FAQs
  • Developers
    • Optimistic Oracle v2
      • Quick Start
      • Deposit Box
      • Event-Based Prediction Market
      • Insurance Claim Arbitration
    • Optimistic Oracle v3
      • Quick start
      • Data Asserter
      • Escalation Managers
      • Sandboxed Oracle Environment
    • oSnap
      • oSnap Quick Start
      • oSnap Deployment Tutorial
      • Snapshot Proposal + Transaction Tutorial
      • oSnap Proposal Verification
      • oSnap Configuration Parameters
      • Migrate to oSnap Safe App
      • Monitoring Bot Setup
    • Setting Custom Bond and Liveness Parameters
  • Protocol Overview
    • How does UMA's Oracle work?
    • Example Projects
    • DVM 2.0
    • DVM 2.0 FAQ
  • Community
    • Governance
      • The UMIP Process
      • DAO Proposals
  • Using UMA
    • Voting Walkthrough
      • Voter Guide
      • Voting Gas Rebates
    • Proposing Oracle Data
    • Disputing Oracle Data
    • Resolving Disputes
  • Verification Guide
    • Verification System
    • Polymarket
    • Across
    • oSnap
    • Y2K
    • Index
  • Resources
    • Network Information
      • New Network Requests
    • Audit & Bug Bounty Programs
    • Approved Price Identifiers
    • Approved Collateral Types
    • Subgraphs
      • Mainnet Voting Entities
      • Queries
    • Voting with a 2-Key Contract
    • Unsupported Contracts
    • Additional Resources
    • Glossary
    • Links
    • UMA TVS Methodology
Powered by GitBook
On this page
  • Financial Contracts
  • Liquidations
  • Price Requests

Was this helpful?

Edit on GitHub
Export as PDF
  1. Resources
  2. Subgraphs

Queries

PreviousMainnet Voting EntitiesNextVoting with a 2-Key Contract

Last updated 2 years ago

Was this helpful?

Below are some sample queries you can use to gather information from UMA contracts.

You can build your own queries using a 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
    }
  }
}
GraphQL Explorer