Finnhub.io icon

Finnhub.io

Consume Finnhub.io API

Stock → Stock Metric

AI-generated

Overview

This node interacts with the Finnhub.io API to retrieve specific stock metrics for a given company symbol. It supports both free and premium API endpoints, allowing users to toggle premium access based on their credentials. Common use cases include fetching financial metrics like price-to-earnings ratio, market capitalization, or other stock-related data for analysis or integration into workflows.

Use Case Examples

  1. Fetch the price-to-earnings ratio for Apple Inc. (AAPL) to analyze its valuation.
  2. Retrieve market capitalization data for a list of stock symbols to monitor portfolio value.

Properties

Name Meaning
Premium Access Toggle to use premium Finnhub API endpoints based on the user's credential.
Symbol The stock symbol of the company to query, e.g., AAPL for Apple Inc.
Metric The specific stock metric to retrieve from Finnhub.io, such as financial ratios or other stock data.
Request Options Settings to control request behavior, including batching, SSL certificate validation, proxy usage, and timeout duration.

Output

JSON

  • metric - The requested stock metric value or data returned from the Finnhub API.
  • symbol - The stock symbol for which the metric was retrieved.
  • timestamp - The time at which the metric data was recorded or retrieved.

Dependencies

  • Finnhub.io API
  • An API key credential for Finnhub.io

Troubleshooting

  • Ensure the API key credential is valid and has the necessary permissions for premium endpoints if premium access is enabled.
  • Verify the stock symbol is correct and supported by Finnhub.io to avoid empty or error responses.
  • Check network settings if using a proxy or if SSL certificate validation is disabled, as misconfiguration can cause request failures.
  • Adjust timeout settings if requests frequently time out due to slow network or server response.

Links

Discussion