Edit an alert

update_alertChanges the chartSafe to repeat

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#

NameTypeRequiredDescription
idstringRequiredAlert id from list_alerts.
symbolstringRequiredTicker or pair, for example BTCUSDT or AAPL.
venuestringOptionalOptional venue, for example BINANCE, COINBASE, BITSTAMP or NASDAQ. BINANCE is Binance spot, not Binance futures.
timeframestringRequiredOne of 1H, 4H, 1D, 1W, 1M. Example: 1D.
conditionstringRequiredcrossing, crossing_up, crossing_down, greater, less, flip_up, flip_down, or flip_any.
pricestringOptionalPrice for a price condition.
messagestringOptionalOptional note. Omit to clear the note.
emailbooleanOptionaltrue sends email, false does not. Omit to keep the saved setting.
triggeronce | once_per_bar_closeOptionalonce fires one time. once_per_bar_close can fire again on a later bar. Omit to keep the saved trigger.
webhookbooleanOptionaltrue sends the alert to webhook_url. false clears the link. Omit to keep the saved webhook.
webhook_urlstringOptionalAn 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.