Skip to content

webhook

j4c0b1 edited this page Feb 16, 2021 · 8 revisions

Tradingview Webhooks

You can send any alert signals to out bots.

test and development

To create an allert just ask for the developer for a link and a code to be used in your trading view alerts.

message format

We can configure and use any message format.

the model for a good signal message will be like this :

{
    "name": "S2F",
    "private": "true",
    "exchange": "binance",
    "wallet": "spot",
    "type": "market",
    "side": "buy",
    "amount": "500",
    "symbol": "BTCUSDT",
    "price": "None",
    "leverage": "cross",
    "key": "f818b343dbb23331436e504b529b4e635439bbae80f944e1be18098e"
}

Trading view

How to use a variable value in alert

{
    "name": "S2F",
    "private": "true",
    "exchange": "{{exchange}}",
    "wallet": "spot",
    "type": "market",
    "side": "buy",
    "amount": "500",
    "symbol": "{{ticker}}",
    "price": "{{close}}",
    "leverage": "cross",
    "key": "f818b343dbb23331436e504b529b4e635439bbae80f944e1be18098e",
    "timestamp": "{{timenow}}",
    "timeframe" : "{{interval}}",
    "strategy.order.action}" : "{{strategy.order.action}}",
    "ohlcv": [{{close}}, {{open}}, {{high}}, {{low}}, "{{time}}", {{volume}}]
}
Clone this wiki locally