Skip to main content

getInstruments

Retrieve information about available cryptocurrency trading pairs and instruments.

Parameters

first
Int
Number of records to return (pagination)
after
String
Cursor for pagination
where
InstrumentFilterInput
Filter conditions for instruments

Response

instruments
Connection<Instrument>
Paginated connection of instrument records

Examples

query GetInstruments {
  instruments(first: 50) {
    nodes {
      id
      symbol
      name
      baseAsset
      quoteAsset
    }
    pageInfo {
      hasNextPage
      endCursor
    }
    totalCount
  }
}

getInstrumentPrices

Retrieve real-time price data for trading instruments.

Parameters

first
Int
Number of records to return (pagination)
after
String
Cursor for pagination
where
InstrumentPriceFilterInput
Filter conditions for instrument prices
order
InstrumentPriceSortInput
Sort order for results. Can sort by: symbol, price, volume, quantity, timestamp, exchange

Response

instrumentPrices
Connection<InstrumentPrice>
Paginated connection of real-time price records

Examples

query GetLatestPrices {
  instrumentPrices(first: 20, order: { timestamp: DESC }) {
    nodes {
      symbol
      price
      volume
      timestamp
      exchange {
        name
      }
    }
  }
}

Build docs developers (and LLMs) love