Base-quote pair e.g. 'ETH-USD'
Time interval for data
import { RestPublicClient, CandleInterval } from '@idexio/idex-sdk';
const client = new RestPublicClient();
const candles = await client.getCandles({
market: 'ETH-USD',
interval: CandleInterval.ONE_HOUR
})
enum CandleInterval
Optional
startIf provided, indicates the earliest (oldest) timestamp of an object to include in the response.
start
are included in the response.start
MUST be earlier than end if provided.Optional
endIf provided, indicates the latest (newest) timestamp of an object to include the response.
end
are included in the response.end
MUST be a later timestamp than start.Optional
limitMaximum number to return of the requested type.
GET candles request interface
See