Edit an alert
The app edits an alert.
Details#
Edit one of the member's alerts. Pass id and the market and condition, as for create_alert. The market, condition, price and note come from this call. An omitted note clears the note, and the alert stays open-ended. email, trigger, the time zone, webhook and webhook_url are kept when omitted. webhook false clears the link. webhook true with webhook_url omitted keeps the saved link, and is refused when none is saved. An empty webhook_url clears the link. Setting or keeping a link does not turn a webhook back on after three failed deliveries. That stays off until Turn back on in the alert dialog succeeds. This tool does not send that test. The answer includes email, trigger, webhook and webhook_url. Call get_alert_webhook for the failure count and whether delivery is on. Nothing is changed when a field is missing or invalid. Example: id <id>, symbol BTCUSDT, venue BINANCE, timeframe 1D, condition crossing_up, price 110000.
Inputs#
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Alert id from list_alerts. |
| symbol | string | Required | Ticker or pair, for example BTCUSDT or AAPL. |
| venue | string | Optional | Optional venue, for example BINANCE, COINBASE, BITSTAMP or NASDAQ. BINANCE is Binance spot, not Binance futures. |
| timeframe | string | Required | One of 1H, 4H, 1D, 1W, 1M. Example: 1D. |
| condition | string | Required | crossing, crossing_up, crossing_down, greater, less, flip_up, flip_down, or flip_any. |
| price | string | Optional | Price for a price condition. |
| message | string | Optional | Optional note. Omit to clear the note. |
| boolean | Optional | true sends email, false does not. Omit to keep the saved setting. | |
| trigger | once | once_per_bar_close | Optional | once fires one time. once_per_bar_close can fire again on a later bar. Omit to keep the saved trigger. |
| webhook | boolean | Optional | true sends the alert to webhook_url. false clears the link. Omit to keep the saved webhook. |
| webhook_url | string | Optional | An https link, checked the same way as the alert dialog. Omit to keep the saved link. A blank value clears it. Setting a link does not turn a webhook back on after three failed deliveries. |