API Documentation


Market

Examples | Type Definition

Metadata regarding a single trading pair on an exchange. A market is accessed via the intersection of an exchangeSymbol, baseSymbol, and quoteSymbol. A shorthand marketSymbol can be used instead in the format exchangeSymbol:baseSymbol/quoteSymbol. If a marketSymbol is provided, all three must be present.

A single market holds market metadata and several useful sub-objects.

Examples

Binance:BTC/USDT with ticker

query market {
  market(marketSymbol: "binance:btc/usdt") {
    marketSymbol
    ticker {
      percentChange
      lastPrice
      lowPrice
      highPrice
      baseVolume
      quoteVolume
    }
  }
}

Binance:BTC/USDT with last 30 days OHLCV

query market {
  market(marketSymbol: "binance:btc/usdt") {
    marketSymbol
    ohlcv(resolution: _1d, limit: 30)
  }
}