跳至主要内容
小龙虾小龙虾AI
🤖

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.

下载4.4k
星标2
版本1.0.0
金融财务
安全通过

技能说明


name: realtime-crypto-price-api description: Real-time cryptocurrency price data API for Bitcoin, Ethereum, Solana and 10,000+ tokens. Get live prices, historical data, trending coins, and batch queries for trading bots and dashboards.

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.

如何使用「Real-time Crypto Price API」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Real-time Crypto Price API技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能