@qtsurfer/api-client
    Preparing search index...

    Type Alias DatasetImportRequest

    POST /datasets/imports's request body. A common block plus one type-specific block, selected by type — dex is the only value today.

    type DatasetImportRequest = {
        cadence?: "1s" | "1m" | "5m";
        dex?: DatasetImportDexRequest;
        from: string;
        instrument: Instrument;
        name: string;
        to: string;
        type: "dex";
    }
    Index
    cadence?: "1s" | "1m" | "5m"

    Optional. Omitted/blank keeps native per-trade event cadence — each swap at its own timestamp, so the resulting version's cadence is rt unless the swaps happen to sit on a fixed grid (see DatasetVersion.cadence). Set to 1s, 1m or 5m instead to get pre-aggregated candles at that width rather than raw trades (the resulting dataset's type becomes klines); any other value is 400. Not every network supports every cadence — an unsupported combination fails asynchronously, not at request time (see DatasetImportState.error).

    from: string

    Start of the range to fetch, inclusive. Must be before to.

    instrument: Instrument
    name: string

    A name unique among your datasets. 409 if already taken.

    to: string

    End of the range to fetch, exclusive. The total span is capped by your tier — a request wider than that ceiling is 400, regardless of source type.

    type: "dex"

    The source to fetch from. dex is the only value today.