tyrauber / stock_quote

A ruby gem that retrieves stock quotes from IEX
MIT License
211 stars 55 forks source link

How can I specify the exchange in my search ? #66

Open Bertrand-Bichat opened 4 years ago

Bertrand-Bichat commented 4 years ago

Hi,

I want to use stock_quote for French actions (like here: https://www.google.com/search?channel=fs&client=ubuntu&q=cours+ai), but the "AI" symbol already exist in USA market. So when I use StockQuote::Stock.quote("AI"), it's the US action by default.

What is the best way to modify the code above to find "Air Liquide" data for french market (Paris) ?

tyrauber commented 4 years ago

Hi @Bertrand-Bichat, not at the moment, I don't believe. The Gem uses the IEX Cloud API for stock quotes, although in a limited capacity (only a few endpoints). There is a more featured gem, iex-ruby-client, but I am not sure that supports that functionality either. The question is what IEX endpoint supports international symbols and how, but I am not seeing any documentation on that yet. I did find this though.