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

Other currency sources #39

Merged
merged 9 commits into from
Nov 22, 2016
Merged

Conversation

racitup
Copy link
Collaborator

@racitup racitup commented Oct 4, 2016

Hi, I've completely refactored the management commands (maintaining backward compatibility of course) to add in some new features and Yahoo Finance integration. New features and advantages:

  • An alternative to being tied into openexchangerates
  • YF provides symbols so you don't have to keep a file up-to-date
  • Added ability to get the list of currencies from settings
  • Added ability to get the desired base rate flag from settings
  • Automatic DB base rate change (even with a free oxr account)
  • Simple to add Google Calculator, ECB, etc handlers
  • I'll also update the documentation..

Downsides:

  • I've had to scrape the YF content and I guess there's no guarantee that things will stay where they are now
  • I've only tested on Django 1.9.9, BeautifulSoup 4.4.0, requests 2.11.1, urllib3 1.12, openexchangerates 0.1.1 and python 3.5.2
  • I haven't written any test cases

Happy to take feedback if there are any major headaches in there but really need to get back to the 'day job' ;) Would love to see this merged!

Check it out!

Richard Case added 9 commits October 2, 2016 20:33
Separated out currency source from command code and made modular.
Added command code for specifying base and desired currency source.
Started to integrate yahoo finance.
Added feature for grabbing import currency list and base currency from settings.
Only tested on python 3.5.2.
@panosl panosl merged commit 8ab1ecd into panosl:master Nov 22, 2016
@panosl
Copy link
Owner

panosl commented Nov 22, 2016

It would be great if we could have some form of testing though, feel free to make another pull request so we can have this fixed.

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.

None yet

2 participants