
內容簡介
InvestorySpot Stock Ticker 是一款顯示即時股票價格的外掛,提供滾動標語或表格格式,支援多個數據提供者,並在一個提供者失敗時自動切換,確保用戶獲得最新的市場資訊。
【主要功能】
• 滾動標語和表格顯示模式
• 多數據提供者自動切換
• 不需 API 金鑰(內建 Yahoo Finance)
• 支援可選的 Alpha Vantage 和 Finnhub API 金鑰
• 自動刷新與可配置快取時間
• 可自訂正負變化顏色
外掛標籤
開發者團隊
原文外掛簡介
InvestorySpot Stock Ticker displays live stock prices in a scrolling ticker bar or table format. It supports multiple data providers (Yahoo Finance, Alpha Vantage, Finnhub) with automatic fallback if one provider fails.
Yahoo Finance is used as the primary provider and requires no API key. Alpha Vantage and Finnhub keys can be optionally configured for fallback.
External Services
This plugin connects to one or more external APIs to retrieve real-time stock market data. Data is fetched whenever the shortcode is rendered or when the frontend auto-refreshes (default every 300 seconds). The stock symbols configured by the site administrator are sent to the active provider’s API. No personal data of site visitors is sent.
Yahoo Finance
Service: Yahoo Finance API (query1.finance.yahoo.com). This is an unofficial integration using Yahoo’s public chart endpoint.
Data sent: Stock symbols (e.g., AAPL, GOOGL) are sent to Yahoo Finance to retrieve current price, change, and volume data.
When: On every stock data fetch — page load and each auto-refresh cycle.
Terms of Service: https://legal.yahoo.com/us/en/yahoo/terms/otos/index.html
Privacy Policy: https://legal.yahoo.com/us/en/yahoo/privacy/index.html
Alpha Vantage
Service: Alpha Vantage API (www.alphavantage.co). Provides stock quote data.
Data sent: Stock symbols and the site’s API key are sent to Alpha Vantage.
When: When Yahoo Finance fails and Alpha Vantage is configured as a fallback provider.
Terms of Service: https://www.alphavantage.co/terms_of_service/
Privacy Policy: Covered by the Alpha Vantage Terms of Service.
Finnhub
Service: Finnhub API (finnhub.io). Provides stock quote data.
Data sent: Stock symbols and the site’s API key are sent to Finnhub.
When: When Yahoo Finance and Alpha Vantage both fail and Finnhub is configured.
Terms of Service: https://finnhub.io/terms-of-service
Privacy Policy: Covered by the Finnhub Terms of Service.
Data Providers
Yahoo Finance — Used as primary provider. No API key required. This is an unofficial integration using Yahoo’s public endpoints. Not affiliated with or endorsed by Yahoo.
Alpha Vantage — Optional fallback. Free API key available at alphavantage.co. See terms of service.
Finnhub — Optional fallback. Free API key available at finnhub.io/register. Free tier is for personal use only. See terms of service.
Disclaimer: Stock data is provided for informational purposes only and is not intended for trading or investment decisions. Data may be delayed. Always verify prices with your broker or exchange.
Features
Scrolling ticker and table display modes
Multiple data providers with auto-fallback
No API key required (Yahoo Finance built-in)
Optional Alpha Vantage and Finnhub API key support
Auto-refresh with configurable cache duration
Customizable colors for positive/negative changes
Configurable decimal places (supports crypto like BTC-USD)
Settings page in wp-admin
Shortcode with override attributes
Usage
Basic shortcode:
[investoryspot_stock_ticker]
With custom symbols and table display:
[investoryspot_stock_ticker symbols="AAPL,GOOGL,MSFT,AMZN,NVDA" display="table"]
All attributes:
* symbols – Comma-separated stock symbols (supports crypto e.g. BTC-USD, ETH-USD)
* display – “ticker” (scrolling) or “table”
* color_up – Hex color for positive changes
* color_down – Hex color for negative changes
* refresh – Cache duration in seconds
* decimals – Decimal places for prices (0-8, default 2)
