Example: Price History
Analyze share price trends using time-series data.
Queryβ
Query
query GetPriceTrends($termId: String!, $curveId: numeric!, $days: Int!) {
share_price_change_stats_daily(
where: {
term_id: { _eq: $termId }
curve_id: { _eq: $curveId }
}
order_by: { bucket: desc }
limit: $days
) {
bucket
first_share_price
last_share_price
difference
change_count
}
}Variables
Click "Run Query" to execute the GraphQL query and see results