├── .github └── FUNDING.yml ├── .gitignore ├── README.md ├── btconfig ├── __init__.py ├── analyzers │ ├── __init__.py │ ├── basictradestats.py │ ├── cashmarket.py │ ├── kelly.py │ └── tradelist.py ├── feeds │ ├── __init__.py │ ├── binance.py │ ├── coinapi.py │ ├── coinmetrics.py │ ├── ftx.py │ ├── ib.py │ ├── misc.py │ ├── oandav20.py │ └── yahoo.py ├── helper.py ├── observers │ ├── __init__.py │ └── buy_sell.py ├── parts │ ├── __init__.py │ ├── backtrader.py │ ├── cerebro.py │ ├── comminfo.py │ ├── data.py │ ├── logging.py │ ├── plot.py │ ├── report.py │ ├── sizer.py │ ├── store.py │ ├── strategy.py │ └── tearsheet.py ├── proto.py ├── stores │ └── __init__.py ├── utils │ ├── __init__.py │ ├── api │ │ ├── __init__.py │ │ ├── coinapi.py │ │ ├── coingecko.py │ │ ├── coinglass.py │ │ ├── coinmarketcap.py │ │ ├── coinmetrics.py │ │ ├── ftx.py │ │ └── glassnode.py │ ├── data.py │ ├── dataloader │ │ ├── __init__.py │ │ ├── binance.py │ │ ├── coinapi.py │ │ ├── coinmetrics.py │ │ ├── ftx.py │ │ ├── ib.py │ │ ├── oandav20.py │ │ └── yahoo.py │ ├── misc.py │ ├── pinescript.py │ ├── rounding.py │ └── websocket.py └── version.py ├── config ├── config.yaml └── convert_config.py ├── demo └── simple │ ├── config.yaml │ ├── run_backtest.py │ ├── run_optimize.py │ ├── run_optimizegenetic.py │ ├── simple_strategy.py │ └── sp500_prices.csv ├── requirements.txt └── setup.py /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | liberapay: happydasch 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/README.md -------------------------------------------------------------------------------- /btconfig/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/__init__.py -------------------------------------------------------------------------------- /btconfig/analyzers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/analyzers/__init__.py -------------------------------------------------------------------------------- /btconfig/analyzers/basictradestats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/analyzers/basictradestats.py -------------------------------------------------------------------------------- /btconfig/analyzers/cashmarket.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/analyzers/cashmarket.py -------------------------------------------------------------------------------- /btconfig/analyzers/kelly.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/analyzers/kelly.py -------------------------------------------------------------------------------- /btconfig/analyzers/tradelist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/analyzers/tradelist.py -------------------------------------------------------------------------------- /btconfig/feeds/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/feeds/__init__.py -------------------------------------------------------------------------------- /btconfig/feeds/binance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/feeds/binance.py -------------------------------------------------------------------------------- /btconfig/feeds/coinapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/feeds/coinapi.py -------------------------------------------------------------------------------- /btconfig/feeds/coinmetrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/feeds/coinmetrics.py -------------------------------------------------------------------------------- /btconfig/feeds/ftx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/feeds/ftx.py -------------------------------------------------------------------------------- /btconfig/feeds/ib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/feeds/ib.py -------------------------------------------------------------------------------- /btconfig/feeds/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/feeds/misc.py -------------------------------------------------------------------------------- /btconfig/feeds/oandav20.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/feeds/oandav20.py -------------------------------------------------------------------------------- /btconfig/feeds/yahoo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/feeds/yahoo.py -------------------------------------------------------------------------------- /btconfig/helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/helper.py -------------------------------------------------------------------------------- /btconfig/observers/__init__.py: -------------------------------------------------------------------------------- 1 | from .buy_sell import BuySellMarker # noqa: * 2 | -------------------------------------------------------------------------------- /btconfig/observers/buy_sell.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/observers/buy_sell.py -------------------------------------------------------------------------------- /btconfig/parts/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/parts/__init__.py -------------------------------------------------------------------------------- /btconfig/parts/backtrader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/parts/backtrader.py -------------------------------------------------------------------------------- /btconfig/parts/cerebro.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/parts/cerebro.py -------------------------------------------------------------------------------- /btconfig/parts/comminfo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/parts/comminfo.py -------------------------------------------------------------------------------- /btconfig/parts/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/parts/data.py -------------------------------------------------------------------------------- /btconfig/parts/logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/parts/logging.py -------------------------------------------------------------------------------- /btconfig/parts/plot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/parts/plot.py -------------------------------------------------------------------------------- /btconfig/parts/report.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/parts/report.py -------------------------------------------------------------------------------- /btconfig/parts/sizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/parts/sizer.py -------------------------------------------------------------------------------- /btconfig/parts/store.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/parts/store.py -------------------------------------------------------------------------------- /btconfig/parts/strategy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/parts/strategy.py -------------------------------------------------------------------------------- /btconfig/parts/tearsheet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/parts/tearsheet.py -------------------------------------------------------------------------------- /btconfig/proto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/proto.py -------------------------------------------------------------------------------- /btconfig/stores/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /btconfig/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /btconfig/utils/api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/api/__init__.py -------------------------------------------------------------------------------- /btconfig/utils/api/coinapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/api/coinapi.py -------------------------------------------------------------------------------- /btconfig/utils/api/coingecko.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/api/coingecko.py -------------------------------------------------------------------------------- /btconfig/utils/api/coinglass.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/api/coinglass.py -------------------------------------------------------------------------------- /btconfig/utils/api/coinmarketcap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/api/coinmarketcap.py -------------------------------------------------------------------------------- /btconfig/utils/api/coinmetrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/api/coinmetrics.py -------------------------------------------------------------------------------- /btconfig/utils/api/ftx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/api/ftx.py -------------------------------------------------------------------------------- /btconfig/utils/api/glassnode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/api/glassnode.py -------------------------------------------------------------------------------- /btconfig/utils/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/data.py -------------------------------------------------------------------------------- /btconfig/utils/dataloader/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/dataloader/__init__.py -------------------------------------------------------------------------------- /btconfig/utils/dataloader/binance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/dataloader/binance.py -------------------------------------------------------------------------------- /btconfig/utils/dataloader/coinapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/dataloader/coinapi.py -------------------------------------------------------------------------------- /btconfig/utils/dataloader/coinmetrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/dataloader/coinmetrics.py -------------------------------------------------------------------------------- /btconfig/utils/dataloader/ftx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/dataloader/ftx.py -------------------------------------------------------------------------------- /btconfig/utils/dataloader/ib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/dataloader/ib.py -------------------------------------------------------------------------------- /btconfig/utils/dataloader/oandav20.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/dataloader/oandav20.py -------------------------------------------------------------------------------- /btconfig/utils/dataloader/yahoo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/dataloader/yahoo.py -------------------------------------------------------------------------------- /btconfig/utils/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/misc.py -------------------------------------------------------------------------------- /btconfig/utils/pinescript.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/pinescript.py -------------------------------------------------------------------------------- /btconfig/utils/rounding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/rounding.py -------------------------------------------------------------------------------- /btconfig/utils/websocket.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/btconfig/utils/websocket.py -------------------------------------------------------------------------------- /btconfig/version.py: -------------------------------------------------------------------------------- 1 | __version__ = '0.2.5' 2 | -------------------------------------------------------------------------------- /config/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/config/config.yaml -------------------------------------------------------------------------------- /config/convert_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/config/convert_config.py -------------------------------------------------------------------------------- /demo/simple/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/demo/simple/config.yaml -------------------------------------------------------------------------------- /demo/simple/run_backtest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/demo/simple/run_backtest.py -------------------------------------------------------------------------------- /demo/simple/run_optimize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/demo/simple/run_optimize.py -------------------------------------------------------------------------------- /demo/simple/run_optimizegenetic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/demo/simple/run_optimizegenetic.py -------------------------------------------------------------------------------- /demo/simple/simple_strategy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/demo/simple/simple_strategy.py -------------------------------------------------------------------------------- /demo/simple/sp500_prices.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/demo/simple/sp500_prices.csv -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/happydasch/btconfig/HEAD/setup.py --------------------------------------------------------------------------------