Vault Details
Fetch comprehensive vault statistics including shares, assets, price, and positions.
Query Structureβ
query GetVault($termId: String!, $curveId: numeric!) {
vault(term_id: $termId, curve_id: $curveId) {
term_id
curve_id
total_shares
total_assets
current_share_price
market_cap
position_count
}
}
Interactive Exampleβ
Query
query GetVaultStats($termId: String!, $curveId: numeric!) {
vault(term_id: $termId, curve_id: $curveId) {
term_id
curve_id
total_shares
total_assets
current_share_price
market_cap
position_count
positions_aggregate {
aggregate {
count
sum { shares }
avg { shares }
}
}
}
}Variables
Click "Run Query" to execute the GraphQL query and see results
Best Practicesβ
- Use composite key (term_id, curve_id) for lookup
- Include aggregates for statistics
- Cache market data as it updates frequently