Share Price Changes
Track how share prices change over time.
Query Structureβ
query GetPriceHistory($termId: String!, $curveId: numeric!, $limit: Int!) {
share_price_changes(
where: {
term_id: { _eq: $termId }
curve_id: { _eq: $curveId }
}
order_by: { block_timestamp: desc }
limit: $limit
) {
share_price
block_timestamp
block_number
transaction_hash
}
}
Best Practicesβ
- Use time-series tables for aggregated data
- Filter by term and curve for specific vault
- Track price over time using
share_priceandblock_timestamp - Use daily/hourly stats for charts