{"id":15720023,"url":"https://github.com/agarwalyeshu/node-okex-ws-spot","last_synced_at":"2026-04-06T04:31:59.019Z","repository":{"id":80488949,"uuid":"133653525","full_name":"agarwalyeshu/node-okex-ws-spot","owner":"agarwalyeshu","description":"OKEX spot public web sockets","archived":false,"fork":false,"pushed_at":"2024-06-17T20:03:53.000Z","size":9,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-22T21:14:58.882Z","etag":null,"topics":["bitcoin","cryptocurrency","exchange","okcoin","okex","websocket"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/agarwalyeshu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-16T11:09:17.000Z","updated_at":"2022-08-02T20:00:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"e5e9176c-09d4-468e-8dc1-79b3d5bffd93","html_url":"https://github.com/agarwalyeshu/node-okex-ws-spot","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.06666666666666665,"last_synced_commit":"15fd169387f9d61187e2c13ee39b4835d9a02250"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agarwalyeshu/node-okex-ws-spot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agarwalyeshu%2Fnode-okex-ws-spot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agarwalyeshu%2Fnode-okex-ws-spot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agarwalyeshu%2Fnode-okex-ws-spot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agarwalyeshu%2Fnode-okex-ws-spot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agarwalyeshu","download_url":"https://codeload.github.com/agarwalyeshu/node-okex-ws-spot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agarwalyeshu%2Fnode-okex-ws-spot/sbom","scorecard":{"id":170213,"data":{"date":"2025-08-11","repo":{"name":"github.com/agarwalyeshu/node-okex-ws-spot","commit":"15fd169387f9d61187e2c13ee39b4835d9a02250"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 1/15 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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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 2 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":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-16T16:13:36.500Z","repository_id":80488949,"created_at":"2025-08-16T16:13:36.501Z","updated_at":"2025-08-16T16:13:36.501Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31460023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"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":["bitcoin","cryptocurrency","exchange","okcoin","okex","websocket"],"created_at":"2024-10-03T21:57:32.013Z","updated_at":"2026-04-06T04:31:58.996Z","avatar_url":"https://github.com/agarwalyeshu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-okex-ws-spot\n\nSmall library to get updates from OKEX spot web sockets.\n\n# Install:\n```\nnpm install --save node-okex-ws-spot\n```\n\n# Usage:\n\n```javascript\nconst Okex = require('node-okex-ws-spot');\n\nconst okexSocket = new Okex();\n\nvar pairs = ['BCH/BTC','LTC/BTC','LTC/USDT','LTC/ETH'];\n\n//Subscribe pairs ticker\nokexSocket.addSubscriptionTicker(pairs);\n\n//Subscribe pairs deals\nokexSocket.addSubscriptionDeals(pairs);\n\n//Subscribe pairs depth\nokexSocket.addSubscriptionDepth(pairs);\n\n//Subscribe pairs K-line\n//K-line time period, such as 1min, 3min, 5min, 15min, 30min, 1hour, 2hour, 4hour, 6hour, 12hour, day, 3day, week\nokexSocket.addSubscriptionKline(pairs,'30min');\n\n//to terminate the socket and all the subscription\nokexSocket.terminate();\n\nokexSocket.onMessage(data =\u003e {\n    console.log(data[0]['data']);\n});\n```\nTake a look in examples.\n\n# Todo.\nAdd authenticate endpoints.\n\n# Disclaimer.\nUse it at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagarwalyeshu%2Fnode-okex-ws-spot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagarwalyeshu%2Fnode-okex-ws-spot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagarwalyeshu%2Fnode-okex-ws-spot/lists"}