Finnhub.io icon

Finnhub.io

Consume Finnhub.io API

Stock → Stock Usa Spending

AI-generated

Overview

This node interacts with the Finnhub.io API to retrieve stock-related data, specifically focusing on USA stock spending information within a specified date range. It is useful for users who want to analyze stock spending trends for a particular stock symbol over a defined period. For example, a financial analyst could use this node to fetch and analyze spending data for a stock symbol like AAPL from January 1, 2023, to March 31, 2023.

Use Case Examples

  1. Fetch USA stock spending data for the symbol 'AAPL' from 2023-01-01 to 2023-03-31 to analyze spending trends.
  2. Retrieve stock spending data for a specific symbol within a custom date range to support investment decisions.

Properties

Name Meaning
Premium Access Toggle to use premium Finnhub endpoints based on the user's credential.
Symbol The stock symbol to query for USA spending data.
From Start date (YYYY-MM-DD) to filter the spending data by actionDate.
To End date (YYYY-MM-DD) to filter the spending data by actionDate.
Request Options Additional request settings such as batching, SSL handling, proxy, and timeout.

Output

JSON

  • symbol - The stock symbol queried.
  • from - The start date of the data range.
  • to - The end date of the data range.
  • spendingData - The detailed stock USA spending data returned from the API, filtered by the specified date range.

Dependencies

  • Finnhub API key credential

Troubleshooting

  • Ensure the stock symbol is valid and correctly formatted to avoid API errors.
  • Verify date formats are in YYYY-MM-DD and that the 'From' date is not after the 'To' date.
  • Check API key credentials and premium access toggle to ensure proper endpoint usage.
  • If SSL errors occur, consider enabling 'Ignore SSL Issues' or configuring a valid proxy.

Discussion