finnhubio / Finnhub-API

Finnhub API provides institutional-grade financial data to investors, fintech startups and investment firms. We support real-time stock price, global fundamentals and alternative data. https://finnhub.io/docs/api
98 stars 6 forks source link

Stock Symbols example doesn't work #483

Open TLombard2 opened 2 years ago

TLombard2 commented 2 years ago

Not sure if I'm misunderstanding but trying to get all the stocks in the US exchange results in nothing. I've tried several other queries using Symbol lookup and that works but Stock Symbol does not.

const finnhub = require('finnhub');

const api_key = finnhub.ApiClient.instance.authentications['api_key'];
api_key.apiKey = "my api"
const finnhubClient = new finnhub.DefaultApi()

finnhubClient.stockSymbols("US", (error, data, response) => {
    console.log(data)
});
unnameddeveloper commented 1 year ago

The same problem

Pls help @finnhubio