priceforagent
بواسطة edibez
Search & Researchموجز
Get real-time prices for crypto, stocks, and commodities.
الوصف
ما الذي تفعله هذه المهارة
Fetches real-time prices for cryptocurrencies, stocks, and commodities via a REST API. Supports natural language queries, direct symbol lookups, and batch requests. Returns price, bid, ask, and market status in a structured JSON format.
The natural language query endpoint lets agents resolve price questions without symbol mapping logic on the client side.
متى تستخدمها
- Checking Bitcoin price mid-conversation
- Comparing ETH and SOL in a single request
- Looking up NVDA stock before a trade decision
- Getting gold and silver prices for a portfolio update
- Monitoring multiple assets in one batch call
مثال على سير العمل
User asks: What are the current prices of Bitcoin, Ethereum, and NVDA?
- 1
Register for an API key via POST /v1/register
- 2
Send a batch request to /v1/batch with pairs ["BTC", "ETH", "NVDA"]
- 3
Parse the response array for price, bid, ask, and timestamp fields
- 4
Format the results into a readable summary
BTC: $70,494.63, ETH: $3,210.45, NVDA: $892.10 (all prices in USDT, market open)
المتطلبات
- API key from p4ai.bitharga.com (free registration via POST /v1/register)
التثبيت
clawhub install edibez/priceforagentشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.