返回 Skill 列表
extension
分类: 其它无需 API Key

okx_symbol_prices

从OKX获取指定加密货币现货价格并以美元展示。当用户请求获取特定币种(如BTC等)的OKX价格/报价时使用。

person作者: chgy123hubclawhub

OKX Symbol Prices (USD display)

What this skill does

Gets one-shot spot prices for user-specified symbols from OKX, displayed with a $ sign. For each symbol it prefers quote currency USDT > USDC > USD.

How to run (Windows / PowerShell)

From the workspace root, run:

python ".openclaw/workspace/skills/okx-symbol-prices/scripts/okx_symbol_prices.py" --symbols BTC,ETH,SOL

Optional:

  • Increase timeout (seconds):
python ".openclaw/workspace/skills/okx-symbol-prices/scripts/okx_symbol_prices.py" --symbols BTC,ETH,SOL --timeout 20
  • Output JSON (one object per symbol):
python ".openclaw/workspace/skills/okx-symbol-prices/scripts/okx_symbol_prices.py" --symbols BTC,ETH,SOL --format json

Output conventions

  • Prints results in the same order as --symbols.
  • If a symbol has no USDT/USDC/USD spot ticker on OKX, prints N/A.