{"id":37071511,"url":"https://github.com/hypernormalisation/coinblockpro","last_synced_at":"2026-01-14T08:23:29.178Z","repository":{"id":62563420,"uuid":"300679323","full_name":"hypernormalisation/coinblockpro","owner":"hypernormalisation","description":"A toy server written in Sanic to mimic an online currency exchange, with REST and websocket APIs.","archived":false,"fork":false,"pushed_at":"2020-10-09T21:37:08.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-05T23:57:29.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hypernormalisation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-02T16:49:00.000Z","updated_at":"2020-12-31T16:10:52.000Z","dependencies_parsed_at":"2022-11-03T15:31:33.912Z","dependency_job_id":null,"html_url":"https://github.com/hypernormalisation/coinblockpro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hypernormalisation/coinblockpro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypernormalisation%2Fcoinblockpro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypernormalisation%2Fcoinblockpro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypernormalisation%2Fcoinblockpro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypernormalisation%2Fcoinblockpro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hypernormalisation","download_url":"https://codeload.github.com/hypernormalisation/coinblockpro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypernormalisation%2Fcoinblockpro/sbom","scorecard":{"id":475464,"data":{"date":"2025-08-11","repo":{"name":"github.com/hypernormalisation/coinblockpro","commit":"d8d7571894f6ab65faa6519642331e8a5557ed26"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T15:10:15.103Z","repository_id":62563420,"created_at":"2025-08-19T15:10:15.103Z","updated_at":"2025-08-19T15:10:15.103Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:16:59.381Z","status":"ssl_error","status_checked_at":"2026-01-14T08:13:45.490Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-14T08:23:28.404Z","updated_at":"2026-01-14T08:23:29.167Z","avatar_url":"https://github.com/hypernormalisation.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coinblockpro\n\nA toy server written in Sanic to mimic an online currency exchange, with\nREST and websocket APIs.\n\n## Installation\n\n`coinblockpro` is available on the Python Package Index (PyPI).\n\n`pip install coinblockpro`\n\n## Run\n\nThe bash script `run_cbp_server` is placed in the user's bin when the\npackage is installed. Running:\n\n`./run_cbp_server`\n\nwill produce output like the following:\n\n```\n[2020-10-05 19:19:37 +0100] [34227] [INFO] Creating ticker db at /tmp/tickers.db.\n[2020-10-05 19:19:37 +0100] [34227] [INFO] Created db.\n[2020-10-05 19:19:37 +0100] [34227] [INFO] Running websocket server.\n[2020-10-05 19:19:37 +0100] [34227] [INFO] Goin' Fast @ http://0.0.0.0:8001\n[2020-10-05 19:19:37 +0100] [34227] [INFO] Starting modulation coroutine.\n[2020-10-05 19:19:37 +0100] [34227] [INFO] Starting worker [34227]\n[2020-10-05 19:19:38 +0100] [34228] [INFO] Running REST server.\n[2020-10-05 19:19:38 +0100] [34228] [INFO] Goin' Fast @ http://0.0.0.0:8000\n[2020-10-05 19:19:38 +0100] [34228] [INFO] Starting worker [34228]\n[2020-10-05 19:19:43 +0100] [34227] [INFO] update to market btc_ltc: 3350.505 -\u003e 3292.16\n[2020-10-05 19:19:49 +0100] [34227] [INFO] update to market ltc_dot: 2752.763 -\u003e 2708.661\n```\n\n## Market simulation\n\nThe primary purpose of this toy server is to facilitate the development\nof algorithms to keep real-time information on an exchange's markets.\n\nAs such, the information simulated is reduced to a single price per\nmarket, initialised randomly between 0 and 10000. A single market is\nchosen randomly and fluctuated at a random time interval of the order of\nhalf a second.\n\n## Connecting to the server\n\nThe server runs on the localhost.\n\nThe REST API is available on port 8000, while the websocket API is\navailable on port 8001.\n\n### REST endpoints:\n\n`/full_ticker` - no parameters, returns a json response of the form:\n\n```\n{ 'result':  \n    {'btc_eur':  2134.12, 'btc_usd': 2245.76} ... }\n}\n```\n\n`/single_ticker` - single parameter \"market\", must be given. Returns a\njson response of the form:\n\n```\n{ 'result':\n    {'btc_eur': 2134.12}\n}\n```\n\nThe list of available markets can be found at:\n\n```python\nimport coinblockpro\ncoinblockpro.markets\n```\n\nSome example requests are given below:\n\n```python\nimport requests\nr1 = requests.get('http://0.0.0.0:8000/full_ticker')\nr2 = requests.get('http://0.0.0.0:8000/singler_ticker', params={'market': 'btc_eur'})\n```\n\n### Websocket API\n\nThe websocket API runs on the localhost, on port 8001, and gives\nreal-time information on markets as they change at the `/ticker_feed`\nendpoint.\n\nAn example configuration using the `websockets` library is given below.\n\n```python\nimport websockets\nimport asyncio\nimport websockets\n\n\nasync def subscribe():\n    async with websockets.connect('ws://0.0.0.0:8001/ticker_feed') as ws:\n        while True:\n            resp = await ws.recv()\n            print(resp)\n\nif __name__ == '__main__':\n    asyncio.run(subscribe())\n\n```\n\n## Example client\n\nExample clients to build up and keep real-time information on markets\nfrom the server are given in the\n[Jupyter notebook here](ticker_client.ipynb).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypernormalisation%2Fcoinblockpro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypernormalisation%2Fcoinblockpro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypernormalisation%2Fcoinblockpro/lists"}