pub struct SymInfo {Show 40 fields
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,
pub root: String,
pub current_contract: String,
pub main_tickerid: String,
pub isin: String,
pub country: String,
pub sector: String,
pub industry: String,
pub volumetype: String,
pub minmove: f64,
pub pricescale: f64,
pub mincontract: f64,
pub expiration_date: f64,
pub employees: f64,
pub shareholders: f64,
pub shares_outstanding_total: f64,
pub shares_outstanding_float: f64,
pub recommendations_buy: f64,
pub recommendations_buy_strong: f64,
pub recommendations_hold: f64,
pub recommendations_sell: f64,
pub recommendations_sell_strong: f64,
pub recommendations_total: f64,
pub recommendations_date: f64,
pub target_price_average: f64,
pub target_price_high: f64,
pub target_price_low: f64,
pub target_price_median: f64,
pub target_price_estimates: f64,
pub target_price_date: f64,
}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).
root: StringRoot of a futures contract, e.g. "ES" (syminfo.root).
current_contract: StringThe current standard contract of a continuous futures symbol
(syminfo.current_contract).
main_tickerid: StringSymbol of the main pair for a spread/derived symbol
(syminfo.main_tickerid).
isin: StringISIN of the symbol (syminfo.isin).
country: StringCountry the symbol is traded in, e.g. "US" (syminfo.country).
sector: StringEconomic sector, e.g. "Technology" (syminfo.sector).
industry: StringIndustry, e.g. "Semiconductors" (syminfo.industry).
volumetype: StringHow volume is reported, e.g. "base"/"quote" (syminfo.volumetype).
minmove: f64Number of mintick increments in the minimum price move
(syminfo.minmove).
pricescale: f64Price scale, the denominator of a fractional price (syminfo.pricescale).
mincontract: f64Minimum tradable contract size (syminfo.mincontract).
expiration_date: f64Expiration date of a derivative, as a UNIX timestamp
(syminfo.expiration_date).
employees: f64Number of employees (syminfo.employees).
Number of shareholders (syminfo.shareholders).
Total shares outstanding (syminfo.shares_outstanding_total).
Float shares outstanding (syminfo.shares_outstanding_float).
recommendations_buy: f64Analyst recommendation totals (syminfo.recommendations_*).
recommendations_buy_strong: f64§recommendations_hold: f64§recommendations_sell: f64§recommendations_sell_strong: f64§recommendations_total: f64§recommendations_date: f64Date the recommendations were issued, as a UNIX timestamp
(syminfo.recommendations_date).
target_price_average: f64Analyst price targets (syminfo.target_price_*).
target_price_high: f64§target_price_low: f64§target_price_median: f64§target_price_estimates: f64§target_price_date: f64Date the price targets were issued, as a UNIX timestamp
(syminfo.target_price_date).