Automate trading using the alerts webhook on Tradingview.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Trading can lose you money, never trade with money you are not prepared to lose. Autobot and its creators accept no liability for losses incurred through the usage of this program. The user uses this program at his/her own risk and by proceeding with setup, installation and usage waives all rights to claims against its creators, collectively and individually.
Captures alerts on the webhook These alerts are then parsed and checked for any trade execution paramters After successfully executing the trade, it will immediately place a counter trade should a trade be unsuccessful, it will reattempt to submit it again
To get a local copy up and running follow these simple steps.
Ensure you have Python 3.7 or higher installed
This is an example of how to list things you need to use the software and how to install them.
- pip
py get-pip.py
-
Sign in to exchange of choice or sign up using my Binance referral to get 10% off fees
-
Create an
API KEYon your exchange and write down theAPI KEYand theAPI SECRET -
Clone the Tradingview_bot
git clone https://github.com/ReubenHawley/Tradingview_bot.git
-
Run setup.py file
python3 setup.py
-
Enter your API_KEY for the exchange you want to trade on
-
Enter your API_SECRET for the exchange you want to trade on
-
Setup will then install all necessary packages
-
Create NGROK account on NGROK
-
Copy paste NGROK Tunnel URL with the
/webhookextension into Tradingview alert
- On the command line
./ngrok http 5000for a linux or mac, if using windowsreconsider life choices - Open seperate terminal or optionally use tmux to create a seperate session
- On the command line
export FLASK_APP=High_frequency_traderfollowed byexport FLASK_ENV=developmentand finallyflask run
Executing trades:
Trades are executed via alerts send from tradingview and follow a strict format:
| Parameter | Purpose | Valid Parameters | E.g |
|---|---|---|---|
| symbol | ticker/symbol to execute a trade on | str |
"BTC/USDT" |
| Ordertype | execute a limit order or market order | str |
"MARKET" |
| Direction | buy or sell | str |
"BUY" |
| size | amount you wish to trade | float int |
1.0008 |
{
"quantity": 0.001,
"side": "BUY",
"symbol": "BTC/USDT",
"ordertype": "MARKET",
}See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Reuben Hawley - theonlyReuben - email
Project Link: https://github.com/ReubenHawley/Tradingview_bot
- Igor Kroitor - examples on API usage CCXT