Skip to content

TradingViewCAT(Catch and Throw) Use TV webhooks to place orders on cryptocurrency exchanges.

License

Notifications You must be signed in to change notification settings

kirkins/TradingViewCAT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TradingviewCAT (CatchAndThrow)

What is TradingViewCAT?

TradingViewCAT is a flask application designed as a way to take a tradingview alert and using the ccxt library and send an order to an exchange. Using this application you can create triggers for placing orders, stop loss, scaled orders and use TradingView alert system to even create complex strategies.

What TradingviewCAT does not do?

Now the one thing this will not do is take a TradingView strategy and utilize it as an alert because they do not have alerts built in. If you have access to the underlying strategies script sometimes you can take the signal used such EMA crossovers and set an alertcondition on the crossover but this is beyond the scope of this README.

Instructions

You will either need to have firewall settings that allow the webhook to be sent the host or use ngrok. If you have a VPS this can also run on AWS free tier just make sure to have your firewall configured to allow it to receive the TV webhooks. Otherwise please download ngrok. You can also run this on your PC but again, you will have to configure your router/firewall to allow access this application.

  1. Install pipenv pip install pipenv
  2. Navigate to the folder where you cloned the repo. You should see Pipfile and Pipfile.lock files.
  3. Run command pipenv install
  4. The dependencies required to get started should now be installed. Check by running command pipenv graph - You should see flask and ccxt. If you want to install any other dependencies, or if you get an error that you're missing a depedency, simply use command pipenv install Starting the virtual environment: pipenv shell
  5. run python alert.py and input responses to craft your payload to paste into tradingview alert
  6. Start the flask app: python webhook.py

Ngrok Signup: https://dashboard.ngrok.com/signup Ngrok is free and does not require an account to but you will be disconnected every 8 hours so please register. You can also spin up a Ubuntu VPS on AWS free tier and run this on that host and send to that http://that.host/webhook, just make sure the firewall is configured correctly.

Trade on the following exchanges, these have all been tested with ccxt to work:

The following exchange will soon work but currently only works with a patched version of bybit-exchange/ccxt:[https://github.com/bybit-exchange/ccxt] otherwise it will work with the next commit of ccxt (12-26-19)

Join Hat Crypto on Telegram!

Donations: BTC: bc1ql2mch3syhltfegn9n4uszufvaetlrr5j8hnl36

About

TradingViewCAT(Catch and Throw) Use TV webhooks to place orders on cryptocurrency exchanges.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.3%
  • Dockerfile 3.7%