Git Product home page Git Product logo

tradingview-binance-bot's Introduction

TradingView Binance bot

GPLv3 License Python Heroku

A trading bot that follows TradingView alerts executing them on you Binance account and providing you constant updates through a Telegram bot.

Requirements
  • Python 3
  • Pip
  • Binance account
  • TradingView Pro account
  • Telegram account

Local Setup

Before pushing to heroku, let's test this in a local environment:

  1. Clone this repo.

  2. Activate your python venv and run pip install -r requirements.txt to install all the necessary dependencies.

  3. Setup your API keys in config.py:

    • WEBHOOK_PASSPHRASE is the passphrase that you want to use for your payload.
    • API_KEY and API_SECRET are your Binance API keys, fetch them here.
    • USER_ID and TOKEN are for your Telegram bot, fetch the TOKEN by creating a new bot with @BotFather and fetch the USER_ID by sending a message to @RawDataBot.
  4. Run the app with python app.py.

  5. Test the /webhook endpoint with Insomnia or similar, passing it a sample request with this format.

Production Setup

  1. Head over to heroku and create an account.
  2. Create a new python app and push your local code into it, simply following the heroku instructions, then open it annotating its URL.
  3. Create a new alert on TradingView as explained here.
  4. Insert your-heroku-URL/webhook as the webhook URL and your payload as the message as explained here.
  5. Sit back and relax watching your Telegram bot notifications.

Info

This bot supports a double_order mode which consists in scalping the UP/DOWN leveraged indexes on Binance: selling a position will result in buying the opposite position, if you want to get the money out of this cycle you have to do it by selling manually.

Notes

Use at your own risk, this involves your Binance account.

tradingview-binance-bot's People

Contributors

albbus-stack 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.