How to switch backtrader to live trading on Coinbasepro
John Doe last edited by
Hi guys and gals,
I have a backtrader strategy that runs on imported CSV files.
Now that I am comfortable it kinda does what I expect, I want to put it out there in real life.
However, I struggle to code the broker integration to my Coinbase pro account.
I figured ccxt would be a good way, but how do i get backtrader not to run on the live data with the sma/rsi/bolinger indicators i have in the backtrader code? Do I download the code every hour from coinbase, store in a csv file? If so, how does backtrader know not to go in a backtesting mode, but a real live trading mode?
if there is an example you suggest, or tips more than welcome - as I am stuck. thank you