Telegram automated trader with ftx.com and kucoin.com
- Scan incoming messages from telegram
- Find out if the new message is a trading signal
- If it is a signal, parse it and send it as a trading operation to kucoin.com with ccxt or ftx.com with native python api.
- It is possible to execute trading operations starting from any text format.
- It is possible to have an Entry number N. Each Entry can have an X number of Take Profit and a Y number of Stop Loss. The maximum number of pending orders is dictated by the exchange to which we are connected.
- The operations are performed in less than 5 seconds from the arrival of the telegram message to the actual placement of the operation in the trading platform.
-
Connect to server via ssh and express connecting rules
ssh -o ServerAliveInterval=5 -o ServerAliveCountMax=2 $HOSTNAME
-
Activate the virtual enviroenment
source ./venv/bin/activate
-
Start demon trader with python3 and nohup
LIVE MODE ➡️nohup python3 -u teleryum.py 1> log.out 2> log.err &
TEST MODE ➡️python3 teleryum.py
- Insert Telegram signal channels on params.py (This is an example)
CHANNEL_1 = 'free_crypto_signals'
CHANNEL_2 = 'my_crypto_signals_vip'
- Install environment
# generate base virtual environment
python3 -m venv venv
# activate the virtual environment
source ./venv/bin/activate
# install python package manager
python3 -m pip install --upgrade pip
# install 3rd party libraries
pip install -r requirements.txt
- Create .env file inside the project root folder and insert all your credential and API keys into it
TELEGRAM_USERNAME = "@username"
TELEGRAM_ID = 12345678
TELEGRAM_HASH = "XXXXXXXXXXXXXXXXXXXXXXXXX"
TRADING_API_READONLY = "XXXXXXXXXXXXXXXXXXXXXXXXX"
TRADING_API_READONLY_HASH = "XXXXXXXXXXXXXXXXXXXXXXXXX"
TRADING_API_MAIN = "XXXXXXXXXXXXXXXXXXXXXXXXX"
TRADING_API_MAIN_HASH = "XXXXXXXXXXXXXXXXXXXXXXXXX"
- Create an account on https://www.ftx.com and deposit capital (min 100$)
- Create default and readonly API keys and save in into .env
Get api ID and api HASH on https://my.telegram.org