# Defender ## Setup Environment ### Create virtual environment ```bash python -m pip install virtualenv python -m virtualenv env # activate virtual environment source env/bin/activate ``` ### Install dependencies ```bash pip install -r requirements.txt python set_up.py install ``` ## Run Server in EC2 ### Create new screen ```bash screen -S <NAME> ``` ### Activate virtual environment ```bash source env/bin/activate ``` ### Run defender - Must run defender first!! bybit ```bash python bybit_defender.py ``` binance: choose an account (HEDGE00 HEDGE01 HEDGE02 MAIN) ```bash python binance_defender.py HEDGE00 ``` ==Remember to detach screen by pressing <Control+A+D>== ### Run keepalive - Create a new screen and enter to your env ```bash python <exchange>_defender_keepalive.py ``` ==Remember to detach screen by pressing <Control+A+D>== ### Run alert bot - Create a new screen and enter to your env ```bash python telegram_bot.py ``` ==Remember to detach screen by pressing <Control+A+D>==
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up