Query

query GetPredictionEventTopMarketsBars($eventId: String!, $from: Int!, $to: Int!) {
  predictionEventTopMarketsBars(
    input: {eventId: $eventId, from: $from, to: $to, resolution: hour12, limit: 5, rankByOutcome: outcome0, rankByOutcomeAttribute: lastPriceCT, rankDirection: DESC}
  ) {
    eventId
    predictionEvent {
      id
      question
    }
    marketBars {
      marketId
      predictionMarket {
        id
        label
        outcomeLabels
      }
      bars {
        t
        outcome0 {
          priceCollateralToken {
            c
          }
        }
      }
    }
  }
}

Response

loading...