Getting stock quotes from Yahoo Finance API with ISIN

I am creating a Node.js application and I ran into a little problem.

I want to get real-time stock price from Yahoo Finance based on ISIN shares.

I already get this price using the stock symbol (for example: AAPL for Apple Inc.)

This is my code:

var stock_url = "http://finance.yahoo.com/d/quotes.csv?s=AAPL&f=a";

request(stock_url, function (error, response, body) { 
    if (!error && response.statusCode == 200) {  
        var stock_data = body;
        console.log("Yahoo Finance API: ", stock_data);      
    };
});

Thank!

+4
source share

Source: https://habr.com/ru/post/1674823/


All Articles