{"id":16428117,"url":"https://github.com/wangshijun/candy-value-marketcap","last_synced_at":"2026-02-15T01:02:33.697Z","repository":{"id":145467918,"uuid":"123642932","full_name":"wangshijun/candy-value-marketcap","owner":"wangshijun","description":"计算 candy 市值和价值的脚本","archived":false,"fork":false,"pushed_at":"2018-03-03T00:24:11.000Z","size":7,"stargazers_count":2,"open_issues_count":13,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-08T11:40:39.932Z","etag":null,"topics":["bigone","candy","coinmarketcap","cryptocurrency"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/wangshijun.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-02T23:51:25.000Z","updated_at":"2018-06-25T15:54:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"7cc3ee58-2d50-4089-a372-e45120688de5","html_url":"https://github.com/wangshijun/candy-value-marketcap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wangshijun/candy-value-marketcap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangshijun%2Fcandy-value-marketcap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangshijun%2Fcandy-value-marketcap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangshijun%2Fcandy-value-marketcap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangshijun%2Fcandy-value-marketcap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangshijun","download_url":"https://codeload.github.com/wangshijun/candy-value-marketcap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangshijun%2Fcandy-value-marketcap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29463530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"ssl_error","status_checked_at":"2026-02-15T01:01:23.809Z","response_time":53,"last_error":"SSL_read: 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":["bigone","candy","coinmarketcap","cryptocurrency"],"created_at":"2024-10-11T08:15:12.574Z","updated_at":"2026-02-15T01:02:31.653Z","avatar_url":"https://github.com/wangshijun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 计算 Candy 市值和价值的脚本\n\n## 计算思路\n\n1. 从 candy.one 拉取 Candy 内涵代币的数量；\n2. 从 candy.one 拉取 Candy 内涵代币的最新价格，价格来自 big.one；\n3. 根据 1 和 2 的结果计算 Candy 的价值；\n4. 从 coinmarketcap.com 拉取 Candy 的最新市价；\n5. 根据 3 和 4 的结果计算 Candy 的溢价比例；\n\n## 自己运行\n\n需要系统中有 [git](https://git-scm.com/downloads) 和 [Node.js](https://nodejs.org/en/) 运行环境。\n\n逐行执行如下命令：\n\n```\ncd ~\ngit clone git@github.com:wangshijun/candy-value-marketcap.git\ncd candy-value-marketcap\nyarn\nnode index.js\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangshijun%2Fcandy-value-marketcap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangshijun%2Fcandy-value-marketcap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangshijun%2Fcandy-value-marketcap/lists"}