pub struct SymInfo {
pub ticker: String,
pub tickerid: String,
pub description: String,
pub prefix: String,
pub currency: String,
pub basecurrency: String,
pub type_: String,
pub mintick: f64,
pub pointvalue: f64,
pub timezone: String,
pub session: String,
}Expand description
Symbol information the host supplies for a script run.
Mirrors PineScript’s syminfo.* namespace: the instrument’s identity and
trading conventions. A script may read any of these; the host fills in what
it knows and leaves the rest at their defaults.
Fields§
§ticker: StringSymbol without exchange prefix, e.g. "AAPL" (syminfo.ticker).
tickerid: StringFully qualified symbol including exchange, e.g. "NASDAQ:AAPL"
(syminfo.tickerid).
description: StringHuman-readable description of the symbol (syminfo.description).
prefix: StringExchange/data-source prefix, e.g. "NASDAQ" (syminfo.prefix).
currency: StringCurrency the symbol is quoted in, e.g. "USD" (syminfo.currency).
basecurrency: StringBase currency for forex pairs, e.g. "EUR" in EURUSD
(syminfo.basecurrency).
type_: StringInstrument type, e.g. "stock", "forex", "crypto" (syminfo.type).
mintick: f64Smallest price increment, e.g. 0.01 (syminfo.mintick).
pointvalue: f64Currency value of one point of price movement (syminfo.pointvalue).
timezone: StringExchange timezone, e.g. "America/New_York" (syminfo.timezone).
session: StringTrading session specification (syminfo.session).