hummingbot/condor/execution-data-with-code

Claude Code and agent skill by hummingbot/condor

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Analyze bot/controller/executor performance — use run_code with verified

Install

npx vskill@latest install hummingbot/condor/execution-data-with-code

SKILL.md

The same SKILL.md was published earlier as hummingbot/condor/execution-data-with-code.

Execution Data — client.bot_orchestration.* + client.executors.* + client.portfolio.* inside run_code

⚠️ STOP — self-audit before any tool call
  1. Did you call `manage_skill(action="read", name="execution_data_with_code")` before writing any code?
  • NO → You are here now. Good. Read the schemas below; write the COMPLETE snippet on the NEXT call.
  • YES → Proceed. The schema is already in your context.
  1. Is your call covered by the API reference below?
  • YES → Use it directly. Do NOT call dir(client), catalog(), inspect.signature, or any raw probe first. Those calls waste turns — the schemas here are verified.
  • NO → A single raw probe is acceptable only for calls not listed here.

The cost of skipping this read: 5+ wasted discovery calls.


First-call rule

Write the complete, final snippet on the first `run_code` call.

  • Aggregate, sort, and format in ONE call — don't split into "fetch then format".
  • The whole fleet is one get_active_bots_status call — never loop get_bot_status per bot.
  • asyncio.gather(..., return_exceptions=True) + isinstance(r, Exception) per result — never catch and swallow silently.

⚠️ stdout is clipped at ~4000 chars. When outputting many rows (100+ controllers), only print the top N and rely on result for structured data. A second run_code(action="get") call to recover truncated output is the same wasted turn as splitting into fetch+format — avoid it by limiting print output upfront. Pattern:

python
for r in rows[:20]: # print only top 20
print(...)
print(f"\n... {len(rows) - 20} more rows in result")
result = rows # full data always in result

When to use what
RequestToolNotes
All active bots + controllers + PNLrun_code → get_active_bots_statusFull fleet snapshot — one call
One bot's controller performancerun_code → get_bot_status(bot_name)Same shape as fleet
Controller PNL as time seriesrun_code → get_controller_performance_historySee verified schema below
Latest controller snapshot (all bots ever)run_code → get_latest_controller_performance⚠️ flat list, includes stopped bots AND zero-volume zombies — filter both
Portfolio balances (formatted)MCP get_portfolio_overviewReturns text — NOT programmatic
Spot balances in USD (programmatic)run_code → client.portfolio.get_state()JSON breakdown by token
Portfolio value time seriesrun_code → client.portfolio.get_history()Spot balances only — see schema
Raw executor list (filter by type/pair/controller)MCP list_executorsNo run_code needed
Single executor detail + logsMCP get_executorNo run_code needed
Aggregate executor PNL by controller_idMCP get_performance_reportNo run_code needed; ⚠️ see warning below
Executor history / counts / closed PNLrun_code → client.executors.search_executorsSee schema below — NOT search_history
Historical ordersMCP search_history(data_type="orders")CEX order records only
Historical perp positionsMCP search_history(data_type="perp_positions")
Historical LP positionsMCP search_history(data_type="clmm_positions")

⚠️ `search_history` does NOT have an executor data_type. Executor history comes exclusively from client.executors.search_executors().

⚠️ `get_portfolio_overview` (MCP tool) returns formatted text, not JSON. For programmatic access (compute percentages, aggregate types) use client.portfolio.get_state() inside run_code.


API reference
get_active_bots_status() — all running bots
python
resp = await client.bot_orchestration.get_active_bots_status()
data = resp["data"] # ⚠️ MUST unwrap: resp has {"status": "success", "data": {...}}
# data shape:
# {
# "bot-name-xyz": {
# "status": "running",
# "performance": {
# "ctrl_name_1": {
# "status": "running", # or "stopped"
# "performance": {
# "global_pnl_quote": 268.84, # = realized + unrealized
# "realized_pnl_quote": 276.99,
# "unrealized_pnl_quote": -8.16,
# "realized_pnl_pct": 0.1412, # FRACTION — multiply by 100 for %
# "unrealized_pnl_pct": -0.00416,
# "volume_traded": 196127.66, # in QUOTE currency of the pair
# "active_executors": 0,
# "total_executors": 0,
# }
# },
# }
# }
# }
get_bot_status(bot_name) — one bot (same payload, single bot)
python
resp = await client.bot_orchestration.get_bot_status("my-bot-name")
data = resp["data"] # same shape as above but keyed to one bot only

get_latest_controller_performance() — latest snapshot, all bots ever ✅ verified
get_latest_controller_performance(bot_name: Optional[str] = None) -> Dict[str, Any]
python
resp = await client.bot_orchestration.get_latest_controller_performance()
# ⚠️ data is a FLAT LIST — NOT a bot-name dict like get_active_bots_status
# ⚠️ includes ALL bots ever (stopped + running) — filter by status == "running"
# ⚠️ includes zombie instances with volume_traded == 0 — filter by vol > 0
# ⚠️ timestamps may be STALE for stopped bots (last-run timestamp, not current)
# ⚠️ the SAME controller_id can appear in MULTIPLE bot rows (one row per bot instance, not per controller)
# — if you want per-controller totals, aggregate by controller_id with a defaultdict
# resp["data"] shape:
# [
# {
# "timestamp": "2026-09-04T09:22:02.112930+00:00", # may be stale
# "bot_name": "my-bot-name-...",
# "controller_id": "my_controller_v2",
# "status": "running", # filter on this
# "performance": {
# "realized_pnl_quote": -269.28,
# "unrealized_pnl_quote": -45.75,
# "unrealized_pnl_pct": -0.00151, # FRACTION
# "realized_pnl_pct": -0.00891,
# "global_pnl_quote": -315.03,
# "global_pnl_pct": -0.01043,
# "volume_traded": 3020366.34, # in QUOTE currency of the pair
# "positions_summary": [...], # per-pair breakdown — MAY BE EMPTY
# "close_type_counts": {"CloseType.EARLY_STOP": 6748, ...}
# },
# "custom_info": {}
# }, ...
# ]
# NO pagination key
rows = [
r for r in resp["data"]
if r.get("status") == "running"
and (r.get("performance", {}).get("volume_traded") or 0) > 0 # drop zombies
]

Aggregating by controller_id (when you want per-controller totals, not per-bot-instance):

python
from collections import defaultdict
by_ctrl = defaultdict(lambda: {"vol": 0.0, "pnl": 0.0, "instances": 0})
for r in rows:
p = r["performance"]
ctrl = r["controller_id"]
by_ctrl[ctrl]["vol"] += p.get("volume_traded", 0) or 0
by_ctrl[ctrl]["pnl"] += p.get("global_pnl_quote", 0) or 0
by_ctrl[ctrl]["instances"] += 1

get_controller_performance_history() — time series ✅ verified
get_controller_performance_history(
bot_name: Optional[str] = None,
controller_id: Optional[str] = None,
limit: Optional[int] = None, # default 100
cursor: Optional[str] = None, # pagination
start_time: Optional[str] = None, # ISO-8601 string (NOT unix int)
end_time: Optional[str] = None, # ISO-8601 string
interval: str = "5m" # ⚠️ ALWAYS use "5m" — coarser silently drops controllers
) -> {"status": "success", "data": [...], "pagination": {...}}

Response:

  • data: same item shape as get_latest_controller_performance — flat list, one row per controller per time bucket
  • pagination: {next_cursor, has_more, limit, interval} — cursor-paginate when has_more=True
  • Rows are ordered by timestamp ascending

⚠️ Interval warning: intervals coarser than 5m silently drop controllers from the result — always use interval="5m".


client.portfolio.* — portfolio state and history ✅ verified
python
# Spot balance state — all accounts/connectors/tokens
state = await client.portfolio.get_state()
# Shape:
# {
# "account_name": {
# "connector_name": [
# {"token": str, "units": float, "price": float,
# "value": float, "available_units": float}
# ]
# }
# }
# Portfolio value history (spot balances only, ~5m snapshots)
hist = await client.portfolio.get_history(
limit=100, # default 100
cursor=None, # pagination
start_time=None, # ⚠️ UNIX timestamp (int), NOT ISO string
end_time=None, # UNIX timestamp (int)
interval=None, # optional bucket interval
account_names=None,
connector_names=None,
)
# Shape:
# {
# "data": [
# {
# "timestamp": "2026-09-04T09:23:00+00:00", # ISO-8601 UTC
# "state": { # same shape as get_state()
# "account_name": {"connector_name": [{token, units, price, value, available_units}]}
# }
# }, ...
# ],
# "pagination": {"limit": int, "has_more": bool, "next_cursor": str|null, "total_count": int}
# }

⚠️ `client.portfolio.get_history()` captures spot balances only. Perp unrealized PNL and CLMM LP value are not included in the snapshots.

⚠️ `start_time`/`end_time` in `get_history()` are UNIX ints, not ISO strings.

Other `client.portfolio` methods: get_distribution() (token % distribution), get_portfolio_summary(), get_total_value(), get_accounts_distribution().


client.executors.search_executors() — executor history ✅ verified
search_executors(
account_names: List[str] | None = None,
connector_names: List[str] | None = None,
trading_pairs: List[str] | None = None,
executor_types: List[str] | None = None, # e.g. ["grid_executor", "order_executor"]
status: str | None = None, # "RUNNING" or "TERMINATED"
controller_ids: List[str] | None = None,
cursor: str | None = None,
limit: int = 50 # max 200 per page
) -> {"data": [...], "pagination": {...}}

Per-record fields: executor_id, executor_type, account_name, connector_name, trading_pair, side, status, close_type, is_active, is_trading, created_at, closed_at, close_timestamp (Unix float), controller_id, net_pnl_quote (realized net of fees), net_pnl_pct (fraction), cum_fees_quote, filled_amount_quote (volume), config, custom_info.

Known `executor_type`: grid_executor, order_executor, position_executor, dca_executor, lp_executor

Known `close_type`: TAKE_PROFIT, POSITION_HOLD, EARLY_STOP, SYSTEM_CLEANUP

⚠️ No date filter. Results are newest-first. Filter client-side using close_timestamp (Unix float) and break early when past the window.


client.executors.get_performance_report(controller_id=None) — aggregate stats ⚠️
python
{
"total_executors": 121,
"by_status": {"TERMINATED": 121},
"pnl_total_quote": 870.07,
"unrealized_pnl_quote": 884.99,
"global_pnl_quote": 1755.06,
"fees_total_quote": 263.49,
"volume_total_quote": 9483019.50,
"win_rate": 0.5606, # fraction
"sharpe_ratio": 0.24,
"by_type": [...], # ⚠️ UNRELIABLE COUNTS — see trap below
"active_positions": 7,
}

⚠️ `by_type` is unreliable for counts — verified: showed 66 of 121 real executors. Use search_executors pagination for accurate type counts.

`get_summary()` is active-only — returns zeros when fleet is idle. Not useful for history.


Canonical snippets
Active controllers — PNL + volume table (verified, single call)

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hummingbot/condor/execution-data-with-code/badge)](https://verified-skill.com/skills/hummingbot/condor/execution-data-with-code)

Something wrong with this skill or its page? Tell us.