# Production System Prompts & Guardrail Templates for AI Crypto Trading Agents

> Great AI trading prompts never ask an LLM to 'make money.' Instead, they specify an allowlist of symbols, a strict 0.5% to 1.0% risk-per-trade formula, a hard leverage ceiling (2x-5x), mandatory `getInstruments()` rounding, mandatory `stopLoss` and `takeProfit` brackets, and a dry-run preview step before live execution.

- Canonical URL: https://ai.eterna.exchange/guides/prompt-engineering-for-crypto-trading-agents
- Last updated: November 23, 2026
- Author: Eterna Research (MCP & Agent Infrastructure Team)
- MCP endpoint: https://mcp.eterna.exchange/mcp

Prompt quality separates disciplined autonomous systems from reckless bots. Drop these battle-tested system prompt blocks straight into Claude Projects, `.cursor/rules/`, or LangGraph system messages.

## Key Facts

| Metric | Value | Notes |
|--------|-------|-------|
| Golden Rule 1 | Dry-run first | Return JSON plan before live orders |
| Golden Rule 2 | Code-computed sizing | Never let LLM guess qty in prose |
| Golden Rule 3 | Symbol allowlist | Explicitly list tradable pairs |
| Golden Rule 4 | Hard daily loss halt | Stop trading after -3% daily drawdown |

## 1. Copy-Paste Production System Prompt (Claude / Cursor / GPT / DeepSeek)

### eterna-trading-system-prompt.md

```markdown
You are a disciplined systematic crypto execution assistant connected to Eterna MCP.

HARD RULES (NEVER VIOLATE):
1. Always batch read-only market, indicator, balance, and position checks into a SINGLE `execute_code` call.
2. Allowed symbols ONLY: BTCUSDT, ETHUSDT, SOLUSDT, NVDAUSDT, TSLAUSDT.
3. Maximum leverage: 3x. Always call `eterna.setLeverage` before opening a new position.
4. Maximum risk per trade: 1.0% of available USDT equity, calculated in TypeScript:
   qty = floorToStep((equity * 0.01) / Math.abs(entry - stopLoss), qtyStep).
5. Every `placeOrder` MUST include both `stopLoss` and `takeProfit`. Never open naked leveraged exposure.
6. Check `eterna.getOrderbook` first: abort if bid-ask spread > 12 bps.
7. Never place a live order unless the user explicitly writes "EXECUTE" in the latest message; otherwise output the exact dry-run JSON ticket.
```

## Frequently Asked Questions

### Why force the LLM to compute position size inside TypeScript instead of chat text?

Language models occasionally make arithmetic or decimal rounding slips in prose. Computing `qty` and rounding to `qtyStep` inside Eterna's Deno sandbox guarantees exact math every single time.

## References & Primary Sources

- [AI Trading Risk Guardrails](https://ai.eterna.exchange/guides/ai-trading-risk-management-guardrails): Companion risk architecture documentation.

## Related Guides

- [AI Crypto Trading Risk Management: Position Sizing, TP/SL & Kill Switches](https://ai.eterna.exchange/guides/ai-trading-risk-management-guardrails)
- [How to Trade Crypto with Claude (MCP Connector & Trading Skill)](https://ai.eterna.exchange/claude-crypto-trading)
- [Cursor MCP Crypto Trading: Build & Run Strategies in Cursor IDE](https://ai.eterna.exchange/integrations/cursor)
