For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

How to fetch_ohlcv for different contract_type using CCXT.



  • Hi,

    When using CCXT as data feeds, how to let CCXT to fetch_ohlcv for different contract_type, for example, 'next_week', 'quarter'? Thanks.

    data_ticks = bt.feeds.CCXT(
        exchange='okex',
        symbol='LTC/USD',
        name='LTC_USD',
        timeframe=bt.TimeFrame.Minutes,
        fromdate=hist_start_date,
        historical='False',
        compression=1)