Skip to content

Commit

Permalink
added --simresultonly
Browse files Browse the repository at this point in the history
  • Loading branch information
whittlem committed Oct 23, 2021
1 parent 113caa0 commit f0d5e44
Show file tree
Hide file tree
Showing 8 changed files with 435 additions and 259 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ tests/unit_tests/data/*.json

*.key
config-*.yaml
telegram_data/data.json
telegram_data*
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Upgrade version:
Upgrade library dependencies (if required):
- python3 -m pip install -r requirements.txt -U

## [4.3.0] - 2021-10-23

- added --simresultonly option

## [4.2.1] - 2021-10-19

- fixed TG BOT checking if market/pair already exists before saving
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Docker](https://github.com/whittlem/pycryptobot/actions/workflows/container.yml/badge.svg)](https://github.com/whittlem/pycryptobot/actions/workflows/container.yml/badge.svg) [![Tests](https://github.com/whittlem/pycryptobot/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/whittlem/pycryptobot/actions/workflows/unit-tests.yml/badge.svg)

# Python Crypto Bot v4.2.1 (pycryptobot)
# Python Crypto Bot v4.3.0 (pycryptobot)

## Join our chat on Telegram

Expand Down
20 changes: 14 additions & 6 deletions models/BotConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def __init__(self, *args, **kwargs):
self.statstartdate = None
self.statdetail = False
self.nobuynearhighpcnt = 3
self.simresultonly = False

self.disablebullonly = False
self.disablebuynearhigh = False
Expand Down Expand Up @@ -258,7 +259,7 @@ def _set_default_api_info(self, exchange: str = "dummy") -> tuple:
"api_key": "00000000000000000000000000000000",
"api_secret": "0000/0000000000/0000000000000000000000000000000000000000000000000000000000/00000000000==",
"api_passphrase": "00000000000",
"market": "BTC-GBP"
"market": "BTC-GBP",
},
"dummy": {
"api_url": "https://api.pro.coinbase.com",
Expand Down Expand Up @@ -328,7 +329,9 @@ def _parse_arguments(self):
)
parser.add_argument("--live", type=int, help="live=1, test=0")
parser.add_argument(
"--market", type=str, help="coinbasepro and kucoin: BTC-GBP, binance: BTCGBP etc."
"--market",
type=str,
help="coinbasepro and kucoin: BTC-GBP, binance: BTCGBP etc.",
)
parser.add_argument(
"--sellatloss", type=int, help="toggle if bot should sell at a loss"
Expand Down Expand Up @@ -442,6 +445,11 @@ def _parse_arguments(self):
action="store_true",
help="display detail of completed transactions for a given market",
)
parser.add_argument(
"--simresultonly",
action="store_true",
help="show simulation result only",
)

# disable defaults
parser.add_argument(
Expand Down Expand Up @@ -503,11 +511,11 @@ def _parse_arguments(self):
help="binance exchange api recvWindow, integer between 5000 and 60000",
)
parser.add_argument(
"--enableml", action="store_true", help="Enable Machine Learning E.g. seasonal ARIMA model for predictions"
)
parser.add_argument(
"--websocket", action="store_true", help="Enable websocket"
"--enableml",
action="store_true",
help="Enable Machine Learning E.g. seasonal ARIMA model for predictions",
)
parser.add_argument("--websocket", action="store_true", help="Enable websocket")

# pylint: disable=unused-variable
args, unknown = parser.parse_known_args()
Expand Down
Loading

0 comments on commit f0d5e44

Please sign in to comment.