Webhooks for algo trading
A script raises an alert. Delivery of that alert to an external endpoint is a platform feature, configured outside the script. It is not part of the language.
What the language does
Two functions raise alerts from a script: alert and alertcondition. They are covered in Alerts.
That is the whole of the language’s involvement. Lipi has no webhook function, and nothing in it addresses an endpoint.
Lipi also has no order-placement surface and no strategy construct, so a script cannot place an order itself. What leaves the script is an alert, not an instruction.
What you control from the script
The message. alert takes a message that can change from bar to bar, and alertcondition takes a message fixed when the script is compiled. The text you pass is your script’s contribution and nothing else about the delivery is expressible in Lipi.
indicator("Session open condition")
alertcondition(session.isfirst, "New session", "session-open")
plot(close)What is configured outside the script
Everything else. Where an alert is sent, and what happens when it arrives, is set up on the platform rather than written in Lipi.
This page does not describe endpoint addresses, payload shapes, retry behaviour or authentication, because none of them belongs to the language.