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:
BaseModelYAML job definition — more human-friendly than JobSpec.
Validation enforces: -
exchangemust be a known exchange name. -data_type='ohlc'requiresspanto be set. -pairsmust be non-empty and useBASE/QUOTEformat.- to_job_specs()[source]
Expand a multi-pair JobConfig into a list of JobSpecs.