Giter VIP home page Giter VIP logo

tws-orders-placement-via-tradinview-webhooks's Introduction

Placing orders to IB TWS via Tradingview alerts webhooks

Connect TradingView with Interactive Brokers to process automated signals as entries and exits in an IB brokerage account.

Configuring the alert Webhook and installing ngrock

You'll need to install ngrock (URL to the download page- https://ngrok.com/download) and at least Pro TradingView subscription for placing webhooks in alerts, and redirect them to your localhost.

Please, do not forget to add Authtoken from ngrock

After that you'll be able to run ngrock server:

$ ngrok http 5000

Copy the URL from Forwarding line and paste it into the alert Webhook line.

Add /webhook to the following URL.

Then, add the message to the Message field in the Alert navigation and click Save:

{
 "message": "YourMessage",
 "symbol" : "{{ticker}}",
 "price" : "{{close}}",
 "timeframe" : "{{interval}}"
}

Requirements

To run the application, please do not forget to install the following requirements. You can do it in your terminal via the following command:

$ pip install --requirement requirements.txt

Run app

To run the app via terminal do not forget to change the directory to TradingViewInteractiveBrokers. After that you can simply type this command in your terminal:

$ python app.py
# or
$ python3 app.py

tws-orders-placement-via-tradinview-webhooks's People

Contributors

econlq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.