GithubHelp home page GithubHelp logo

abe27 / tradingview-webhook-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cryptognome/tradingview-webhook-bot

1.0 0.0 0.0 54 KB

Test A Trading bot built using Flask & Python to that is designed to be hosted for free on Heroku, this bot can accept webhooks from Tradingview and place trades on multiple crypto exchanges.

Python 99.88% Procfile 0.12%

tradingview-webhook-bot's Introduction

Gnome-YT

This is a tradingview webhook designed to be free & open source. This bot is written using Python & Flask and is designed to run a free heroku server. It will allow you to create custom alerts in tradingview and send them to your own private webhook server that can place trades on your account via the api.

Support can be requested in our Discord:

https://discord.gg/Qb9unmxD6D

Current Exchanges


Help keep this tool free by creating a new account using our referral links below:

Tradingview

Create Bybit Account

Create Binance Futures Account



Video Tutorial:

https://youtu.be/VX68RrMvM5Q



How to Webhook Server on Heroku

1.) Clone Project to Desktop

2.) Create Free Heroku Account

3.) Edit config.json to add your own api keys & add a custom key to protect the server.

You need to create new keys on Bybit & give them the correct acess to trade and see token balance

4.) Open a terminal in the cloned directory:

5.) Install Heroku CLI so you can work connect you your webserver.

https://cli-assets.heroku.com/heroku-x64.exe

6.) Submit the following lines into the terminal and press ENTER after each one to procces the code:

git init

heroku login

heroku create --region eu tv-trader-yourservernamehere

git add .

git commit -m "Initial Commit"

git push heroku master

Anytime you need to make a change to the code or the API keys, you can push a new build to Heroku:

git add .

git commit -m "Update"

git push heroku master

How to send alerts from TradingView to your new Webserver

After starting you server, you shoudl see an address that will allow you to access it like below:

https://tv-trader-gnome.herokuapp.com/webhook

You will want to add this when you create a new alert like show below:

image

You will then want to create you syntax based on the format shownb below and place it in the alert msg field

image

Now when your alerts fire off they should go strait to your server and get proccessed on the exchange almost instantly!

TradingView Alerts Format

{
	"key": "678777",
	"exchange": "bybit",
	"symbol": "ETHUSD",
	"type": "Market",
	"side": "Buy",
	"qty": "1",
	"price": "1120",
	"close_position": "False",
	"cancel_orders": "True",
	"order_mode": "Both",
	"take_profit_percent": "1",
	"stop_loss_percent": "0.5"
}

Constant Settings Keys
key unique key that protects your webhook server
exchange bybit, binacne-futures
symbol Exchange Specific ** See Below for more
side Buy or Sell
type Market or Limit
order_mode Both(Stop Loss & Take Profit Orders Used), Profit ( Omly Take Profit Orders), Stop (Only Stop Loss orders)
qty amount of base currency to buy
price ticker in quote currency
close_position True or False
cancel_orders True or False
take_profit_percent any float (0.5)
stop_loss_Percent and float (0.5)

** SYMBOLS

EXCHANGE SYMBOL EXAMPLE
BYBIT INVERSE BTCUSD
BYBIT PERP BTCUSDT
Binance Futures BTC/USDT

tradingview-webhook-bot's People

Contributors

cryptognome avatar

Stargazers

Roman 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.