Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

163 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Tradingview Bot

Automate trading using the alerts webhook on Tradingview.
Explore the docs »

View Demo · Report Bug · Request Feature

DISCLAIMER:

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.

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

About The Project

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

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

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

Installation

  1. Sign in to exchange of choice or sign up using my Binance referral to get 10% off fees

  2. Create an API KEY on your exchange and write down the API KEY and the API SECRET

  3. Clone the Tradingview_bot

    git clone https://github.com/ReubenHawley/Tradingview_bot.git
  4. Run setup.py file

    python3 setup.py
  5. Enter your API_KEY for the exchange you want to trade on

  6. Enter your API_SECRET for the exchange you want to trade on

  7. Setup will then install all necessary packages

  8. Create NGROK account on NGROK

  9. Copy paste NGROK Tunnel URL with the /webhook extension into Tradingview alert

Usage

  1. On the command line ./ngrok http 5000 for a linux or mac, if using windows reconsider life choices
  2. Open seperate terminal or optionally use tmux to create a seperate session
  3. On the command line export FLASK_APP=High_frequency_trader followed by export FLASK_ENV=development and finally flask 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",

}

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Reuben Hawley - theonlyReuben - email

Project Link: https://github.com/ReubenHawley/Tradingview_bot

Acknowledgements

About

an alerts based trade executer

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages