Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Anyone use backtrader to do live trading on Bitcoin exchange?

    General Discussion
    pairs trading crypto
    79
    325
    134569
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      chalie @Rodrigo Brito last edited by

      @Rodrigo-Brito Is there any code sample for trade future on BINANCE, how can I modify your code , please help ,thank you

      Boern 1 Reply Last reply Reply Quote 0
      • Boern
        Boern @chalie last edited by

        @chalie https://github.com/rodrigo-brito/backtrader-binance-bot

        1 Reply Last reply Reply Quote 1
        • F
          FredYellow last edited by

          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() ?

          1 Reply Last reply Reply Quote 1
          • B
            BorutF last edited by

            I am using ccxtbt from: https://github.com/Dave-Vallance/bt-ccxt-store

            Where do you specify the frequency of fetching the data?

            1 Reply Last reply Reply Quote 0
            • Kisko Apeles
              Kisko Apeles last edited by

              Apologies for being a bit overwhelmed on where to start.

              I'm planning to trade Futures in Binance using Multiple Cryptocurrencies with One base currency (USDT most likely) in one Backtrader Strategy.

              I've honestly have not gone through all replies in this thread but maybe it wouldn't hurt to ask where it is best to start for my use case. Any reference closest to my use case?

              1 Reply Last reply Reply Quote 1
              • 1
              • 2
              • 13
              • 14
              • 15
              • 16
              • 17
              • 17 / 17
              • First post
                Last post
              Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors