CoinGecko API 服务端
一个 Node.js Express 服务器,提供简化的 CoinGecko 加密货币数据接口。
快速入门
使用 npx(推荐)
运行以下命令快速安装和启动:
npx coingecko-api-server
手动安装
- 克隆仓库: git clone https://github.com/GaplyDev01/coingecko-api-server.git
- 进入目录并安装依赖: cd coingecko-api-server npm install
- 运行设置脚本: npm run setup
- 启动服务器: npm start
配置
在 .env
文件中配置以下变量:
- PORT: 监听端口,默认为 3000
- COINGECKO_API_KEY: CoinGecko Pro API 密钥(可选)
更多功能及文档详见 README。