← 返回
数据分析 Key 中文

Price for Agent

Get real-time prices for crypto, stocks, and commodities. Use when the user asks about asset prices, market data, or needs to check the value of Bitcoin, Ethereum, stocks like NVDA/AAPL, or commodities like gold/silver. Supports natural language queries ("What's the price of Bitcoin?") and direct lookups.
获取加密货币、股票及大宗商品的实时价格。当用户询问资产价格、市场数据,或需要查询比特币、以太坊、特定股票(如NVDA/AAPL)及贵金属(如金银)价格时使用。支持自然语言和直接查询。
edibez
数据分析 clawhub v1.1.0 1 版本 99767.8 Key: 需要
★ 1
Stars
📥 2,128
下载
💾 203
安装
1
版本
#latest

概述

Price for Agent

LLM-friendly price service for crypto, stocks, and commodities.

Base URL: https://p4ai.bitharga.com

Quick Start

1. Register for API Key

curl -X POST https://p4ai.bitharga.com/v1/register \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "my-agent"}'

Response:

{"api_key": "pfa_xxx...", "message": "API key generated successfully"}

2. Query Prices

Natural language:

curl -X POST https://p4ai.bitharga.com/v1/query \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "What is the price of Bitcoin and Ethereum?"}'

Direct lookup:

curl -H "X-API-Key: YOUR_KEY" https://p4ai.bitharga.com/v1/price/bitcoin

Batch:

curl -X POST https://p4ai.bitharga.com/v1/batch \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pairs": ["BTC", "ETH", "NVDA"]}'

Supported Assets

TypeExamples
----------------
CryptoBTC, ETH, SOL, DOGE, XRP, BNB
StocksNVDA, AAPL, TSLA, GOOGL
CommoditiesGOLD, SILVER, OIL

Rate Limits

  • 2 requests per second per API key
  • Global limit: 10 million calls
  • Usage tracked via /v1/usage

Function Calling

curl https://p4ai.bitharga.com/v1/function-schema

OpenAPI Spec

curl https://p4ai.bitharga.com/v1/openapi.yaml

Response Format

{
  "pair": "BTC",
  "price": 70494.63,
  "ask": 70565.13,
  "bid": 70424.14,
  "currency": "USDT",
  "market": "open",
  "timestamp": 1770433814
}

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-03-28 17:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 140,189
data-analysis

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 270 📥 56,919
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 164 📥 59,823