Modify Price Alert
This API allows you to modify an existing price alert.
USE CASE
Move the target price or change the compared price of an alert without deleting and re-creating it.
Details
- Allows you to modify alerts.
- Only active alerts can be modified.
- Expired or triggered alerts cannot be modified.
- The symbol associated with an alert cannot be changed; all other fields can be updated.
- Send the whole alert definition, not only the changed field:
alertId,alert-type,name,symbol,comparisonTypeandvalueare mandatory. namecan be at most 50 characters andvaluecan have up to 6 decimal places.- Send
symbolexactly as the alert was created. It cannot be changed, so to watch another instrument create a new alert. - A successful call returns code
123and a message saying the alert for that symbol at the new value is updated. - Rate limits differ between the Standard and Prime plans. See Plans & rate limits.
Request Attributes
| Attribute | Data Type | Description |
|---|---|---|
alertId* | string | Mandatory. Unique alert ID |
agent | string | Identifier of client (e.g., "fyers-api") |
alert-type | int | Mandatory. 1 → Price alert (LTP) |
name | string | Mandatory. Max 50 characters |
symbol | string | Mandatory. Trading symbol (e.g., NSE:GOLDBEES-EQ) |
comparisonType | string | Mandatory. comparision type Allowed: "OPEN", "HIGH", "LOW", "CLOSE", "LTP" |
condition | string | comparison operator. Allowed: "GT" (greater), "GTE" (greater or equal), "LT" (lesser), "LTE" (lesser or equal), "==" (equal) |
value | float | Mandatory. Up to 6 decimal places |
Response Attributes
| Attribute | Data Type | Description |
|---|---|---|
s | string | Request status. Possible values: "ok" or "error" |
code | int | Response status code |
message | string | Message describing the result of the price alert modification |
Last updated on