---
title: Price History
description: Analyze price trends over time
url: https://docs.intuition.systems/docs/v1/graphql-api/examples/price-history
markdown_url: https://docs.intuition.systems/docs/v1/graphql-api/examples/price-history.md
version: V1
llms_index: https://docs.intuition.systems/docs/v1/llms.txt
---

Analyze share price trends using time-series data.

## Query

    id: 'price-trends',
    title: 'Daily Price Trends',
    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: {
      termId: '0x91815a7b50440bb9ff022f5d02c8b8d41154a71eb473b45ca4bf4e1f833d7512',
      curveId: '1',
      days: 30

];
