Skip to content
This repository has been archived by the owner on Oct 12, 2020. It is now read-only.

Support start time in get_prices #4

Open
dblock opened this issue Dec 28, 2017 · 0 comments
Open

Support start time in get_prices #4

dblock opened this issue Dec 28, 2017 · 0 comments

Comments

@dblock
Copy link
Owner

dblock commented Dec 28, 2017

Passing ts seems to have no effect, but according to http://www.networkerror.org/component/content/article/1-technical-wootness/44-googles-undocumented-finance-api.html should.

        when :start, :ts then
          query[:ts] = v.to_time.to_i
  context 'with different start', vcr: { cassette_name: 'get_prices_goog_start' } do
    subject do
      GoogleFinance::Prices.get('GOOG', start: Date.parse('2016-1-1 12:00'), fields: %i[date close])
    end
    it 'retrieves prices from 2012' do
      p subject.first
      p subject.last
    end
  end
@dblock dblock changed the title Support start time Support start time in get_prices Dec 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant