{"action":"created","issue":{"url":"https://api.github.com/repos/iexg/IEX-API/issues/38","repository_url":"https://api.github.com/repos/iexg/IEX-API","labels_url":"https://api.github.com/repos/iexg/IEX-API/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/iexg/IEX-API/issues/38/comments","events_url":"https://api.github.com/repos/iexg/IEX-API/issues/38/events","html_url":"https://github.com/iexg/IEX-API/issues/38","id":263747071,"number":38,"title":"Getting total EPS for last 4 quaters from stats API","user":{"login":"yccheok","id":308276,"avatar_url":"https://avatars0.githubusercontent.com/u/308276?v=4","gravatar_id":"","url":"https://api.github.com/users/yccheok","html_url":"https://github.com/yccheok","followers_url":"https://api.github.com/users/yccheok/followers","following_url":"https://api.github.com/users/yccheok/following{/other_user}","gists_url":"https://api.github.com/users/yccheok/gists{/gist_id}","starred_url":"https://api.github.com/users/yccheok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yccheok/subscriptions","organizations_url":"https://api.github.com/users/yccheok/orgs","repos_url":"https://api.github.com/users/yccheok/repos","events_url":"https://api.github.com/users/yccheok/events{/privacy}","received_events_url":"https://api.github.com/users/yccheok/received_events","type":"User","site_admin":false},"labels":[{"id":668341248,"url":"https://api.github.com/repos/iexg/IEX-API/labels/issue","name":"issue","color":"dc372d","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-08T20:00:00Z","updated_at":"2017-10-27T10:39:31Z","closed_at":null,"author_association":"NONE","body":"Currently, I tend to get total EPS for last 4 quarters. As, having EPS for last 4 quarters is more meaningful when doing financial analysis.\r\n\r\nFrom https://api.iextrading.com/1.0/stock/mcd/earnings , I was able to get the following information\r\n> Q3 2017 - null (Because this is not happen yet)\r\n> Q2 2017 - 1.73\r\n> Q1 2017 - 1.47\r\n> Q4 2016 - 1.44\r\n\r\nSince, I'm still missing 1 quarter, I tend to get from Nasdaq site\r\n\r\nhttp://www.nasdaq.com/earnings/report/mcd\r\n\r\n![nasdaq](https://user-images.githubusercontent.com/308276/31320300-0842fc5a-aca5-11e7-8bdf-54604575e4bc.png)\r\n\r\nHence, my calculated EPS for last 4 quarters is\r\n\r\n1.62 + 1.44 + 1.47 + 1.73 = 6.26\r\n\r\nHowever, instead of calculating my own, I prefer to get it directly from https://api.iextrading.com/1.0/stock/mcd/stats . I wish I'm able to get value **6.26** from stats API. But, I couldn't find any value closed to 6.26. The best I can get are\r\n\r\n```\r\nlatestEPS : 5.43 (May I know how do we get this figure?)\r\nttmEPS : 4.64 (I believe we get this by calculating the last 3 quarters => 1.44 + 1.47 +  1.73 = 4.64)\r\n\r\n```\r\nMay I know, is stats API able to provide EPS for last 4 quarters?\r\n\r\nFor reference, this is the EPS 6.12 displayed in Google Finance. (I'm not sure how do they get that value. But, it is closer than my calculation by taking account into 4 quarters)\r\n\r\n![google-finance](https://user-images.githubusercontent.com/308276/31320362-0b866afe-aca6-11e7-9c87-5b50fb120bde.png)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/iexg/IEX-API/issues/comments/339937274","html_url":"https://github.com/iexg/IEX-API/issues/38#issuecomment-339937274","issue_url":"https://api.github.com/repos/iexg/IEX-API/issues/38","id":339937274,"user":{"login":"joshuablackburn-iex","id":6554285,"avatar_url":"https://avatars1.githubusercontent.com/u/6554285?v=4","gravatar_id":"","url":"https://api.github.com/users/joshuablackburn-iex","html_url":"https://github.com/joshuablackburn-iex","followers_url":"https://api.github.com/users/joshuablackburn-iex/followers","following_url":"https://api.github.com/users/joshuablackburn-iex/following{/other_user}","gists_url":"https://api.github.com/users/joshuablackburn-iex/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuablackburn-iex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuablackburn-iex/subscriptions","organizations_url":"https://api.github.com/users/joshuablackburn-iex/orgs","repos_url":"https://api.github.com/users/joshuablackburn-iex/repos","events_url":"https://api.github.com/users/joshuablackburn-iex/events{/privacy}","received_events_url":"https://api.github.com/users/joshuablackburn-iex/received_events","type":"User","site_admin":false},"created_at":"2017-10-27T10:39:31Z","updated_at":"2017-10-27T10:39:31Z","author_association":"CONTRIBUTOR","body":"We have earnings for their GOOGL ticker.  Yahoo may be making manual adjustments to carry over GOOGL attributed earnings to GOOG.  I'll look into whether we want to make those adjustments."}}
{"actor":{"display_login":"joshuablackburn-iex"}}