This subgraph dynamically tracks the pools and transactions in the Tradegen asset management platform.
- aggregated data across pools,
- data on individual pools,
- data on individual transactions,
- data on each user's positions and aggregated performance,
- data on each position in a pool,
- historical data on each pool and position
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 asset-management 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 aggregated data across all pools. This entity tracks the number of pools, total deposits, total withdrawals, total volume, and the total value locked.
Contains data on a specific pool. Tracks the pool's performance fee, token price, total supply, transactions, positions, and cost basis.
Contains data on a specific capped pool. Similar to the Pool entity, but also tracks seed price and max supply.
Tracks a pool's available assets, deposit assets, and performance fee.
Represents a unique wallet address. This entity tracks a user's deposits, withdrawals, positions, and managed pools.
This query fetches aggredated data from all pools, to give a view into how much activity is happening within the protocol.
{
registries(first: 1) {
poolCount
cappedPoolCount
totalVolume
totalValueLocked
}
}