{"id":20827334,"url":"https://github.com/realpython/flask-bitcoin-example","last_synced_at":"2025-10-08T00:08:58.758Z","repository":{"id":56184971,"uuid":"84331728","full_name":"realpython/flask-bitcoin-example","owner":"realpython","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-22T02:41:01.000Z","size":22,"stargazers_count":18,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-23T19:27:12.343Z","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/realpython.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":"2017-03-08T14:52:09.000Z","updated_at":"2024-07-12T08:35:13.000Z","dependencies_parsed_at":"2022-08-15T14:20:10.946Z","dependency_job_id":null,"html_url":"https://github.com/realpython/flask-bitcoin-example","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/realpython/flask-bitcoin-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fflask-bitcoin-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fflask-bitcoin-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fflask-bitcoin-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fflask-bitcoin-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realpython","download_url":"https://codeload.github.com/realpython/flask-bitcoin-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fflask-bitcoin-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278866934,"owners_count":26059672,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-17T23:11:49.162Z","updated_at":"2025-10-08T00:08:58.720Z","avatar_url":"https://github.com/realpython.png","language":"Python","readme":"# Flask Bitcoin\n\nBuild an app that will find the best exchange rates for Bitcoin (USD -\u003e Bitcoin)  from the following cryptocurrency exchanges:\n\n1. [Bitstamp](https://www.bitstamp.net/)\n1. [YoBit](https://yobit.net/)\n1. [Bittrex](https://bittrex.com/)\n\nIt should have the following pages:\n\n1. The first page should display the rates and highlight the best one\n1. The second page should display the rates over time\n\n## Getting Started\n\n1. Fork/Clone\n1. Create and activate a virtualenv\n1. Install dependencies\n1. Create the db - `python create_db.py`\n\n### Sanity Check\n\n1. Grab data - `python data.py`\n1. Run the app - `python app.py` and then navigate to - [http://localhost:8080/data](http://localhost:8080/data) and you should see something like:\n\n  ```json\n  [\n    {\n      \"exchange\": \"bitstamp\",\n      \"price\": 1201.37,\n      \"time\": 1201.37\n    }\n  ]\n  ```\n\nKill the server once done.\n\n### Run\n\n```\n$ sh run.sh\n```\n\nThis will run *data.py* to collect data and then run the server in the background. Check [http://localhost:8080/data](http://localhost:8080/data) to make sure it's working. You should also see `got data` outputs in the terminal whenever data is collected.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealpython%2Fflask-bitcoin-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealpython%2Fflask-bitcoin-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealpython%2Fflask-bitcoin-example/lists"}