nathan-tw / tradingview-go

:robot: tradingview webhook forwarder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tradingview-go

Tradingview-go is a crypto-trading bot triggered by tradingview webhook Currently support binance order and futures.

Requirement

  1. A Pro member of Tradingview (in order to send webhook)

Local Usage

git clone https://github.com/nathan-tw/tradingview-go.git
cd tradingview-go
docker build -t tradingview-go .
docker run -p 8080:8080 --env BINANCE_API_KEY=$YOUR_API_KEY --env BINANCE_API_SECRET=$YOUR_API_SECRET -e PASSPHRASE=$PASSPHRASE -it tradingview-go

Usage

Clone this project

git clone https://github.com/nathan-tw/tradingview-go.git
cd tradingview-go
rm -rf .git

Add environment variables for binance api and a self-defined passphrase.

Add environment variables (heroku as example).

Edit passphrase in payloads/tradingview_webhook_payload_format.txt

{
    "passphrase": "Your_PassPhrase_self_defined", 
    "time": "{{timenow}}",
    "exchange": "{{exchange}}",
    "ticker": "{{ticker}}"
}

Deploy (heroku as example).

git init
git add .
git commit -m "initial commit"
heroku git:remote your_app
git push heroku master

New an alert.

After pasting your webhook url, paste the contents of tradingview_webhook_payload_format.txt to the message block.

filled the webhook block with

  • Your_Domain/binance_futures_webhook for futures trading strategy
  • Your_Domain/binance_webhook for spot trading strategy

Copy and paste the contents of tradingview_webhook_payload_format.txt to message block

Good Luck

You're good to go now!

About

:robot: tradingview webhook forwarder


Languages

Language:Go 82.2%Language:HCL 14.8%Language:Dockerfile 3.0%