Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. FredYellow
    3. Best
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    F
    • Profile
    • Following 1
    • Followers 0
    • Topics 5
    • Posts 15
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by FredYellow

    • RE: Anyone use backtrader to do live trading on Bitcoin exchange?

      Hi all,

      I've succesfully implemented ccxtbt to backtrader and can trade live on Binance. However there are some things unclear to me:

      Looking at de debug output I can see ccxtbt is continously fetching the newest ohlcv ticks, multiple times per second.

      Using bt.Timeframe.Minutes my next() is only called once per minute. However I want my next() to be called every new tick. When I apply the bt.Timeframe.Ticks as supported by Backtrader, I get the following error:

      ValueError: backtrader CCXT module doesn't support fetching OHLCV data for time frame Tick, comression 1
      

      Is this correct? Is there no way for me to get the individual tick price live, and feed it to my next() ?

      posted in General Discussion
      F
      FredYellow
    • 1 / 1