1
1
# CryptoBot - Binance Trading Bot
2
2
3
- A python based trading bot for Binance.
3
+ A python based trading bot for Binance, which relies heavily on backtesting .
4
4
5
5
Currently provides two strategies, * buy_drop_sell_recovery_strategy* and
6
6
* buy_moon_sell_recovery_strategy* . How these strategies work is described below.
@@ -50,6 +50,14 @@ TICKERS:
50
50
NAUGHTY_TIMEOUT: 604800
51
51
```
52
52
53
+ In order to test the different 'profiles' for different coins, this bot is
54
+ designed to rely mainly on backtesting. For backtesting, this bot provides two
55
+ modes for running.
56
+ In the * logmode* it records price.logs for all available coins in binance and
57
+ store them in the log directory. These logs can then be consumed in
58
+ * backtesting* mode.
59
+
60
+
53
61
54
62
## Riot/Matrix:
55
63
@@ -62,7 +70,9 @@ Generate a *config.yaml*, see the example configs in *examples/*
62
70
63
71
And add your Binance credentials to * .secrets.yaml* .
64
72
65
- then,
73
+
74
+ To run the bot in logmode only, which will generate price logs while its
75
+ running.
66
76
67
77
```
68
78
docker run -it \
@@ -71,11 +81,11 @@ docker run -it \
71
81
-v $PWD/log:/cryptobot/log:rw \
72
82
-v $PWD/.secrets.yaml:/cryptobot/.secrets.yaml \
73
83
-v $PWD/tickers:/cryptobot/tickers \
74
- ghcr.io/azulinho/cryptobot -s .secrets.yaml -c configs/config.yaml -m live
84
+ ghcr.io/azulinho/cryptobot -s .secrets.yaml -c configs/config.yaml -m logmode
75
85
76
86
```
77
-
78
- To run the bot in logmode only,
87
+ To run the bot in backtesting, which will perform backtesting on all collected
88
+ price logs based on the provided config.yaml.
79
89
80
90
```
81
91
docker run -it \
@@ -88,6 +98,20 @@ docker run -it \
88
98
89
99
```
90
100
101
+ Finally, to run in live trading mode,
102
+
103
+ ```
104
+ docker run -it \
105
+ -u `id -u` \
106
+ -v $PWD/configs/:/cryptobot/configs/:ro \
107
+ -v $PWD/log:/cryptobot/log:rw \
108
+ -v $PWD/.secrets.yaml:/cryptobot/.secrets.yaml \
109
+ -v $PWD/tickers:/cryptobot/tickers \
110
+ ghcr.io/azulinho/cryptobot -s .secrets.yaml -c configs/config.yaml -m live
111
+
112
+ ```
113
+
114
+
91
115
## Secrets:
92
116
93
117
0 commit comments