forked from robswc/tradingview-webhooks-bot and hacked/modified for my own use
tradingview-webhooks-bot is a trading bot, written in python that allows users to place trades with tradingview's webhook alerts.
-
pip3 install ccxt flask pytz
-
pip3 install python-ftx (python-ftx from https://github.com/wanth1997/python-ftx.git)
-
install ftx-cli from https://github.com/duskcodes/ftx-cli req. to be deleted soon
-
create api_keys.py file and follow format of api_keys_example.py w/ the keys for your exchange
-
create/login to ngrok.com account
-
download and install latest ngrok
-
make sure ngrok is authenticated with authcode listed on ngrok install page
-
run
./ngrok http 5000
(or whichever port you want to use) -
then run
webhook-bot.py
to start webhook server on 5000 (change port inside .py file) -
bulk setup tradingview alerts using ./atat https://github.com/alleyway/add-tradingview-alerts-tool
-
check .zshrc for example aliases for manual order entry aliases
-
run wallet and pnl to check wallet status and positions
commands: long [..], short [..], exlong [..], exshort [..], exlongs, exshorts, pnl_automonitor
./atat add-alerts --delay 250 config_longenter.yml && ./atat add-alerts --delay 250 config_longadd.yml && ./atat add-alerts --delay 250 config_longexit.yml && ./atat add-alerts --delay 250 config_longtp.yml && ./atat add-alerts --delay 250 config_shortenter.yml && ./atat add-alerts --delay 250 config_shortadd.yml && ./atat add-alerts --delay 250 config_shortexit.yml && ./atat add-alerts --delay 250 config_shortTP.yml
- the tradingview webhook address will be the ngrok address + /webhook ie: https://1234-45-789-000-00.ngrok.io/webhook
if you read this, yea im using global variables right now because i suck at programming kthx