JobConfig

Defined in dccd.application.config

class JobConfig(*, exchange, pairs, data_type='ohlc', operation='backfill', span=None, trigger_kind='interval', every=None, cron=None, start='last', depth=None, snapshot_interval=None)[source]

Bases: BaseModel

YAML job definition — more human-friendly than JobSpec.

Validation enforces: - exchange must be a known exchange name. - data_type='ohlc' requires span to be set. - pairs must be non-empty and use BASE/QUOTE format.

to_job_specs()[source]

Expand a multi-pair JobConfig into a list of JobSpecs.