@qtsurfer/sdk
    Preparing search index...

    Type Alias DatasetImportCexRequest

    The cex source's own fields — required when type is cex. They name a market the way GET /exchanges and the instruments routes do: exchange is the id of a centralized exchange, segment one of its segments.

    type DatasetImportCexRequest = {
        dataType: "ticker" | "klines";
        exchange: string;
        segment: "spot";
    }
    Index
    dataType: "ticker" | "klines"

    What to import, and the resulting dataset's type: ticker — the exchange's ticker series — or klines — its aggregated bars (open, high, low, close and volume).

    exchange: string

    The id of a centralized exchange (venueType cex) of GET /exchanges, lower-case. A decentralized exchange's id is 400: import its pools with type: dex.

    segment: "spot"

    The market segment, one of the exchange's segments. spot is the only segment a cex import takes today, which matches instrument being a plain spot pair.