- ago
Hi,

Is there an example available on setting up Webhooks for Finantic.Publisher? I'm trying to send the signals to my Discord to track orders, but I'm getting "Webhook Response 400: Bad Request. Cannot send an empty message".

I assume this is because Discord has a specific template requirement, but I don't see where I configure the template unlike for SMTP.

Thanks!

ZM
0
62
4 Replies

Reply

Bookmark

Sort
- ago
#1
Did you follow all instructions in Discord's explation of Webhooks?

https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks

I can't set it up, because I am out of office for the next three weeks...
0
- ago
#2
Discord seems to like JSON, so please select this format.

Also make sure there actually are any signals to send out.
0
- ago
#3
Thanks for the responses DrKoch. I think I have set it up as it should be (please see image below), but perhaps I'm missing something. There are definitely signals to report as the actual IBKR trades were placed successfully.

If it helps, here is a JSON template for a TradingView webhook to Discord which I use successfully:

{
"content": null,
"embeds": [
{
"title": "Signal",
"color": 3447003,
"fields": [
{
"name": "Time",
"value": "{{time}}",
"inline": true
},
{
"name": "Action",
"value": "{{strategy.order.action}}",
"inline": true
},
{
"name": "Price",
"value": "{{strategy.order.price}}",
"inline": true
},
{
"name": "Ticker",
"value": "{{ticker}}",
"inline": true
},
{
"name": "New Position",
"value": "{{strategy.market_position}}",
"inline": true
}
]
}
]
}
0
- ago
#4
Uhuh
If Discord requires such a very specific format l'll have to add it to this extension. Will take some time though, because I am out of Office til November...
0

Reply

Bookmark

Sort