Code Monkey home page Code Monkey logo

webhook-tradingview-bot's Introduction

webhook-tradingview-bot

This Node.js app receives Webhook notifications from Tradingview and executes market buy/sell orders on Binance accordingly. The outcome is relayed to a Telegram Chat, displaying the Tradingview alert, the action taken by Binance, and the speed of order execution from the moment the signal was received.

The bot is built using the node-binance-api library, which provides a simple and easy-to-use API for interacting with the Binance exchange.

It also makes use of the node-telegram-bot-api library, which provides a simple and easy-to-use API for interacting with Telegram.

Getting Started

To get started with the bot, follow these steps:

Clone this repository to your local machine using git clone https://github.com/Ark0N/webhook-tradingview-bot.git

Navigate to the project directory and install the required dependencies using npm install from requirements.txt

Modify the config.js file in the root directory of the project and add your Binance API key and secret to the file.

A JSON message from TradingView to the Server looks like this:

{ "strategy": "TUSDT", "action": "{{strategy.order.action}}", "contracts": "{{strategy.order.contracts}}", "ticker": "{{ticker}}", "position_size": "{{strategy.position_size}}" }

Acknowledgment

This project was developed with the assistance of OpenAI's ChatGPT-4, a powerful language model that provided guidance on various aspects of the Node.js application development. The AI model was instrumental in offering suggestions, explanations, and best practices throughout the development process, helping to streamline the implementation and ensure a higher-quality final product.

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.