所有信息源
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