Glanceway Glanceway
Todas las fuentes

Finnhub Market News

Finanzas v1.0.0

Financial news aggregated from major sources like Yahoo, Reuters, and CNBC via Finnhub

@codytseng #finance #news #market #stocks

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

  • FINNHUB_TOKEN — Required. Free API key from finnhub.io Use your own credential; do not share it in screenshots or public files.
  • CATEGORY — Optional. Category of financial news

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.

Configuración

Nombre Clave Tipo Requerido Predeterminado Descripción
API Token FINNHUB_TOKEN secret Sí — Free API key from finnhub.io
News Category CATEGORY select No general Category of financial news
generalforexcryptomerger

Código fuente

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,
  };
};

Fuentes relacionadas