mcdallas / wallstreet

Real time stock and option data.
MIT License
1.24k stars 197 forks source link

use get for longName such that FX pair price can work #19

Closed sorying closed 6 years ago

sorying commented 6 years ago

Hi there - currently Yahoo API support getting currency data such as EURUSD=X as ticker (see https://finance.yahoo.com/quote/EURUSD%3DX/?p=EURUSD%3DX)

Unfortunately these returned JSON doesn't contain longName field, hence it failed. Below is just a simple change to ensure it doesn't fail