← 返回
开发者工具 中文

Real-time Crypto Price API

Provides real-time and historical cryptocurrency prices, market cap rankings, trending tokens, and batch queries for 10,000+ coins via API and CLI.
提供实时和历史加密货币价格、市值排名、热门代币,以及通过API和CLI批量查询10000+种代币的服务。
strykragent
开发者工具 clawhub v1.0.0 1 版本 99269.7 Key: 无需
★ 2
Stars
📥 4,038
下载
💾 44
安装
1
版本
#latest

概述

Real-time Crypto Price API

Get real-time cryptocurrency prices for 10,000+ tokens.

Installation

npm install realtime-crypto-price-api

Usage

const { CryptoPrice } = require('realtime-crypto-price-api');

const client = new CryptoPrice();

// Get Bitcoin price
const btc = await client.getPrice('BTC');
console.log(`Bitcoin: $${btc.price}`);

// Get multiple prices
const prices = await client.getPrices(['BTC', 'ETH', 'SOL']);

// Top coins by market cap
const top10 = await client.getTopCoins(10);

// Trending gainers/losers
const gainers = await client.getTrending('gainers');

// Historical OHLCV data
const history = await client.getHistory('ETH', '1d', 30);

// Search tokens
const results = await client.search('pepe');

CLI

# Single price
npx realtime-crypto-price-api BTC

# Multiple prices
npx realtime-crypto-price-api batch BTC,ETH,SOL

# Top coins
npx realtime-crypto-price-api top 20

# Trending
npx realtime-crypto-price-api trending gainers

API Methods

  • getPrice(symbol) - Single token price with 24h change
  • getPrices(symbols) - Batch price query
  • getTopCoins(limit) - Top by market cap
  • getTrending(direction) - Gainers or losers
  • getHistory(symbol, interval) - OHLCV candles
  • search(query) - Find tokens

Data Source

Powered by PRISM API - aggregated from 50+ exchanges.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 18:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,791
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,842
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,727