tyrauber / stock_quote

A ruby gem that retrieves stock quotes from IEX
MIT License
210 stars 57 forks source link

Need human readable attribute names #43

Closed tyrauber closed 6 years ago

tyrauber commented 6 years ago

Since updating to the Google Finance API, we now need a dictionary of attributes to human readable names. Here are the attributes provided by Google:

symbol, exchange, id, t, e, name, f_reuters_url, f_recent_quarter_date, f_annlyal_date, f_ttm_date, financials, kr_recent_quarter_date, kr_annual_date, kr_ttm_date, c, l, cp, ccol, op, hi, lo, vo, avvo, hi52, lo52, mc, pe, fwpe, beta, eps, dy, ldiv, shares, instown, eo, sid, sname, iid, iname, related, summary, management, moreresources, events

sshakil commented 6 years ago

from: http://www.jarloo.com/real-time-google-stock-api/

attribute human readable
t Ticker
e Exchange
l Last Price
ltt Last Trade Time
l Price
lt Last Trade Time Formatted
lt_dts Last Trade Date/Time
c Change
cp Change Percentage
el After Hours Last Price
elt After Hours Last Trade Time Formatted
div Dividend
yld Dividend Yield

Not sure, this may also be related: https://support.google.com/docs/answer/3093281?hl=en https://drive.googleblog.com/2010/08/tips-tricks-googlefinance-in-google.html

tyrauber commented 6 years ago

Yeah, I saw that too. I think that was a different endpoint, or different version of the api, because the responses are different. The only overlap is t, e, l, c, cp.

Here is what I got. We might be able to piece together the rest from the documents you posted.

attribute human readable
symbol Symbol
exchange Exchange
id ID
t Ticker
e Exchange
name Name
f_reuters_url ?
f_recent_quarter_date ?
f_annlyal_date ?
f_ttm_date ?
financials Financials
kr_recent_quarter_date ?
kr_annual_date ?
kr_ttm_date ?
c Change
l Last Price
cp Change Percentage
ccol ?
op Opening Price
hi High
lo Low
vo Volume
avvo Average Volume
hi52 52 week high
lo52 52 week low
mv ?
pe Price/earnings ratio
fwpe ?
beta The Beta value
eps Earnings per share
dy ?
ldiv ?
shares Shares
instown Institutional Ownership
eo ?
sname Sector Name
iid ?
iname Industry Name
related Related
summary Summary
management Management
moreresources More Resources
events Events
rajat-vig commented 6 years ago

@tyrauber - op is for opening price, will let you know as soon as I explore the remaining ones.

itsonlym3 commented 6 years ago

vo - Volume avvo - Average Volume instown - Institutional Ownership sname - Sector [Name] iname - Industry [Name]

tyrauber commented 6 years ago

Thanks @rajat-vig @itsonlym3, Updated the table above.

Is:

mv - Moving average iid - Industry ID

tyrauber commented 6 years ago

Closing this given the API change (#55)