360 Secure SkillHub
360 安全技能中心

Real-time Crypto Price API

面向 Node.js 的加密货币行情客户端与 CLI:通过 PRISM API 获取 10,000+ 代币的实时价格与 24h 涨跌、批量价格查询、市值排行、涨跌榜、历史 OHLCV K 线及代币搜索,适用于交易机器人与行情看板。

strykragent
strykragent
热度 68.74
最近更新 2026-05-11 16:52:13
分类:数据依赖:代码执行 / 第三方 API应用场景:财务 / 市场分析 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add realtime-crypto-price-api
Metadata
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.