https://github.com/wangshijun/candy-value-marketcap
计算 candy 市值和价值的脚本
https://github.com/wangshijun/candy-value-marketcap
bigone candy coinmarketcap cryptocurrency
Last synced: 5 months ago
JSON representation
计算 candy 市值和价值的脚本
- Host: GitHub
- URL: https://github.com/wangshijun/candy-value-marketcap
- Owner: wangshijun
- Created: 2018-03-02T23:51:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-03T00:24:11.000Z (over 8 years ago)
- Last Synced: 2025-09-08T11:40:39.932Z (11 months ago)
- Topics: bigone, candy, coinmarketcap, cryptocurrency
- Language: JavaScript
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 计算 Candy 市值和价值的脚本
## 计算思路
1. 从 candy.one 拉取 Candy 内涵代币的数量;
2. 从 candy.one 拉取 Candy 内涵代币的最新价格,价格来自 big.one;
3. 根据 1 和 2 的结果计算 Candy 的价值;
4. 从 coinmarketcap.com 拉取 Candy 的最新市价;
5. 根据 3 和 4 的结果计算 Candy 的溢价比例;
## 自己运行
需要系统中有 [git](https://git-scm.com/downloads) 和 [Node.js](https://nodejs.org/en/) 运行环境。
逐行执行如下命令:
```
cd ~
git clone git@github.com:wangshijun/candy-value-marketcap.git
cd candy-value-marketcap
yarn
node index.js
```