DatafeedQuoteValues
This object contains symbol quote values, where a quote represents a set of data describing the current price. The library uses quote data for various trading functionalities, including the Order Ticket, Legend, and widgets, such as Watchlist, Details, News, and Depth of Market.
While all properties in this object are marked as optional, populating most of them is required for supporting trading functionalities. See property descriptions for more information.
Indexable
▪ [valueName: string
]: string
| number
| string
[] | number
[] | undefined
Properties
ask
OptionalAsk price
Type
number
bid
OptionalBid price
Type
number
ch
OptionalPrice change (usually counts as an open price on a particular day).
Required for mobile apps. Otherwise, NaN
values will appear in the Legend.
Type
number
chp
OptionalPrice change percentage.
Required for mobile apps. Otherwise, NaN
values will appear in the Legend.
Type
number
description
OptionalA short description of the symbol. This description is displayed in the Details widget and the tooltip of the Watchlist widget.
Type
string
exchange
OptionalThe name of the exchange
Type
string
high_price
OptionalToday's high price
Type
number
low_price
OptionalToday's low price
Type
number
lp
OptionalThe price at which the most recent trade of a security occurred, regardless of whether it was a buy or sell. Required for the Details and Watchlist widgets.
Type
number
open_price
OptionalToday's opening price
Type
number
original_name
OptionalOriginal name
Type
string
prev_close_price
OptionalClosing price of the symbol from the previous regular market session.
Required for mobile apps. Otherwise, NaN
values will appear in the Legend.
Type
number
short_name
OptionalShort name for a symbol. Short name is used in the title for the News, Watchlist and Details widgets. You can disable the prefer_quote_short_name
to use the LibrarySymbolInfo.ticker value instead.
Type
string
spread
OptionalSpread (difference between the ask and bid prices)
Type
number
volume
OptionalToday's trading volume
Type
number