make_jobΒΆ

Defined in dccd.daemon.backfill

make_job(exchange, crypto, fiat, span, path, tz, form, max_retries=3, retry_delay=2.0)[source]

Build the appropriate backfill strategy for an (exchange, pair).

Parameters:
exchangestr

Exchange name (e.g. 'binance').

crypto, fiatstr

Asset symbols (e.g. 'BTC', 'USDT').

spanint

Candle interval in seconds.

pathstr

Root data directory.

tzstr

Timezone for date parsing and file labelling.

formstr

Output format (accepted for backward compatibility).

Returns:
_BackfillBase

KrakenBackfill for Kraken, OHLCBackfill otherwise.

Raises:
ValueError

If exchange is not in the supported defaults table.