All Projects → fundingrate → tradingview-webhooks

fundingrate / tradingview-webhooks

Licence: Apache-2.0, Unknown licenses found Licenses found Apache-2.0 LICENSE-APACHE.md Unknown LICENSE-PARITY.md
Backend service converting tradingview alerts into action.

Programming Languages

javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to tradingview-webhooks

Tradingview Webhooks Bot
a bot that can execute trades based on tradingview webhook alerts!
Stars: ✭ 184 (+318.18%)
Mutual labels:  webhooks, alerts, trading
Bybit-Auto-Trading-Bot-Ordes-placed-via-TradingView-Webhook
Python based Trading Bot that uses TradingView.com webhook JSON alerts to place orders(buy/sell/close/manage positions/TP/SL/TS etc.) on Bybit.com. Hire me directly here https://www.freelancer.com/u/Beannsofts for any assistance
Stars: ✭ 235 (+434.09%)
Mutual labels:  webhooks, trading, tradingview
Python Poloniex
Poloniex API wrapper for Python 2.7 & 3
Stars: ✭ 557 (+1165.91%)
Mutual labels:  trading, bot-framework
Bitprophet
Node crypto trading platform for Binance exchange.
Stars: ✭ 166 (+277.27%)
Mutual labels:  alerts, trading
Blankly
🚀 💸 Easily build, backtest and deploy your algo in just a few lines of code. Trade stocks, cryptos, and forex across exchanges w/ one package.
Stars: ✭ 1,456 (+3209.09%)
Mutual labels:  trading, bot-framework
howtrader
Howtrader is a crypto currency quant framework, you can easily develop, backtest and run your own strategy in real market. It also supports tradingview or other 3rd party signals, just simply send a post request and it will help trade automatically. Now it only support binance spot, futures and inverse futures exchange. It will support okex, ftx…
Stars: ✭ 294 (+568.18%)
Mutual labels:  trading, tradingview
tvjs-overlays
💴 Collection of overlays made by the TradingVueJs community
Stars: ✭ 65 (+47.73%)
Mutual labels:  trading, tradingview
tvdatafeed
A simple TradingView historical Data Downloader
Stars: ✭ 189 (+329.55%)
Mutual labels:  trading, tradingview
awesome-tradingview
Curated list of noteworthy TradingView Strategies, Indicators and Alert Scripts for Trading Bots (PineScript)
Stars: ✭ 173 (+293.18%)
Mutual labels:  trading, tradingview
add-tradingview-alerts-tool
Automated entry of TradingView alerts for bot trading tools such as 3Commas, Alertatron, CryptoHopper, etc.
Stars: ✭ 467 (+961.36%)
Mutual labels:  alerts, tradingview
tradingview-alert-binance-trader
This trading bot listens to the TradingView alert emails on your inbox and executes trades on Binance based on the parameters set on the TD alerts.
Stars: ✭ 153 (+247.73%)
Mutual labels:  trading, tradingview
GoatFish-Core
Not production ready - Capital at risk. A Bitcoin leverage trading and backtesting platform that connects to popular Bitcoin exchanges. It is written in JavaScript and runs on Node.js.
Stars: ✭ 31 (-29.55%)
Mutual labels:  trading, bot-framework
awesome-pinescript
A Comprehensive Collection of Everything Related to Tradingview Pine Script.
Stars: ✭ 563 (+1179.55%)
Mutual labels:  trading, tradingview
btrccts
BackTest and Run CryptoCurrency Trading Strategies
Stars: ✭ 100 (+127.27%)
Mutual labels:  trading, bot-framework
TradingView-Machine-Learning-GUI
Let Python optimize the best stop loss and take profits for your TradingView strategy.
Stars: ✭ 396 (+800%)
Mutual labels:  trading, tradingview
Containerization-Automation
Study and Use of Containers and Automation Tools
Stars: ✭ 45 (+2.27%)
Mutual labels:  code
flumine
flūmine - Betting trading framework
Stars: ✭ 89 (+102.27%)
Mutual labels:  trading
go ehlers indicators
A collection of John Ehlers technical analysis indicators / Filters written in pure go, with links to original papers
Stars: ✭ 29 (-34.09%)
Mutual labels:  trading
wp-googlecodeprettify
一个基于 Google Code Prettify 实现的WordPress代码高亮插件,在TinyMCE编辑器中提供了一个插入代码的按钮。在文本编辑器中,加入了pre-js,pre-css,pre-html 3个快捷按钮;
Stars: ✭ 60 (+36.36%)
Mutual labels:  code
TerminalStocks
Pure terminal stock ticker for Windows.
Stars: ✭ 88 (+100%)
Mutual labels:  trading

Tradingview-Webhooks

A simple service converting tradingview webhooks into exchange orders. Once running, the end user is able to submit commands via http. This tool was made so I could concurrently test multiple alert/signal stratagies using live market data. We now offer a hosted version at Fundingrate.io.

Software Dependancies

Below are the required software dependancies.

.env

The .env contains all the app's configuration details.

  name=api
  port=9001

  # database
  rethink.db=tradingview
  rethink.host=localhost
  # rethink.port=32769
  # rethink.user=
  # rethink.password=

  # bitmex api key
  bitmex.key=
  bitmex.secret=

  # bybit api key
  bybit.key=
  bybit.secret=

Install & Run

Install the dependancies and startup the app.

npm install
npm run api

TradingView Event Format

Below is the format the bot expects.

  • type - The event position type.
  • provider - Defined name for the event.
  • timeframe - Timeframe the event is listening to.
{
  "token": "4432424-d9b3-433d-9388-19650eb7bf2a",
  "type": "LONG",
  "condition": "Whale",
  "description": "Price can still go up",
  "provider": "Market Liberator A",
  "timeframe": "5m"
}

Setup Tutorial

Below is a short tutorial on how to setup the app.

  1. Clone the repository.
  2. Create a .env file (example above.).
  3. Configure the app.
  4. install and run.
  5. Point a domain to the app.
  6. Input that domain into tradingview.
  7. Create events using the format.

HTTP Interface

Below is an example of how to use the http interface exposed by the app.

import axios from 'axios'
import assert from 'assert'

export default async baseURL => {
  const api = axios.create({
    baseURL,
    transformResponse: [
      function(data) {
        return JSON.parse(data)
      },
    ],
  })
  const { data } = await api.get('/')
  console.log(data)
  return data.reduce(
    (memo, action) => {
      return {
        ...memo,
        [action]: async params => {
          const { data } = await api.post(`/${action}`, params)
          console.log(action, params, data)
          return data
        },
      }
    },
    {
      _api: api,
      _post: async (endpoint, params) => {
        const { data } = await api.post(endpoint, params)
        return data
      },
      _get: async (endpoint, params) => {
        const { data } = await api.get(endpoint, params)
        return data
      },
    }
  )
}

Actions

Below is a list of the available api endpoints.

echo(params)

returns back whatever is posted to it.

  • params - optional params.

ping()

returns 200 ok message.

me({token})

returns the user valided by the token.

  • token - a user token.

getTicker()

returns the current bybit ticker information.

registerUsername({username})

returns user token and creates userid.

  • username - desired username.

listUsers()

list all registered users.

listTraders()

list all users who are active traders.

consumeEvent({token, ...params})

returns the created event.

  • token - a user token.
  • params - optional event params.

listMyTrades({token})

returns list of created trades.

  • token - a user token.

getMyStats({token})

list my current trade stats.

  • token - a user token.

listMyTokens({token})

list all my created tokens.

  • token - a user token.

listEventProviders({token})

list all event providers and count of events.

listUserEventProviders({token})

list all event providers and count of events from each userid.

createSubscription({userid, token})

Subscribe to a provider

  • token - a user token.
  • userid - provider name (indicator name)

listMySubscriptions({token})

list all your subscriptions.

  • token - a user token.

license

license zero parity and apache 2.0 (contributions)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].