Finnhub.io icon

Finnhub.io

Consume Finnhub.io API

Stock → Stock Market Status

AI-generated

Overview

This node interacts with the Finnhub.io API to retrieve the stock market status for a specified exchange. It is useful for users who want to monitor the current status of stock exchanges, such as whether the market is open or closed, for trading or analysis purposes.

Use Case Examples

  1. A trader wants to check if the New York Stock Exchange (NYSE) is currently open before placing trades.
  2. A financial analyst needs to monitor multiple stock exchanges' statuses to automate trading strategies based on market hours.

Properties

Name Meaning
Premium Access Toggle to use premium Finnhub endpoints based on the user's credential.
Exchange The code of the stock exchange to check the market status for. This is a required field.
Request Options Settings to control request behavior such as batching, SSL certificate validation, proxy usage, and timeout duration.

Output

JSON

  • exchange - The stock exchange code for which the status is returned.
  • marketStatus - The current status of the stock market (e.g., open, closed).
  • timestamp - The time at which the market status was retrieved.

Dependencies

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

Troubleshooting

  • Ensure the API key credential is correctly configured and has access to the required endpoints, especially if using premium features.
  • Verify the exchange code is valid and supported by Finnhub.io to avoid errors.
  • Check network settings if using a proxy or if SSL certificate validation is disabled, as these can affect connectivity.
  • Timeout errors may occur if the server is slow to respond; adjust the timeout setting accordingly.

Links

Discussion