The pool (v3) or pair (v2) contract address.
OptionalfactoryThe 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.
OptionalidWhich on-chain DEX protocol contract implements. Required unless the top-level
cadence requested pre-aggregated candles, in which case it's ignored.
Which chain the pool/pair lives on.
OptionalversionUniswap version the pool/pair contract implements. Required unless the top-level
cadence requested pre-aggregated candles, in which case it's ignored.
The
dexsource's own fields — required whentypeisdex.id/versionare required for a plain (native-cadence) import; both are ignored if the top-levelcadencerequested pre-aggregated candles instead, since that path needs neither a protocol nor a version distinction.