timpalpant / go-iex

A Go library for accessing the IEX Developer API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in client.go in the method GetHistoricalDaily

maxamel opened this issue · comments

No matter what parameter is passed to the method GetHistoricalDaily, the result is always the same.
The problem is that the parameter is not passed onwards to getJSON, it should be passed like this:

err := c.getJSON("/stats/historical/daily", req, &result)

Merged in #13, good catch - thanks!