Triple Terms
Query the triple_term view to get aggregate statistics for triple-term pairs. Each record links a triple's term to its counter-term with position and market cap data.
Query Structureβ
query GetTripleTerms($termId: String!, $limit: Int!) {
triple_terms(
where: { term_id: { _eq: $termId } }
order_by: { total_market_cap: desc }
limit: $limit
) {
term_id
counter_term_id
total_assets
total_market_cap
total_position_count
updated_at
term {
type
}
counter_term {
type
}
}
}
Response Fieldsβ
| Field | Type | Nullable | Description |
|---|---|---|---|
term_id | String | No | Term ID |
counter_term_id | String | No | Counter-term ID |
total_assets | numeric | No | Total assets across vaults |
total_market_cap | numeric | No | Combined market cap |
total_position_count | bigint | No | Total number of positions |
updated_at | timestamptz | No | Last update timestamp |
Relationshipsβ
| Field | Type | Description |
|---|---|---|
term | terms | Term entity |
counter_term | terms | Counter-term entity |
Single Lookupβ
query GetTripleTerm($termId: String!) {
triple_term(term_id: $termId) {
term_id
counter_term_id
total_assets
total_market_cap
total_position_count
}
}
Interactive Exampleβ
Query
query GetTripleTerms($limit: Int!) {
triple_terms(
order_by: { total_market_cap: desc }
limit: $limit
) {
term_id
counter_term_id
total_market_cap
total_position_count
updated_at
}
}Variables
Click "Run Query" to execute the GraphQL query and see results
Relatedβ
- Triple Vaults - Vault-level data for triples
- Counter Triples - Counter-triple relationships
- Single Triple - Query individual triples