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

    Type Alias DatasetImportDexRequest

    The dex source's own fields — required when type is dex. id/version are required for a plain (native-cadence) import; both are ignored if the top-level cadence requested pre-aggregated candles instead, since that path needs neither a protocol nor a version distinction.

    type DatasetImportDexRequest = {
        contract: string;
        factory?: string;
        id?: "uniswap";
        network: "ethereum" | "robinhood";
        version?: "v2" | "v3";
    }
    Index
    contract: string

    The pool (v3) or pair (v2) contract address.

    factory?: string

    The factory that deployed contract. Optional — when omitted, it is discovered on-chain from contract itself at fetch time. Supply it explicitly only if you already know it, or the pool/pair belongs to a factory other than the canonical one for network/version. Either way, the pool/pair is validated against whichever factory is used before anything is fetched — a wrong or unrelated factory fails the import rather than silently fetching from the wrong pool. Ignored if the top-level cadence requested pre-aggregated candles.

    id?: "uniswap"

    Which on-chain DEX protocol contract implements. Required unless the top-level cadence requested pre-aggregated candles, in which case it's ignored.

    network: "ethereum" | "robinhood"

    Which chain the pool/pair lives on.

    version?: "v2" | "v3"

    Uniswap version the pool/pair contract implements. Required unless the top-level cadence requested pre-aggregated candles, in which case it's ignored.