Crypto trading bot using the python-binance with CCXT API
NOTE!!! I'M NOT RESPONSIBLE FOR ANY MONEY THAT MAY BE LOST USING THIS BOT!
Also note, that the bot is still under development and will actually not perform any trades yet.
As usual, the required packages are installed with:
pip install -r requirements.txt
However, you may need to install websocket-client with pip3.
pip3 install websocket-client
One can modify the parameters that determine if the bot should sell at a certain loss or how/if a trailing stop-loss should be added when the profit of a trade increases above a certain threashold.
This could be useful if you want to trade on longer/shorter timeframes for less overall trades pr. time.
Below is an example of what a config file might look like at this current moment, however, this will likely change once the bot will be improved with defult parameters.
{
"Coin": "BTC",
"Fund": "BUSD",
"Parameters":{
"TakeProfit": 0.7,
"StopLoss": 0.5,
"TrailingStop": 0.2,
"Oversold": 25,
"Overbought": 70,
"KLineInterval": "1m"
},
"Secrets":{
"APIKey": "<Insert-Key-Here>",
"SecretKey": "<Insert-Secret-Key>"
}
}
What everything means
- Coin = Coin you wish to trade(buy). NOTE! Keep BNB in your wallet for lower fees.
- Fund = Funding coin, ex. BTCUSDT, where USDT is your funding coin
- Parameters
- TakeProfit = The increase at which you want you to sell above.
- StopLoss = The maximum percentage you are willing to loose before selling.
- TrailingStop = How far below current price should trailing stop-loss be?
- OverSold = The RSI value at which the symbol is considered oversold.
- OverBought = The RSI value at which the symbol is considered overbought.
- KLineInterval = The interval of each candlestick. NOTE! String, as from this list.
- Secrets
- APIKey = Your API key.
- SecretKey = Your secret key.
- Improve buy/sell indication
- Test bot!