Skip to content

Tradegen/vte-subgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Trading Environment Subgraph

Tradegen is a decentralized trading platform that focuses on asset management, algo trading, and virtual trading.

This subgraph dynamically tracks the creation of virtual trading environments (VTEs) and the protocol fees collected from creating VTEs. Most of the data for VTEs can be found in the data feeds subgraph.

Running Locally

Make sure to update package.json settings to point to your own graph account.

Queries

Below are a few ways to show how to query the virtual-trading-environments subgraph for data. The queries show most of the information that is queryable, but there are many other filtering options that can be used, just check out the querying api. These queries can be used locally or in The Graph Explorer playground.

Key Entity Overviews

VTERegistry

Tracks the number of virtual trading environments, the protocol fee for creating an environment, and the total fees collected.

VTE

Contains data on a specific virtual trading environment. Tracks the environment's owner, operator, contract address, and data feed address.

Example Queries

Querying Aggregated Data

This query fetches aggredated data from all VTEs, to give a view into how much activity is happening within the protocol.

{
  vteRegistries(first: 1) {
    numberOfVTEs
    collectedFees
  }
}

About

Subgraph for virtual trading environments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors