This subgraph dynamically tracks the data feeds and updates in the Tradegen data platform.
- aggregated data across data feeds,
- data on individual data feeds,
- data on individual candlesticks, orders, and requests
- historical data on each trading bot and VTE (virtual trading environment)
Make sure to update package.json settings to point to your own graph account.
Below are a few ways to show how to query the data-feeds 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.
Contains data feed count and request count by data feed type, as well as the total revenue generated across data feeds.
Contains data on a specific candlestick data feed. Tracks the data feed's asset (symbol and current price), timeframe, and candlestick history.
Contains data on a specific bot performance data feed. Tracks the data feed's trading bot address, usage fee, revenue, bot performance history, and data request history.
Contains data on a specific VTE (virtual trading environment) data feed. Tracks the data feed's VTE address, usage fee, reenue, VTE performance history, and data request history.
This query fetches aggredated data from all data feeds.
{
tradegens(first: 1) {
candlestickDataFeedCount
botPerformanceDataFeedCount
candlestickDataFeedUpdateCount
candlestickDataFeedRequestCount
totalRevenue
}
}