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

Update ct_search() to allow for "All of yyyy" queries #14

Closed
ChrisMuir opened this issue Mar 16, 2018 · 1 comment
Closed

Update ct_search() to allow for "All of yyyy" queries #14

ChrisMuir opened this issue Mar 16, 2018 · 1 comment

Comments

@ChrisMuir
Copy link
Member

ChrisMuir commented Mar 16, 2018

This was brought up by GH user pedromein in issue #12. The Comtrade API has a (new?) feature that allows for queries that return monthly data (vs annual data) for an entire individual year. Previously, if searching for monthly data, there were two options:

  • Pass all to start_date and end_date to get all monthly data for all years.
  • Pass a date range, in months, to start_date and end_date. Doing this, the most you could get from a single query was five consecutive months worth of data.

Now they have an option to get all monthly data for a single year. So need to update ct_search() to give users this option.

@ChrisMuir
Copy link
Member Author

Function ct_search() is now able to utilize the All of yyyy feature of the Comtrade API (added via commit 8f6f3bf). The function can now pull all monthly data for a given year in a single query.

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

No branches or pull requests

1 participant