Candles in Blocktap are sent as an array of strings in OHLCV format, that is, timestamp, open, high, low, close, volume. They must be given an argument of resolution
which can be any one of the following: _1m
, _5m
, _15m
, _30m
, _1h
, _2h
, _4h
, _1d
.
query market {
market(exchangeSymbol: "binance", baseSymbol: "btc", quoteSymbol: "usdt") {
marketSymbol
ohlcv(resolution: _1d, limit: 30)
}
}