[WordPress] 外掛分享: Stockdio Historical Chart

首頁外掛目錄 › Stockdio Historical Chart
WordPress 外掛 Stockdio Historical Chart 的封面圖片
900+
安裝啟用
★★★☆☆
3.9/5 分(7 則評價)
26 天前
最後更新
問題解決
WordPress 3.1+ v2.8.23 上架:2016-04-06

內容簡介

Stockdio Historical Chart 包含插件和小工具,可提供顯示股票、指數、貨幣或商品的盤中和歷史價格和資訊的功能。支援超過65個不同的股票交易所以及大量市場指數、貨幣和商品。

如果您使用標準的 Gutenberg 編輯器,最簡單的方法是在 Stockdio Financial Visualizations 種類中包括 Historical Chart 區塊以在頁面上使用此插件。

如果您使用不同的編輯器或喜歡使用簡碼,在下面的範例中提供了一些幫助。請注意,下面列出的大多數參數都是可選的,也可以通過插件的設置頁面使用。您在簡碼中包含的任何參數都將覆蓋設置頁面中使用的參數。

這個外掛是 Stockdio Financial Widgets 的一部分,也包括以下插件:

- 股票報價列表
- 股市總覽
- 股市新聞
- 股市滾動新聞
- 經濟和市場新聞

以下是簡碼中支援並且也可以通過插件的設置頁面設置的參數:

- stockExchange:股票所屬的交易所市場(可選)。如果未指定,將使用 NYSE/NASDAQ 作為默認值。有關可用交易所的列表,請訪問 www.stockdio.com/exchanges。
- symbol:公司的股票代碼(例如 AAPL)、市場指數代碼(例如 ^SPX)、貨幣對代碼(例如 EUR/USD)或商品代碼(例如 GC)。有關可用市場指數的列表,請訪問 www.stockdio.com/indices;有關可用貨幣的列表,請訪問 www.stockdio.com/currencies;有關可用商品的列表,請訪問 www.stockdio.com/commodities。
- compare:指定一個有效的股票代碼或市場指數清單與基本代號進行比較,以分號分隔 (例如 MSFT;GOOG;^SPX;^IXIC)。大小寫不敏感(可選)。
- height:圖表高度,可以是 px 或 %(默認值:320px)。
- width:圖表寬度,可以是 px 或 %(默認值:100%)。
- displayPrices:允許指定如何在圖表上顯示價格,使用以下其中一個選項(默認:線條):
- 線條
- K 线图
- 面积
- OHLC
- HLC
- includeVolume:允許在圖表上顯示或隱藏交易量。默認情況下,交易量可見。使用 includeVolume=false 隱藏它(可選)。
- performance:如果啟用(true),則顯示價格表現(百分比變化),而不是實際價格。
- culture:允許指定語言和國家設置的組合,用於顯示文本和格式化數字和日期(例如西班牙語-西班牙)。有關可用文化組合的列表,請訪問 http://www.stockdio.com/cultures。
- intraday:如果啟用(true),則如果交易所提供的數據是盤中 延遲的,且天數在1至5天之間,則使用盤中延遲數據。有關可用盤中數據的交易所列表,請訪問 www.stockdio.com/exchanges。
- days:允許指定要顯示的期間的天數。只有在開始和/或 t

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.8.23) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Stockdio Historical Chart」→ 直接安裝(推薦)

原文外掛簡介

Stockdio Historical Chart contains a plugin and a widget that provide the means to display a live chart with intraday and historical prices and information for stock, index, currencies or commodities. Over 65 different stock exchanges and a large number of market indices, currencies and commodities are supported.
If you’re using the standard Gutenberg editor, the easiest way to include this plugin on your page is using the Historical Chart 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.
[stockdio-historical-chart symbol="AAPL" stockExchange="USA" width="580" height="380" motif="financial" palette="financial-light"]

This plugin is part of the Stockdio Financial Widgets, which also includes the following plugins:

Stock Quotes List.
Stock Market Overview.
Stock Market News.
Stock Market Ticker.
Economic & Market News.

The following parameters are supported in the shortcode and also available through the plugin’s settings page:
stockExchange: The exchange market the symbol is a member of (optional). If not specified, USA Equities will be used by default. For a list of available exchanges please visit www.stockdio.com/exchanges.
symbol: The company’s stock symbol (ex. AAPL), market index ticker (ex. ^SPX), currency pair (ex. EUR/USD) or commodity ticker (ex. GC). For a list of available market indices please visit www.stockdio.com/indices. For available currencies please visit www.stockdio.com/currencies and for available commodities, please go to www.stockdio.com/commodities.
compare: Specify a list of valid stock symbols or market indices against which to compare the base symbol, separated by semicolon (ex. MSFT;GOOG;^SPX;^IXIC). Not case sensitive (optional).
height: Height of the chart in either px or % (default: 320px).
width: Width of the chart in either px or % ( default: 100%).
displayPrices: Allows to specify how to display the prices on the chart, using one of the following options (default: Line):

Line
Candlestick
Area
OHLC
HLC

includeVolume: Allows to display or hide the volume on the chart. By default, volume is visible. Use includeVolume=false to hide it (optional).
performance: If enabled (true), price performance (percent change) will be displayed, instead of actual price.
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). For a list of available culture combinations please visit http://www.stockdio.com/cultures.
intraday: If enabled (true), intraday delayed data will be used if available for the exchange and number of days is between 1 and 5. For a list of exchanges with intraday data available, please visit www.stockdio.com/exchanges.
days: Allows to specify the number of days for the period to display. Used only if the start and/or the end date are not specified. If not specified, its default value is 365 days. If intraday data is available for the stock exchange and the exchange is currently open, the default number of days is 1.
allowPeriodChange: If enabled (true), it provides a UI to allow the end user to select the period for the data to be displayed. This UI is only available if the from and to parameters have not been specified. This UI is enabled by default.
from: From date. If not specified, the “from” date will be the “to” date minus the number of days specified in the days parameter.
to: To date. If not specified, the “to” date will be today’s date.
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.
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).

延伸相關外掛

文章
Filter
Apply Filters
Mastodon