Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #13

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 31 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,37 @@ https://discord.gg/Qb9unmxD6D
<br>
<br>

# How to Webhook Server on your local computer

#### Video Tutorial:
https://youtu.be/VX68RrMvM5Q
1.) Clone Project to Desktop and create a virtual environment.

``pip install -r requirements.txt``

``sudo python3 -m venv nameofyourchoice``

``source /home/.../Desktop/Tradingview-Webhook-Bot-main/nameofyourchoice/bin/activate``

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

4.) Start the local server

``flask run``

5.) Install ngrok and create account to generate authtoken

``snap install ngrok``

``ngrok config add-authtoken hereplaceyourkey``

``ngrok http 5000``


<br>
<br>

# How to Webhook Server on Heroku
## Video Tutorial:
https://youtu.be/VX68RrMvM5Q

1.) Clone Project to Desktop

Expand Down Expand Up @@ -78,7 +100,7 @@ https://cli-assets.heroku.com/heroku-x64.exe

# 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:
After starting your server, you should see an address that will allow you to access it like below:

[https://tv-trader-gnome.herokuapp.com/webhook](https://tv-trader-gnome.herokuapp.com/webhook)

Expand Down Expand Up @@ -118,14 +140,14 @@ _Now when your alerts fire off they should go strait to your server and get proc
---
| Constant |Settings Keys |
|--|--|
|key| unique key that protects your webhook server|
|exchange | bybit, binacne-futures |
|key| Unique key that protects your webhook server|
|exchange | bybit, binance-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 |
|order_mode| Both(Stop Loss & Take Profit Orders Used), Profit ( Only 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) |
Expand All @@ -137,4 +159,4 @@ _Now when your alerts fire off they should go strait to your server and get proc
|--|--|
|BYBIT INVERSE| BTCUSD|
|BYBIT PERP | BTCUSDT|
|Binance Futures | BTC/USDT|
|Binance Futures | BTCUSDT|