Glanceway Glanceway
Alle Quellen

华尔街见闻

Finanzen v1.0.0

华尔街见闻 7x24 快讯

@codytseng #finance #news #chinese #market

Install and configure this source

  1. Install Glanceway and open it on your Mac before using the install link above.
  2. Choose Install in Glanceway. If the browser cannot open the app, download the .gwsrc file and import it through source management.
  3. Complete the required fields below, save, and choose a refresh interval. Check the source after its first successful fetch.

Configuration checklist

  • CHANNEL — Optional. 关注的新闻频道

If items are missing

  • Verify the field names, list entries, and credentials against the current version’s configuration table. Sample values below are examples, not active credentials.
  • Check network access and upstream service availability. Authentication failures and rate limits can prevent a refresh; use a slower interval when the provider limits requests.
  • An empty result can also mean there are no matching items. Fetched content and update timing depend on the provider and source implementation.

Konfiguration

Name Schlüssel Typ Erforderlich Standard Beschreibung
频道 CHANNEL select Nein global-channel 关注的新闻频道
global-channela-stock-channelus-stock-channelforex-channelcommodity-channelhk-stock-channel

Quellcode

id: codytseng/wallstreetcn
version: 1.0.0
name: 华尔街见闻
description: 华尔街见闻 7x24 快讯
author: codytseng
author_url: https://github.com/codytseng
category: Finance
tags:
  - finance
  - news
  - chinese
  - market

config:
  - key: CHANNEL
    name: 频道
    type: select
    required: false
    default: global-channel
    description: 关注的新闻频道
    options:
      - global-channel
      - a-stock-channel
      - us-stock-channel
      - forex-channel
      - commodity-channel
      - hk-stock-channel
module.exports = async (api) => {
  const channel = api.config.get("CHANNEL") || "global-channel";

  async function fetchData() {
    const res = await api.fetch(
      `https://api-one.wallstcn.com/apiv1/content/lives?channel=${channel}&limit=200`,
    );
    if (!res.ok || !res.json) {
      throw new Error(`Failed to fetch wallstreetcn news (HTTP ${res.status})`);
    }

    const items = res.json.data.items.map((item) => ({
      id: String(item.id),
      title: item.title,
      subtitle: item.content_text,
      url: item.uri,
      timestamp: item.display_time,
    }));

    api.emit(items);
  }

  await fetchData();

  return {
    refresh: fetchData,
  };
};

Ähnliche Quellen