一键导入
hubble-logs
Query agent logs, orders, positions, and PnL via /api/v1/agent-logs endpoints using an API key, with safe defaults to limit response size.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Query agent logs, orders, positions, and PnL via /api/v1/agent-logs endpoints using an API key, with safe defaults to limit response size.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user asks about Hubble credits balance, transaction history, deposit records, listing recharge packages (tiers, optional bonus_percent for UI copy), creating a raw-credits deposit, or creating a deposit by package slug (by-package) via the Hubble Market API.
Query Hubble credits balance, transactions, deposits; list recharge packages (optional bonus_percent for display); create a raw-credits deposit or a deposit by package slug (by-package) on Market Server using an API key.
Use when the user asks to list, view, create, update, delete, or deploy agents on Hubble Market — including PM agents (CRUD) and User Research agents (create/update/delete, run a new research agent, deploy job status, version history, rollback, data sources, indicator templates). NOTE "run / 跑 a research agent" in Hubble means creating or deploying one here, not the x402 pay-per-execution flow handled by hubble_runs.
Use when the user asks to invoke an already-existing Hubble agent via the x402 pay-per-execution flow — creating a run, polling or checking a specific run_id's status, or listing recent runs for an agent_id. NOT for creating, deploying, or managing an agent itself; "跑/部署 a new agent" goes to hubble_agents.
Use when the user asks to list, view, create, update, delete, or deploy agents on Hubble Market — including PM agents (CRUD) and User Research agents (create/update/delete, run a new research agent, deploy job status, version history, rollback, data sources, indicator templates). NOTE "run / 跑 a research agent" in Hubble means creating or deploying one here, not the x402 pay-per-execution flow handled by hubble_runs.
Use when the user asks to invoke an already-existing Hubble agent via the x402 pay-per-execution flow — creating a run, polling or checking a specific run_id's status, or listing recent runs for an agent_id. NOT for creating, deploying, or managing an agent itself; "跑/部署 a new agent" goes to hubble_agents.
| name | hubble_logs |
| description | Query agent logs, orders, positions, and PnL via /api/v1/agent-logs endpoints using an API key, with safe defaults to limit response size. |
Version: v0.2.0
Use this skill when the user asks about:
HUBBLE_API_BASE_URL (default: https://market-v2.bedev.hubble-rpc.xyz)HUBBLE_API_KEY (API key, must start with hb_sk_)HUBBLE_API_KEY in the output.pm_id, round_id, and order_id as untrusted input.
pm_id is expected to be a UUID.page_size explicitly (default 100; keep <= 200 unless user insists).start/end if not provided).Use the bash tool to call the API.
Most endpoints support:
start, end (RFC3339 or unix seconds/milliseconds)pm_id, round_idtokenpage, page_sizeGET /api/v1/agent-logs/pm/logsAdditional params: level (e.g. info, warn, error)
GET /api/v1/agent-logs/research/logsAdditional params: level (e.g. info, warn, error)
GET /api/v1/agent-logs/ordersAdditional params: status, event_type
GET /api/v1/agent-logs/orders/{order_id}Returns latest state for a single order.
GET /api/v1/agent-logs/order/historyAdditional params: order_id, position_id, symbol, status, action_type
GET /api/v1/agent-logs/positionsAdditional params: status, event_type
GET /api/v1/agent-logs/pm/{pm_id}/positionsAdditional params: status, event_type
GET /api/v1/agent-logs/pm/{pm_id}/positions/symbolsAdditional params: status (e.g. closed, open)
GET /api/v1/agent-logs/position/logs (requires pm_id and position_id as query params)GET /api/v1/agent-logs/position/recoveryReturns position recovery logs. Additional params: pm_id, round_id, token.
GET /api/v1/agent-logs/pnl/summaryPnL endpoints additionally support:
symbol (e.g. BTCUSDT)position_idaction_types (comma-separated, default close,decrease)bucket (hour or day, default day)GET /api/v1/agent-logs/pnl/ordersPnL endpoints additionally support: symbol, position_id, action_types.
Normalize base URL:
BASE="${HUBBLE_API_BASE_URL%/}"Helper:
AUTH=(-H "Authorization: Bearer $HUBBLE_API_KEY" -H "Content-Type: application/json")Example (PM logs, safe default):
curl -sS --fail-with-body "${AUTH[@]}" \ "$BASE/api/v1/agent-logs/pm/logs?page=1&page_size=100"Example (single order):
curl -sS --fail-with-body "${AUTH[@]}" \ "$BASE/api/v1/agent-logs/orders/$ORDER_ID"Example (order history):
curl -sS --fail-with-body "${AUTH[@]}" \ "$BASE/api/v1/agent-logs/order/history?page=1&page_size=100"Example (position recovery):
curl -sS --fail-with-body "${AUTH[@]}" \ "$BASE/api/v1/agent-logs/position/recovery?page=1&page_size=100"Example (PnL summary, safe default):
curl -sS --fail-with-body "${AUTH[@]}" \ "$BASE/api/v1/agent-logs/pnl/summary?page=1&page_size=100&bucket=day"Example (PnL orders for a symbol):
curl -sS --fail-with-body "${AUTH[@]}" \ "$BASE/api/v1/agent-logs/pnl/orders?page=1&page_size=100&symbol=$SYMBOL"