📊
实时追踪万币持仓,盈亏一目了然
Crypto Portfolio Tracker API · v1.0.0
1.2k 下载
0 安装
4.6k 收藏
10 浏览
简介
实时追踪 10,000+ 加密货币资产,自动计算持仓盈亏与资产配比,支持 API 与 CLI 双模式接入。
原始描述
Track crypto portfolios with real-time prices, profit/loss calculations, and allocation analysis for Bitcoin, Ethereum, Solana, and 10,000+ tokens.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
Claude Codeunzip -o skill.zip -d ~/.claude/skills/crypto-portfolio-tracker-api/
其它 Agent解压到它自己的 skills 目录,目录名用 crypto-portfolio-tracker-api
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
技能正文
name: crypto-portfolio-tracker-api description: Track cryptocurrency portfolios with real-time prices, P&L calculations, and allocation analysis. Query Bitcoin, Ethereum, Solana and 10,000+ token holdings.
Crypto Portfolio Tracker API
Track cryptocurrency portfolios with real-time prices and P&L calculations.
Installation
npm install crypto-portfolio-tracker-api
Usage
const { PortfolioTracker } = require('crypto-portfolio-tracker-api');
const tracker = new PortfolioTracker();
// Get current price
const btc = await tracker.getPrice('BTC');
// Get multiple prices
const prices = await tracker.getPrices(['BTC', 'ETH', 'SOL']);
// Track portfolio with P&L
const portfolio = await tracker.trackPortfolio([
{ symbol: 'BTC', amount: 0.5, costBasis: 30000 },
{ symbol: 'ETH', amount: 10, costBasis: 2000 }
]);
console.log(`Total: $${portfolio.totalValue}`);
console.log(`P&L: $${portfolio.totalPnL}`);
CLI
# Get price
npx crypto-portfolio-tracker-api price BTC
# Track portfolio from file
npx crypto-portfolio-tracker-api track portfolio.json
API Methods
getPrice(symbol)- Get single token pricegetPrices(symbols)- Get multiple pricestrackPortfolio(holdings)- Calculate portfolio value and P&L
Data Source
Powered by PRISM API
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。