{"id":37064780,"url":"https://github.com/olned/ssc2ce-python","last_synced_at":"2026-01-14T07:34:28.658Z","repository":{"id":57470801,"uuid":"183206458","full_name":"olned/ssc2ce-python","owner":"olned","description":"A Set of Simple Connectors for access To Cryptocurrency Exchanges via websocket based on aiohttp.","archived":false,"fork":false,"pushed_at":"2023-01-01T14:09:48.000Z","size":193,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T23:22:29.436Z","etag":null,"topics":["bitfinex","cex","cexio","coinbase","coinbase-pro","deribit","websocket"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ssc2ce/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olned.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":"2019-04-24T10:30:07.000Z","updated_at":"2024-08-21T05:46:57.000Z","dependencies_parsed_at":"2023-01-31T23:01:12.296Z","dependency_job_id":null,"html_url":"https://github.com/olned/ssc2ce-python","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/olned/ssc2ce-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olned%2Fssc2ce-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olned%2Fssc2ce-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olned%2Fssc2ce-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olned%2Fssc2ce-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olned","download_url":"https://codeload.github.com/olned/ssc2ce-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olned%2Fssc2ce-python/sbom","scorecard":{"id":705586,"data":{"date":"2025-08-11","repo":{"name":"github.com/olned/ssc2ce-python","commit":"32d83f62939e3860f00077024b4542b5963d2139"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Info: no jobLevel write permissions found"],"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":"Code-Review","score":0,"reason":"Found 0/6 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":"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/olned/ssc2ce-python/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/olned/ssc2ce-python/python-publish.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating python:3.8-slim to python:3.8-slim@sha256:1d52838af602b4b5a831beb13a0e4d073280665ea7be7f69ce2382f29c5a613f","Warn: pipCommand not pinned by hash: Dockerfile:13","Warn: pipCommand not pinned by hash: Dockerfile:14","Warn: pipCommand not pinned by hash: Dockerfile:15","Warn: pipCommand not pinned by hash: Dockerfile:16","Warn: pipCommand not pinned by hash: Dockerfile:19","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:24","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   7 pipCommand dependencies pinned"],"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":"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2023-120 / GHSA-45c4-8wx5-qw6w","Warn: Project is vulnerable to: PYSEC-2024-24 / GHSA-5h86-8mv2-jq9f","Warn: Project is vulnerable to: GHSA-5m98-qgg9-wh84","Warn: Project is vulnerable to: GHSA-7gpw-8wmc-pm8g","Warn: Project is vulnerable to: GHSA-8495-4g3g-x7pr","Warn: Project is vulnerable to: PYSEC-2024-26 / GHSA-8qpw-xqxj-h4r2","Warn: Project is vulnerable to: GHSA-9548-qrrj-x5pj","Warn: Project is vulnerable to: PYSEC-2023-246 / GHSA-gfw2-4jvh-wgfg","Warn: Project is vulnerable to: GHSA-pjjw-qhg8-p2p9","Warn: Project is vulnerable to: PYSEC-2023-250 / GHSA-q3qx-c6g2-7pw2","Warn: Project is vulnerable to: PYSEC-2023-251 / GHSA-qvrw-v9rv-5rjx","Warn: Project is vulnerable to: PYSEC-2021-76 / GHSA-v6wp-4m6f-gcjg","Warn: Project is vulnerable to: PYSEC-2023-247 / GHSA-xx9p-xxvh-7g8j"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T06:27:21.689Z","repository_id":57470801,"created_at":"2025-08-22T06:27:21.689Z","updated_at":"2025-08-22T06:27:21.689Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","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":["bitfinex","cex","cexio","coinbase","coinbase-pro","deribit","websocket"],"created_at":"2026-01-14T07:34:28.052Z","updated_at":"2026-01-14T07:34:28.647Z","avatar_url":"https://github.com/olned.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssc2ce\nA set of simple connectors for access to few cryptocurrency Exchanges via websocket based on\n [aiohttp](https://aiohttp.readthedocs.io).\n\nSupported Exchanges:\n- Bitfinex - only public API,\n- CEX.io,\n- Coinbase Pro\n- Deribit\n    \nThis is more of a pilot project, if you have any wishes for adding exchanges or expanding functionality, please register issues.\n\n## Installation\nInstall ssc2ce with:\n```bash\n$ pip install ssc2ce\n```\n\nYou can run some examples with  \n## Bitfinex\n### Description\nAPI description look at [Websocket API v2](https://docs.bitfinex.com/v2/docs/ws-general)\n### Basic example\n```python\nimport asyncio\n\nfrom ssc2ce import Bitfinex\n\nconn = Bitfinex()\n\n\ndef handle_subscription(data, connector: Bitfinex):\n    print(data, f\"received:{connector.receipt_time}\")\n\n\nasync def subscribe():\n    await conn.subscribe({\n        \"channel\": \"ticker\",\n        \"symbol\": \"tBTCUSD\"\n    }, handler=handle_subscription)\n\n\nconn.on_connect_ws = subscribe\n\nloop = asyncio.get_event_loop()\n\ntry:\n    loop.run_until_complete(conn.run_receiver())\nexcept KeyboardInterrupt:\n    print(\"Application closed by KeyboardInterrupt.\")\n\n```\n\n## Deribit \n### Description\n\nAPI description look at [Deribit API v2 websocket](https://docs.deribit.com/v2/?python#json-rpc)\n\n### Basic example\n```python\nimport asyncio\nfrom ssc2ce import Deribit\n\nconn = Deribit()\n\n\nasync def subscribe():\n    await conn.send_public(request={\n        \"method\": \"public/subscribe\",\n        \"params\": {\n            \"channels\": [\"deribit_price_index.btc_usd\"]\n        }\n    })\n\n\ndef handle_subscription(data):\n    method = data.get(\"method\")\n    if method and method == \"subscription\":\n        if data[\"params\"][\"channel\"].startswith(\"deribit_price_index\"):\n            index_name = data[\"params\"][\"data\"][\"index_name\"]\n            price = data[\"params\"][\"data\"][\"price\"]\n            print(f\" Deribit Price Index {index_name.upper()}: {price}\")\n\n\nconn.on_connect_ws = subscribe\nconn.method_routes += [(\"subscription\", handle_subscription)]\n\nloop = asyncio.get_event_loop()\n\n\ntry:\n    loop.run_until_complete(conn.run_receiver())\nexcept KeyboardInterrupt:\n    print(\"Application closed by KeyboardInterrupt.\")\n\n```\n## Run examples from a clone\n\nIf you clone repository you can run examples in docker container.\n\n```bash\nmake run cmd='python examples/bitfinex/bitfinex_basic_example.py'\n```\n\n\nTo run the private.py example, you must create and fill in the .env file, look at .env.example\n\n```bash\nmake run cmd='python examples/deribit/deribit_private.py'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folned%2Fssc2ce-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folned%2Fssc2ce-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folned%2Fssc2ce-python/lists"}