Sidechair

syminfo.currency

Browse the reference

The currency the symbol's prices are quoted in, as a code such as USD or EUR.

Try it in the editor

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

Example

Pine ScriptPrice tagged with its currencyOpen in editor
//@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