Source Code
version: 1.1.0
name: 财联社电报
description: 财联社电报快讯
author: codytseng
author_url: https://github.com/codytseng
category: Finance
tags:
- finance
- news
- chinese
- market version: 1.1.0
name: 财联社电报
description: 财联社电报快讯
author: codytseng
author_url: https://github.com/codytseng
category: Finance
tags:
- finance
- news
- chinese
- market module.exports = async (api) => {
async function fetchData() {
const res = await api.fetch(
"https://www.cls.cn/nodeapi/telegraphList?app=CailianpressWeb&os=web&refresh_type=1&rn=200&sv=8.4.6",
{
headers: { Referer: "https://www.cls.cn/" },
},
);
if (!res.ok || !res.json) {
throw new Error(`Failed to fetch CLS telegraph (HTTP ${res.status})`);
}
const items = res.json.data.roll_data
.filter((item) => item.title)
.map((item) => ({
id: String(item.id),
title: item.title,
subtitle: item.content,
url: item.shareurl,
timestamp: item.ctime,
}));
api.emit(items);
}
await fetchData();
return {
refresh: fetchData,
};
}; module.exports = async (api) => {
async function fetchData() {
const res = await api.fetch(
"https://www.cls.cn/nodeapi/telegraphList?app=CailianpressWeb&os=web&refresh_type=1&rn=200&sv=8.4.6",
{
headers: { Referer: "https://www.cls.cn/" },
},
);
if (!res.ok || !res.json) {
throw new Error(`Failed to fetch CLS telegraph (HTTP ${res.status})`);
}
const items = res.json.data.roll_data
.filter((item) => item.title)
.map((item) => ({
id: String(item.id),
title: item.title,
subtitle: item.content,
url: item.shareurl,
timestamp: item.ctime,
}));
api.emit(items);
}
await fetchData();
return {
refresh: fetchData,
};
}; version: 1.0.0
name: 财联社电报
description: 财联社电报快讯
author: codytseng
author_url: https://github.com/codytseng
category: Finance
tags:
- finance
- news
- chinese
- market version: 1.0.0
name: 财联社电报
description: 财联社电报快讯
author: codytseng
author_url: https://github.com/codytseng
category: Finance
tags:
- finance
- news
- chinese
- market module.exports = async (api) => {
async function fetchData() {
const res = await api.fetch(
"https://www.cls.cn/nodeapi/telegraphList?app=CailianpressWeb&os=web&refresh_type=1&rn=200&sv=8.4.6",
{
headers: { Referer: "https://www.cls.cn/" },
},
);
if (!res.ok || !res.json) {
throw new Error(`Failed to fetch CLS telegraph (HTTP ${res.status})`);
}
const items = res.json.data.roll_data
.filter((item) => item.title)
.map((item) => ({
id: String(item.id),
title: item.title,
subtitle: item.brief,
url: item.shareurl,
timestamp: item.ctime,
}));
api.emit(items);
}
await fetchData();
return {
refresh: fetchData,
};
}; module.exports = async (api) => {
async function fetchData() {
const res = await api.fetch(
"https://www.cls.cn/nodeapi/telegraphList?app=CailianpressWeb&os=web&refresh_type=1&rn=200&sv=8.4.6",
{
headers: { Referer: "https://www.cls.cn/" },
},
);
if (!res.ok || !res.json) {
throw new Error(`Failed to fetch CLS telegraph (HTTP ${res.status})`);
}
const items = res.json.data.roll_data
.filter((item) => item.title)
.map((item) => ({
id: String(item.id),
title: item.title,
subtitle: item.brief,
url: item.shareurl,
timestamp: item.ctime,
}));
api.emit(items);
}
await fetchData();
return {
refresh: fetchData,
};
}; Related Sources
CoinGecko Crypto Markets
FinanceTop cryptocurrencies by market cap from CoinGecko
#crypto #finance #markets
Finnhub Market News
FinanceFinancial news aggregated from major sources like Yahoo, Reuters, and CNBC via Finnhub
#finance #news #market #stocks
Stock Price Monitor
FinanceMonitor 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
华尔街见闻
Finance华尔街见闻 7x24 快讯
#finance #news #chinese #market