[WordPress] 外掛分享: Equibles Stocks

首頁外掛目錄 › Equibles Stocks
全新外掛
安裝啟用
尚無評分
1365 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.2+ v1.0.2 上架:2022-06-21

內容簡介

Equibles Stocks 可讓您在 WordPress 網站上顯示 Equibles 提供的股票報價。
安裝插件後,您應該在Equibles上註冊並免費獲取您的 API 金鑰。
獲取 API 金鑰後,您應該在插件選項頁(選項-> Equibles 股票)中保存它。
之後,插件設置完成,您就可以開始使用此插件提供的簡碼了。

範例
顯示股票的每日收盤價格
[equibles_stock ticker="AAPL" type="daily_prices" subtype="close"]

[equibles_stock ticker="AAPL" type="daily_prices" subtype="time" time_format="d/m/Y"]

您可以在下方的「文件」部分中檢查所有可用的參數。

文件

在本節中,我們將描述可用的簡碼參數。

參數「ticker」

Equibles 支持的常見股票的代碼。例如:AAPL

參數「type」

要顯示的數據類型。 可用選項如下。

daily_prices – 有關所選代碼每日價格的數據(每 24 小時更新)。
intraday_prices – 有關所選代碼的盤中價格的數據(每分鐘更新)。
52_week – 有關所選股票的 52 週範圍的數據。

參數「subtype」

要顯示的數據子類型。 此參數取決於「type」選項的值。
可用的選項如下:

daily_prices

high – 每日價格蠟燭的高值。
low – 每日價格蠟燭的低值。
close – 每日價格蠟燭的收盤價。
open – 每日價格蠟燭的開盤價。
time – 蠟燭關閉時間。
volume – 期間內交易的股票數量。
change – 股票價格的絕對變化量。
change_percentage – 股票價格的百分比變化量。

intraday_prices

high – 價格蠟燭的高值。
low – 價格蠟燭的低值。
close – 價格蠟燭的收盤價。
open – 價格蠟燭的開盤價。
time – 蠟燭關閉時間。
volume – 期間內交易的股票數量。
change – 股票價格的絕對變化量。
change_percentage – 股票價格的百分比變化量。

52_week

high – 所選股票的 52 週高點。
low – 所選股票的 52 週低點。

參數「decimal_places」

格式化數字時要顯示的小數位數,默認值:2。

參數「decimal_separator」

小數分隔符,默認值:.(點)。

參數「thousands_separator」

千位分隔符,默認值:「 」(空格)。

參數「time_format」

時間格式,如 PHP format 函數中的格式。

設置頁面

您應該在插件設置頁面(設置-> Equibles 股票)中保存 API。
您還可以啟用 API 請求的緩存。我們建議使用 15 分鐘的緩存時間來提高網站的速度表現。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Equibles Stocks」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Equibles Stocks allows you to display stock quotes provided by Equibles on your WordPress website.
After installing the plugin you should register on Equibles and get your API key for free.
Once you have got your API key you should save it in the plugin options page (Options -> Equibles Stocks).
After that the plugin setup is completed and you can start using the shortcodes provided by this plugin.
Examples
Displaying the daily closing price for a stock
[equibles_stock ticker="AAPL" type="daily_prices" subtype="close"]

[equibles_stock ticker="AAPL" type="daily_prices" subtype="time" time_format="d/m/Y"]

You can check all the parameters available in the “Documentation” section below.
Documentation
Is this section we describe the shortcode parameters available.
Parameter “ticker”
The ticker of a common stock supported by Equibles. Example: AAPL
Parameter “type”
The type of data to show. The available options are the following.

daily_prices – Data related to the daily price of the selected ticker (updated every 24 hours).
intraday_prices – Data related to the intraday price of the selected ticker (updated every minute).
52_week – Data related to the 52 week range of the selected stock.

Parameter “subtype”
The subtype of data to show. This parameter depends on the value of the “type” option.
The available options are:

daily_prices

high – The high value of the daily price candle.
low – The low value of the daily price candle.
close – The close value of the daily price candle.
open – The open value of the daily price candle.
time – The time of close of the candle.
volume – The amount of shares traded during the period.
change – The absolute change in the stock price.
change_percentage – The percentage change in the stock price.

intraday_prices

high – The high value of the price candle.
low – The low value of the price candle.
close – The close value of the price candle.
open – The open value of the price candle.
time – The time of close of the candle.
volume – The amount of shares traded during the period.
change – The absolute change in the stock price.
change_percentage – The percentage change in the stock price.

52_week

high – The 52-week high of the selected stock.
low – The 52-week low of the selected stock.

Parameter “decimal_places”
The number of decimal places to show when formatting a number, default: 2.
Parameter “decimal_separator”
The decimal separator, default: . (dot) .
Parameter “thousands_separator”
The thousands’ separator, default: ” ” (space).
Parameter “time_format”
The format of the time as in the PHP format function.
Settings page
You should save your API in the plugin settings page (Settings -> Equibles Stocks).
You can also enable caching for the API requests. We recommend using a cache time of 15 minutes to improve your site load time.
Where can I report bugs?
Report bugs on the Equibles Stocks GitHub repository.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon