{"id":17686584,"url":"https://github.com/mwarkentin/moneychanger","last_synced_at":"2025-03-30T20:47:53.580Z","repository":{"id":4422024,"uuid":"5559830","full_name":"mwarkentin/moneychanger","owner":"mwarkentin","description":"Moneychanger is a small service which tracks the exchange rates for currencies over time.","archived":false,"fork":false,"pushed_at":"2016-02-05T21:27:01.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T23:57:16.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mwarkentin.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-26T12:33:20.000Z","updated_at":"2018-12-30T19:23:12.000Z","dependencies_parsed_at":"2022-07-21T12:18:06.985Z","dependency_job_id":null,"html_url":"https://github.com/mwarkentin/moneychanger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwarkentin%2Fmoneychanger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwarkentin%2Fmoneychanger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwarkentin%2Fmoneychanger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwarkentin%2Fmoneychanger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mwarkentin","download_url":"https://codeload.github.com/mwarkentin/moneychanger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246379385,"owners_count":20767696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-24T10:45:19.369Z","updated_at":"2025-03-30T20:47:53.554Z","avatar_url":"https://github.com/mwarkentin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Moneychanger\n============\n\nMoneychanger is a small service which tracks the exchange rates for currencies\nover time.\n\n\nRequirements\n------------\n\n* Redis\n\n\nRoutes\n------\n\n### / GET\nReturns a list of currencies which are tracked.\n\n```\n{\n  \"currencies\": [\n    \"jpy\",\n    \"cad\",\n    \"aud\"\n  ]\n}\n```\n\n### /\\\u003ccode\u003e/ GET\nReturns a list of dates which have exchange rates for the currency code. Returns `404` if not found.\n\n```\n{\n  \"currency\": \"cad\", \n  \"dates\": [\n    \"2012-01-01\", \n    \"2012-01-02\"\n  ]\n}\n```\n\n### /\\\u003ccode\u003e/\\\u003cdate\u003e/ GET\nReturns the exchange rate for a specific currency code and date. Returns `404` if not found.\n\n```\n{\n  \"date\": \"2012-01-01\", \n  \"currency\": \"cad\", \n  \"base_currency\": \"usd\", \n  \"rate\": \"1.23\"\n}\n```\n\n### /\\\u003ccode\u003e/\\\u003cdate\u003e/ PUT\nSets the exchange rate for a specific currency code and date. Returns the rate that was set.\n\n```\n\u003e\u003e\u003e url = 'http://127.0.0.1:5000/jpy/2012-01-03/'\n\u003e\u003e\u003e r = requests.put(url, data={'rate': 200})\n\u003e\u003e\u003e r.text\nu'{\"date\": \"2012-01-03\", \"currency\": \"jpy\", \"base_currency\": \"usd\", \"rate\": \"200\"}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwarkentin%2Fmoneychanger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwarkentin%2Fmoneychanger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwarkentin%2Fmoneychanger/lists"}