Skip to main content
You're reading the V1 docs. They cover the first generation of Intuition: the intuition-ts packages and the intuition-rs services. New development happens in V2. Open the V2 docs
Version: V1

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