所有資料來源
Financial news aggregated from major sources like Yahoo, Reuters, and CNBC via Finnhub
@codytseng #finance #news #market #stocks
安裝與設定方式
- 先在 Mac 上安裝並開啟 Glanceway,再使用上方的安裝連結。
- 點選「安裝到 Glanceway」。若瀏覽器無法開啟應用程式,下載 .gwsrc 檔案並在資訊源管理中匯入。
- 填寫以下必填欄位並儲存,設定更新間隔,等待首次成功取得內容。
設定檢查
FINNHUB_TOKEN— 必填. Free API key from finnhub.io 填寫自己的存取憑證,請勿在截圖或公開檔案中分享。CATEGORY— 選填. Category of financial news
沒有顯示內容時如何排查
- 對照目前版本設定表檢查欄位、清單項目與憑證。下方範例不包含可用的真實憑證。
- 檢查網路及上游服務狀態。認證失敗或速率限制可能使更新失敗,請依上游限制調整間隔。
- 空清單也可能代表沒有符合條件的條目。內容與更新時間取決於資料提供方及資訊源實作。
設定項目
| 名稱 | 鍵 | 類型 | 必填 | 預設值 | 描述 |
|---|---|---|---|---|---|
| API Token | FINNHUB_TOKEN | secret | 是 | — | Free API key from finnhub.io |
| News Category | CATEGORY | select | 否 | general | Category of financial news generalforexcryptomerger |
原始碼
id: codytseng/finnhub-news
version: 1.0.0
name: Finnhub Market News
description: Financial news aggregated from major sources like Yahoo, Reuters, and CNBC via Finnhub
author: codytseng
author_url: https://github.com/codytseng
category: Finance
tags:
- finance
- news
- market
- stocks
config:
- key: FINNHUB_TOKEN
name: API Token
type: secret
required: true
description: Free API key from finnhub.io
- key: CATEGORY
name: News Category
type: select
required: false
default: general
description: Category of financial news
options:
- general
- forex
- crypto
- merger id: codytseng/finnhub-news
version: 1.0.0
name: Finnhub Market News
description: Financial news aggregated from major sources like Yahoo, Reuters, and CNBC via Finnhub
author: codytseng
author_url: https://github.com/codytseng
category: Finance
tags:
- finance
- news
- market
- stocks
config:
- key: FINNHUB_TOKEN
name: API Token
type: secret
required: true
description: Free API key from finnhub.io
- key: CATEGORY
name: News Category
type: select
required: false
default: general
description: Category of financial news
options:
- general
- forex
- crypto
- merger module.exports = async (api) => {
const token = api.config.get("FINNHUB_TOKEN");
const category = api.config.get("CATEGORY") || "general";
async function fetchData() {
const res = await api.fetch(
`https://finnhub.io/api/v1/news?category=${category}&token=${token}`,
);
if (!res.ok || !res.json) {
throw new Error(`Failed to fetch Finnhub news (HTTP ${res.status})`);
}
const items = res.json.map((article) => ({
id: String(article.id),
title: article.headline,
subtitle: article.summary,
url: article.url,
timestamp: article.datetime,
}));
api.emit(items);
}
await fetchData();
return {
refresh: fetchData,
};
}; module.exports = async (api) => {
const token = api.config.get("FINNHUB_TOKEN");
const category = api.config.get("CATEGORY") || "general";
async function fetchData() {
const res = await api.fetch(
`https://finnhub.io/api/v1/news?category=${category}&token=${token}`,
);
if (!res.ok || !res.json) {
throw new Error(`Failed to fetch Finnhub news (HTTP ${res.status})`);
}
const items = res.json.map((article) => ({
id: String(article.id),
title: article.headline,
subtitle: article.summary,
url: article.url,
timestamp: article.datetime,
}));
api.emit(items);
}
await fetchData();
return {
refresh: fetchData,
};
}; 相關資料來源
CoinGecko Crypto Markets
財經Top cryptocurrencies by market cap from CoinGecko
#crypto #finance #markets
Stock Price Monitor
財經Monitor global stock prices in your menu bar. Displays real-time price, change amount, and change percentage. Powered by Finnhub (free API key required).
#stock #finance #market
华尔街见闻
財經华尔街见闻 7x24 快讯
#finance #news #chinese #market
股价监控
財經在菜单栏实时监控 A 股股价。 显示当前价格、涨跌额和涨跌幅。
#stock #finance #china #a-share