Data requests / Reference
alerta.request.dividends
TradingView-compatible spelling: request.dividends, runs without warnings
Requests dividend payments for a symbol (`dividends.gross` / `dividends.net`). Returns `na` with a warning — AlertaScript has no fundamentals feed.
alerta.request.dividends(symbol, field?, gaps?, lookahead?, ignore_invalid_symbol?, currency?) → series float — na without a fundamentals feedParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
symbol | string | Yes | — | Symbol to query. |
field | const | Not specified | — | dividends.gross | dividends.net. |
gaps | const | Not specified | — | barmerge.gaps_on / barmerge.gaps_off. |
lookahead | const | Not specified | — | barmerge.lookahead_on / barmerge.lookahead_off. |
ignore_invalid_symbol | bool | Not specified | — | Return na instead of raising. |
currency | string | Not specified | — | Convert the result into this currency. |
Returns
series float — na without a fundamentals feedExample
alerta.request.dividends
d = request.dividends(syminfo.tickerid, dividends.gross, ignore_invalid_symbol = true)plot(na(d) ? 0 : d, { title: "Dividend", pane: "oscillator" })Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.