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. It is usually calculated as a difference between the current price and close price of the previous day (regular session).
In the UI, ch
and chp are represented as the last day change parameter in Data Window.
You can also display these values in the legend.
If ch
and chp
are not provided, 0.00 (0.00%)
is displayed instead.
Note that ch
and chp
are required for mobile apps. Otherwise, NaN
values will appear in the legend.
Type
number
chp
OptionalPrice change percentage. In the UI, chp
and ch are represented as the last day change parameter in Data Window.
You can also display these values in the Legend.
If ch
and chp
are not provided, 0.00 (0.00%)
is displayed instead.
Note that ch
and chp
are 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