A Cypto Trading Frame With TradingView's webhook alerts
This is an UNOFFICIAL trading Frame for TradingView's webhook alerts written in Python 3.7
The library can be used to to place trades with Tradingview's webhook alerts
USE THIS FRAME AT YOUR OWN RISK, I WILL NOT CORRESPOND TO ANY LOSES
- Get Sigal from Trading and place order on FTX exchange (Only for market order)
If useful, buy me a coffee?
- ETH: 0xA9D89A5CAf6480496ACC8F4096fE254F24329ef0
$ git clone https://github.com/LeeChunHao2000/Cypto-TradingView-Webhook.git
-
This trading frame depends on several package, so you need to install them first!
$ pip install -r requirements.txt
- Register an account with FTX exchange (referral link)
- Generate API key and secret, assign relevant permissions to it
- Set up your own signal with webhook on TradingView
- Clone this repository, and put in the key and secret
- Enjoy your own tradingView Trading Bot
This is an introduction on how to set up your own Trading Bot.
First, we need to start the server that will listen for tradingview's webhooks.
If you have no sever, heroku could helps you set up your own sever.
Second, configure your api key in config.py:
API_KEY = 'PUY_MY_API_KEY_HERE'
API_SECRET = 'PUY_MY_API_SECRET_HERE'
Last, set up your the webhook format on TradingView, it will look like json, here is an example:
{"pair": "BTC-PERP", "side": "buy", "size": "0.01"}
Please make sure everthing is RIGHT, or you may lose your money!
Other than that, it should be good to go! If you have any questions just ask or create an issue on github!
- Birth!