TradingView Webhook Relayer in NodeJS
Budget: $30 – $250 USD
DESCRIPTION
Being TradingView the platform #1 (P1) and any other platform service for example 3Commas is the #2 (P2) and the custom Relayer named R0.
Build a nodeJS app with basic GUI, that serves as a webhook relayer server, acting as intermedary between P1 and P2, R0 will forward a the message to endpoint P2("url") under certain conditions.
Logic conditions:
1. The relayer R0 will wait for incoming alerts from P1
2. Check "side" parameter value
3. Compare if latest "side" parameter value is the same or not, for example, long, short or noTrade
if it is different, will forward the message to endpoint P2
if it is the same, will skip and not forward
Command Examples
-Relayer will use asterisks in the syntax to capture message. Example:
{BOT_ID:"btcusd01", side="long", message="{buy 100 contracts, side=long} #bot", url="https://3commas.io/trade_signal/trading_view" }
FEATURES
-Relayer will save states for different BOT_IDs. If a BOT_ID is not created yet, it will be created the first time it receives the command with new BOT_ID. None of the commands are case sensitive, so it can be *Long* or *long*. Syntax will be separated by " ", so it should accept line breaks.
-Must accept and process parallel incoming messages (multithreading) in the fastest possible way.
- Will use MongDB, PM2
-Relayer's GUI will prompt live output for all the incoming alerts
-GUI will have settings section to set 1. Localhost 2. port . 3 http request type
-Ability to filter table data by date, BOT_ID and side.
-Button to delete logs from hard disk
-Footer text to monitor continuosly check the server state (Running/Offline) in green/red.
-Code must be well commented.
USE CASES
Case 1
P1 sends a side=Long alert to R0
R0 checks last state sent
Last state is Short or state cache is empty
R0 sends custom webhook alert to P2
Case 2
P1 sends side=Long alert to R0
R0 checks last state sent
Last state is Long or state cache is empty
R0 remains iddle
Case 3
P1 sends a side=Short alert to R0
R0 checks last state sent
Last state is Long or state cache is empty
R0 sends custom webhook alert to P2
Case 4
P1 sends *NoTrade* alert to R0
R0 checks last state sent
R0 will send the alert
DATA COLUMNS
BOT_ID | SIDE | MESSAGE | Date/ Time |
Example:
btcusd01 | long | {buy 100 contracts, side=long} #bot | 2021/11/07 15:34:29 |
This program was already partially built in Python:
https://github.com/JustBruh/tradingviewhooks
Being TradingView the platform #1 (P1) and any other platform service for example 3Commas is the #2 (P2) and the custom Relayer named R0.
Build a nodeJS app with basic GUI, that serves as a webhook relayer server, acting as intermedary between P1 and P2, R0 will forward a the message to endpoint P2("url") under certain conditions.
Logic conditions:
1. The relayer R0 will wait for incoming alerts from P1
2. Check "side" parameter value
3. Compare if latest "side" parameter value is the same or not, for example, long, short or noTrade
if it is different, will forward the message to endpoint P2
if it is the same, will skip and not forward
Command Examples
-Relayer will use asterisks in the syntax to capture message. Example:
{BOT_ID:"btcusd01", side="long", message="{buy 100 contracts, side=long} #bot", url="https://3commas.io/trade_signal/trading_view" }
FEATURES
-Relayer will save states for different BOT_IDs. If a BOT_ID is not created yet, it will be created the first time it receives the command with new BOT_ID. None of the commands are case sensitive, so it can be *Long* or *long*. Syntax will be separated by " ", so it should accept line breaks.
-Must accept and process parallel incoming messages (multithreading) in the fastest possible way.
- Will use MongDB, PM2
-Relayer's GUI will prompt live output for all the incoming alerts
-GUI will have settings section to set 1. Localhost 2. port . 3 http request type
-Ability to filter table data by date, BOT_ID and side.
-Button to delete logs from hard disk
-Footer text to monitor continuosly check the server state (Running/Offline) in green/red.
-Code must be well commented.
USE CASES
Case 1
P1 sends a side=Long alert to R0
R0 checks last state sent
Last state is Short or state cache is empty
R0 sends custom webhook alert to P2
Case 2
P1 sends side=Long alert to R0
R0 checks last state sent
Last state is Long or state cache is empty
R0 remains iddle
Case 3
P1 sends a side=Short alert to R0
R0 checks last state sent
Last state is Long or state cache is empty
R0 sends custom webhook alert to P2
Case 4
P1 sends *NoTrade* alert to R0
R0 checks last state sent
R0 will send the alert
DATA COLUMNS
BOT_ID | SIDE | MESSAGE | Date/ Time |
Example:
btcusd01 | long | {buy 100 contracts, side=long} #bot | 2021/11/07 15:34:29 |
This program was already partially built in Python:
https://github.com/JustBruh/tradingviewhooks