
內容簡介
Stockdio 的股票報價列表包含一個外掛程式和一個小工具,可提供顯示股價、市場指數、貨幣和商品以及其變化的方法。支援超過 65 個不同的股票交易所和眾多的市場指數、貨幣和商品。可選擇性地,在列表中附上互動價格圖表。
如果您正在使用標準的 Gutenberg 編輯器,將此外掛程式放置在頁面上的最簡單方式是使用 Stock Quotes List 區塊,該區塊包含在 Stockdio Financial Visualizations 範疇中。
如果您正在使用其他編輯器或更喜歡使用簡碼,以下是一個樣本可以幫助您開始。請注意,下面列出的大多數參數是可選的,也可透過外掛程式的設置頁面使用。您在簡碼中包含的任何參數都將覆蓋設置頁面所使用的參數。
[stock-quotes-list symbols="AAPL;MSFT;GOOG;HPQ;^SPX;^DJI;LSE:BAG" stockExchange="NYSENasdaq" width="100%" height="380" motif="financial" palette="financial-light"]
此外掛程式是 Stockdio Financial Widgets 的一部分,包括以下外掛程式和小工具:
Stockdio Historical Chart
Stock Market Overview
Stock Market News
Stock Market Ticker
Economic & Market News
支援以下參數:
stockExchange:符號所屬的交易市場(選填)。如果未指定,將預設使用 NYSE/NASDAQ。有關可用交易所的列表,請訪問 www.stockdio.com/exchanges。
symbols:由分號(;)分隔的公司股票符號、市場指數標記、貨幣對或商品標記的列表(例如 AAPL;MSFT;GOOG;HPQ;^SPX;^DJI;LSE:BAG)。請查閱常見問題解答部分,以獲得有關如何包含指數、貨幣和商品以及如何指定自定義名稱、結合不同交易所的數據等額外詳細資訊。
width:列表的寬度,可以是像素或百分比(默認值:100%)。
height:列表的高度(以像素為單位,默認值為 320px)。如果未指定,列表高度將自動計算。
title:允許為列表指定標題,例如觀察列表(選填)。
intraday:如果啟用(true),將使用交易所提供的自動刷新盤中延遲數據(如果有)。有關可提供盤中數據的交易所列表,請訪問 http://www.stockdio.com/exchanges。
includeChart:允許在列表中包含互動圖表(選填)。
chartHeight:圖表的高度(以像素為單位,默認值為 320px)。
includeLogo:允許包含/排除股票商標或指標國旗(如果有)。使用 includeLogo=false 隱藏標誌(選填)。
logoMaxHeight:指定標誌允許的最大高度。高度可能比最大高度小,具體取決於標誌的寬度,因為它維持標誌的寬高比(選填)。
logoMaxWidth:指定標誌允許的最大寬度。寬度可能比最大寬度小,具體取決於標誌的高度,因為它維持標誌的寬高比(選填)。
includeSymbol:允許在列中包含/排除股票符號。使用 includeSymbol=false 隱藏符號(選填)。
includeCompany:允許在列中包含/排除公司名稱。
外掛標籤
開發者團隊
原文外掛簡介
Stockdio’s Stock Quotes List contains a plugin and a widget that provide the means to display a list of stock prices, market indices, currencies and commodities with their variations. Over 65 different stock exchanges and a large number of market indices, currencies and commodities are supported. Optionally, an interactive price chart can be included with the list.
If you’re using the standard Gutenberg editor, the easiest way to include this plugin on your page is using the Stock Quotes List block, which is included in the Stockdio Financial Visualizations category.
If you’re using a different editor o prefer to use the shortcode, below is a sample to help you start. Please be aware that most of the parameters listed below are optional, and are also available through the plugin’s settings page. Any parameter you include in the shortcode will overwrite the parameter used in the settings page.
[stock-quotes-list symbols="AAPL;MSFT;GOOG;HPQ;^SPX;^DJI;LSE:BAG" stockExchange="NYSENasdaq" width="100%" height="380" motif="financial" palette="financial-light"]
This plugin is part of the Stockdio Financial Widgets, which also includes the following plugins and widgets:
Stockdio Historical Chart
Stock Market Overview
Stock Market News
Stock Market Ticker
Economic & Market News
The following parameters are supported:
stockExchange: The exchange market the symbols belong to (optional). If not specified, NYSE/NASDAQ will be used by default. For a list of available exchanges please visit www.stockdio.com/exchanges.
symbols: A list of companies stock symbols, market index tickers, currency pairs or commodities ticker, separated by semi-colon (;) (e.g. AAPL;MSFT;GOOG;HPQ;^SPX;^DJI;LSE:BAG). Please review the FAQ section for additional details on how to includes indices, currencies and commodities, as well as how to specify custom names, combine data from different exchanges, etc.
width: Width of the list in either px or % (default: 100%).
height: Height of the list in pixels (default: 320px). If not specified, the list height will be calculated automatically.
title: Allows to specify a title for the list, e.g. Watch List (optional).
intraday: If enabled (true), auto refresh intraday delayed data will be used if available for the exchange. For a list of exchanges with intraday data available, please visit http://www.stockdio.com/exchanges.
includeChart: Allows to include an interactive chart along with the list (optional).
chartHeight: Height of the chart in pixels (default: 320px).
includeLogo: Allows to include/exclude a column with the stock logo or index country flag, if available. Use includeLogo=false to hide the logo (optional).
logoMaxHeight: Specify the maximum height allowed for the logo. The height may be smaller than the maximum, depending on the logo width, as it maintains the logo’s aspect ratio (optional).
logoMaxWidth: Specify the maximum width allowed for the logo. The width may be smaller than the maximum, depending on the logo height, as it maintains the logo’s aspect ratio (optional).
includeSymbol: Allows to include/exclude a column with the stock symbol. Use includeSymbol=false to hide the symbol (optional).
includeCompany: Allows to include/exclude a column with the company name. Use includeCompany=false to hide the company name (optional).
includePrice: Allows to include/exclude a column with the latest stock price. Use includePrice=false to hide the stock price (optional).
includeChange: Allows to include/exclude a column with the stock price change. Use includeChange=false to hide the price change (optional).
includePercentChange: Allows to include/exclude a column with the stock price percentual change. Use includePercentChange=false to hide the price percent change (optional).
includeTrend: Allows to include/exclude a column with the stock price trend icon (up/down/neutral). Use includeTrend=false to hide the trend icon (optional).
includeVolume: Allows to include/exclude a column with the latest volume. By default, volume is not visible. Use includeVolume=true to show it (optional).
showHeader: Allows to display the list header. Use showHeader=false to hide it (optional).
showCurrency: Allows to display the currency symbol next to the price, depending on the culture settings.
allowSort: If enabled (true), it allows the end user to sort the data by any of the fields, by clicking on the header, if this is visible.
culture: Allows to specify a combination of language and country settings, used to display texts and to format numbers and dates, e.g. Spanish-Spain (optional). For a list of available culture combinations please visit http://www.stockdio.com/cultures.
motif: Design used to display the visualization with specific aesthetics, including borders and styles, among other elements (optional). For a list of available motifs please visit www.stockdio.com/motifs.
palette: Includes a set of consistent colors used for the visualization (optional). For a list of available palettes please visit www.stockdio.com/palettes.
font: Allows to specify the font that will be used to render the chart. Multiple fonts may be specified separated by comma, e.g. Lato,Helvetica,Arial (optional).
displayPrices: Allows to specify how to display the prices on the chart (if enabled), using one of the following options (default: Line):
Line
Candlestick
Area
OHLC
HLC
allowPeriodChange: If enabled (true), it provides a UI to allow the end user to select the period for the data to be displayed in the chart. This UI is enabled by default.
days: Allows to specify the number of days for the period to display in the chart (if enabled). If not specified, its default value is 365 days.
loadDataWhenVisible: Allows to fetch the data and display the visualization only when it becomes visible on the page, in order to avoid using calls (requests) when they are not needed. This is particularly useful when the visualization is not visible on the page by default, but it becomes visible as result of a user interaction (e.g. clicking on an element, etc.). It is also useful when using the same visualization multiple times on a page for different devices (e.g. using one instance of the plugin for mobile and another one for desktop). We recommend not using this by default but only on scenarios as those described above, as it may provide the end user with a small delay to display the visualization (optional).
