Skip to content

The subgraph tracks xCVP price and total CVPMaker/PVP asset value.

Notifications You must be signed in to change notification settings

powerpool-finance/xcvp-subgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PowerPool xCVP

Example query

{
  info(id: "LATEST") {
    lastPriceTick
    lastVolumeTick
    totalPriceTicks
    totalVolumeTicks
  }
  priceTicks(first: 5, orderBy: timestamp, orderDirection: desc) {
    id
    cvpPrice
    xcvpPrice
    timestamp
  }
  volumeTicks(first: 5, orderBy: timestamp, orderDirection: desc) {
    id
    totalVolume
    timestamp
  }
}

Deploying mainnet subgraph

Login into Graph (ask the admin for access token)

graph auth https://api.thegraph.com/deploy/ <ACCESS_TOKEN>

Deploy the compiled subgraph.yaml:

yarn run deploy-mainnet

About

The subgraph tracks xCVP price and total CVPMaker/PVP asset value.

Topics

Resources

Stars

Watchers

Forks