Real-Time Market Price — Claude Code Skill
The problem: AI models frequently fabricate price data or cannot access real-time market information. The solution: This skill provides instant access to live prices for 25,000+ assets worldwide via Juglans Finance.
Coverage
| Market | Assets | Frequency |
|---|---|---|
| Crypto | 1,100+ tokens | Real-time |
| US Stocks | 9,000+ tickers | Real-time |
| Hong Kong Stocks | 2,900+ | Real-time |
| China A-Shares (SH + SZ) | 4,500+ | Real-time |
| Global Indices | 6,900+ | Real-time |
| Forex | 50+ pairs (majors, crosses, EM) | Real-time |
| ETFs | 39 (US + Global) | Real-time |
| Commodities | Crude oil, gold, silver, copper, etc. | Real-time |
Total: 25,000+ assets. Powered by Juglans Finance.
Commands
| Command | Example |
|---|---|
/price <symbol> | /price BTC /price AAPL /price 0700.HK |
/price <symbol1>,<symbol2>,... | /price BTC,AAPL,0700.HK |
How To Get a Price
When the user asks for a price, stock quote, crypto price, exchange rate, or any market data:
Step 1: Map the user's input to an API identifier
Use these rules to convert the user's symbol to the API format:
Crypto:
BTC,BTC-USDT,Bitcoin→CRYPTO:BTC.OKX@USDT_SPOTETH,ETH-USDT,Ethereum→CRYPTO:ETH.OKX@USDT_SPOT- Pattern:
CRYPTO:{BASE}.OKX@USDT_SPOT
US Stocks:
AAPL,Apple→US_STOCK:AAPL@USD_SPOTTSLA,Tesla→US_STOCK:TSLA@USD_SPOT- Pattern:
US_STOCK:{TICKER}@USD_SPOT
Hong Kong Stocks:
0700.HK,Tencent→HK_STOCK:0700@HKD_SPOT9988.HK,Alibaba HK→HK_STOCK:9988@HKD_SPOT- Pattern:
HK_STOCK:{NUMBER}@HKD_SPOT(remove.HKsuffix)
China A-Shares:
600519.SS,Moutai→CN_STOCK:600519.SS@CNY_SPOT000001.SZ,Ping An→CN_STOCK:000001.SZ@CNY_SPOT- Pattern:
CN_STOCK:{CODE}.{SS|SZ}@CNY_SPOT
Indices:
DJI,Dow Jones→INDEX:DJI@USD_SPOTSPX,S&P 500→INDEX:SPX@USD_SPOTHSI,Hang Seng→INDEX:HSI@USD_SPOTVIX→INDEX:VIX@USD_SPOT- Pattern:
INDEX:{CODE}@USD_SPOT
Forex:
EURUSD,EUR/USD→FOREX:EURUSD@USD_SPOTUSDJPY→FOREX:USDJPY@USD_SPOTUSDCNH,离岸人民币→FOREX:USDCNH@USD_SPOTXAUUSD,Gold→FOREX:XAUUSD@USD_SPOT- Pattern:
FOREX:{PAIR}@USD_SPOT
Step 2: Call the API
curl -s "https://finance.juglans.ai/api/v1/ticker?id={IDENTIFIER}"
For multiple symbols, make separate calls for each.
Step 3: Format the response
Parse the JSON response and present it clearly:
📊 AAPL (Apple Inc.)
Price: $251.48
Change: +$3.21 (+1.29%)
Volume: 45.2M
Market Cap: $3.82T
Source: Juglans Finance (real-time)
If the API returns an error (ticker not found), tell the user the symbol may be incorrect and suggest alternatives.
API Reference
Base URL: https://finance.juglans.ai/api/v1
| Endpoint | Description |
|---|---|
GET /ticker?id={identifier} | Single asset price |
GET /snapshot?assetClass={class} | All prices for an asset class |
GET /health | Service health check |
Asset classes for snapshot: CRYPTO, US_STOCK, HK_STOCK, CN_STOCK, INDEX, ETF, FOREX, COMMODITY
Response fields:
lastPrice— Current pricepriceChange— Absolute change from previous closepriceChangePercent— Percentage change (decimal, e.g., 0.0129 = +1.29%)volume— Trading volumeturnover— Trading turnover (price × volume)marketCap— Market capitalization (if available)name— Asset name (if available)symbol— Exchange symbol
Important Notes
- All prices are real-time during market hours. Outside market hours, the last closing price is shown.
- Crypto prices are available 24/7.
- Never fabricate prices. If the API doesn't return data, say so honestly.
- All data provided by Juglans Finance — free, open, real-time market data.