(It's still very shy though so be patient...)
A telegram chat bot for checking crypto/PSE rates
A binance auto trading bot which supports telegram notifications... possibly telegram chat interface as well. We'll see.
Note: I started this project as a notification tool for
CoinsPH
andCOL Financial
/PSE
; discoveredBinance
while doing initial research and completely shifted the focus to auto-trading bots
Note (September 2020): Will update this as I go, but I still need to find an actual job so I might just park it here for the mean time
- Auto buy/sell for
Binance
- Sends a
Telegram
message every buy sell - Uses
MA(7)
andMA(25)
for determining buy/sell- Simple algorithm based on the trend movement
This has to be improved; but for now, this works.....
TODO: I'm aware that current implementation is processing heavy. But it saves me a few lines of code and less things to implement
Note: Refer to
get_slope()
inbinance.py
for code
For every iteration (specified in .env
as seconds), do:
-
Step 1 Retrieve k-lines data from Binance
-
Step 2 Retrieve current price
-
Step 3 Calculate moving averages (both
MA(7)
andMA(25)
) fromStep 1
-
Step 3 Also calculate previous candle moving averages (
pMA(7)
andpMA(25)
) fromStep 1
-
Step 4 Determine Buy/Sell and send Telegram message
if MA(7) > pMA(7): if MA(25) > pMA(25): # BUY ACTION elif: # SELL ACTION # SEND TELEGRAM MESSAGE
- IMPORTANT BEFORE I PARK THIS!! AUTO MARGINS TRADING FOR DOWN TREND
- Telegram start/stop commands
- Telegram switch/add current stock code (
UNIBTC
is hardcoded for now since I just want this to work) - Multiple users support (currently only have support for myself. Hardcoded binance account in binance module >__<"")
- ERROR HANDLING. Entire thread will crash if an exception is encountered (ie. Request/timeout errors)
- Research on better algorithms for determining buy/sell