Trading Agents can be created using theDocumentation Index
Fetch the complete documentation index at: https://condor.hummingbot.org/llms.txt
Use this file to discover all available pages before exploring further.
/agent command in Telegram or by manually creating the required files.
Why Use Agent Builder?
The Agent Builder guides you through a structured process that:- Defines your strategy in a structured way so the agent has context
- Creates market data routines so analysis is deterministic and reproducible
- Builds decision logic in
agent.mdwith rules and constraints - Tests reasoning first before risking real money
- Deploys with confidence after verifying behavior
5-Phase Development Flow
| Phase | Description |
|---|---|
| 1. Strategy Design | Define your edge, timeframe, and instruments |
| 2. Market Data Routine | Create a Python routine to fetch and process market data |
| 3. Strategy Logic | Write agent.md with decision rules and constraints |
| 4. Dry Run | Test reasoning without trading capability |
| 5. Run Once | Test with real trading—one tick only |
| 6. Loop | Deploy live with frequency and risk limits |
Run Modes
These modes exist for debugging—you don’t want to put an agent to trade without understanding its reasoning first.| Mode | Behavior |
|---|---|
dry_run | One tick, no trading capability. The agent gets told in its prompt that executor creation is blocked. You see how it gathers data, reasons about it, and what decision it would take. |
run_once | One tick with real trading. Before looping, try it once to see actual outputs. |
loop | Standard mode. Ticks every frequency_sec until stopped or max_ticks reached. |
Via Telegram
Use/agent → Switch Mode → Agent Builder to start the guided flow:
Phase 1: Strategy Design
The Agent Builder asks questions to understand your goals:- Strategy type (grid, DCA, momentum, etc.)
- Direction (long only, short only, or both)
- Budget allocation
- Timeframe (scalping, intraday, swing)
- Risk tolerance
Phase 2: Market Data Routine
The Agent Builder creates a Python routine to fetch and analyze market data:Phase 3: Strategy Logic
The Agent Builder generatesagent.md with your decision rules. You can review and refine:
Phase 4: Dry Run
Test reasoning without real trading:- What data the agent received
- How it reasoned about the data
- What decision it would make
Phase 5: Deploy
When confident, start a live session:Manual Creation
Create a new agent directory with the required files:Directory Structure
agent.md
The strategy definition with YAML frontmatter and Markdown instructions:learnings.md
Start with an empty learnings file—the agent populates it as it learns:Inspecting Agent Sessions
View agent sessions in the web dashboard:- Snapshots: Every tick’s system prompt, agent response, and actions taken
- Dry Runs: Test sessions without real trading
- Executors: All executors created by the agent with P&L
- Learnings: Insights the agent has accumulated
Analyzing Snapshots
Each snapshot shows:- System Prompt: Everything the agent received (strategy, configs, market data)
- Agent Response: The agent’s reasoning and decision
- Actions: Executors created, routines called
Common Patterns
Grid Scalping
Deploy grids that straddle current price with tight take-profits:Dynamic Grid Replacement
Replace grids when price moves significantly:One Position Constraint
Many exchanges (like Hyperliquid) only allow one position per pair:Best Practices
Start with dry runs
Start with dry runs
Always test reasoning before real trading. The dry run shows exactly what the agent would do without risking money.
Use routines for market data
Use routines for market data
Move indicator calculations into routines. The agent shouldn’t spend tokens computing EMAs—that should be deterministic code.
Write clear decision logic
Write clear decision logic
Structure agent.md with explicit steps: 1) Run analysis, 2) Make decision, 3) Execute. This makes the agent’s reasoning predictable.
Review learnings
Review learnings
The agent writes observations to learnings.md. Review these to understand what the agent is learning and refine accordingly.

