modifyAlert method

  1. @override
void modifyAlert(
  1. String params
)
override

Modifies an existing alert's trigger price.

params JSON shape (see AlertParams):

{
  "alertId": "371966778953728",
  "symbolId": "IDX_-20_NSE",
  "ltp": "79500.00",
  "triggerPrice": "80000.00"
}

ltp is the current LTP at the time of the request; the host app decides whether the alert is above/below the market from it and ltp's relationship to triggerPrice — that decision is not this SDK's concern, only the resulting alert list is.

Implementation

@override
void modifyAlert(String params) {
  unawaited(_data.invokeMethod<void>('modifyAlert', params));
}