The currency the symbol's prices are quoted in, as a code such as USD or EUR.
syminfo.currency is a simple string holding the ISO 4217 code of the quote currency. For a stock it is the listing currency, and for EURUSD it is USD.
Pass it to request.currency_rate or to a currency argument when you convert one symbol's prices into another currency.
Type
simple string
Remarks
- For the other half of a pair, see
syminfo.basecurrency. - On Sidechair: the value is always USD.
Example
//@version=6
indicator("Quoted in", overlay = true)
plot(close, "Close", color.gray)
if barstate.islast
label.new(bar_index, close, str.tostring(close, format.mintick) + " " + syminfo.currency, style = label.style_label_left)See also
Runs on Sidechair