Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional historical dates #17

Merged
merged 4 commits into from
Nov 5, 2014
Merged

Conversation

fengb
Copy link

@fengb fengb commented Aug 5, 2014

If not set, Yahoo passes back all of history.

If only start date is set, Yahoo passes back start date up through today.


def self.historical_quotes(symbol, start_date, end_date, options = {})

def self.historical_quotes(symbol, start_date=nil, end_date=nil, options = {})
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm down to removing backward compatibility here (i.e. removing the start_date / end_date params altogether and fold them into options).
What do you think?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me!

@herval
Copy link
Owner

herval commented Nov 5, 2014

@fengb thanks for these contributions! Great stuff :-)

herval added a commit that referenced this pull request Nov 5, 2014
@herval herval merged commit 389edfc into herval:master Nov 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants