Rust Trading Development
БесплатноБез исполняемых скриптовНе проверенSpecific rules for trading feature development
Об этом скилле
Skill: Rust Trading Development
When to use this skill
- Adding or modifying trading strategies
- Modifying the RiskManager or order validation
- Financial calculations (prices, quantities, P&L)
- Working with technical indicators
Templates available
| Template | Usage |
|---|---|
| (none yet) | Add trading-specific templates as needed |
Critical rules
Monetary precision (MANDATORY)
// ❌ FORBIDDEN
let price: f64 = 123.45;
let total = price * quantity;
// ✅ CORRECT
use rust_decimal::Decimal;
let price = Decimal::from_str("123.45").unwrap();
let total = price * quantity;
Why: Rounding errors in f64 can cause real financial losses.
Risk management
Every new strategy MUST respect the flow:
Analyst (generates TradeProposal)
→ RiskManager (validates)
→ Executor (executes if approved)
The RiskManager applies the validation chain:
- BuyingPowerValidator
- CircuitBreakerValidator
- PDTValidator
- PositionSizeValidator
- SectorCorrelationValidator
- SentimentValidator
Mandatory tests
For any trading feature:
- Unit tests for each technical indicator
- Integration tests for complete flows
- Backtests on historical data (if applicable)
Key files
| Path | Content |
|---|---|
src/domain/trading/ |
Trading entities (Order, Position, Trade) |
src/domain/risk/ |
Risk management, validators |
src/application/strategies/ |
Trading strategies |
src/application/analyst.rs |
Analyst agent |
src/application/risk_manager.rs |
RiskManager service |
Available technical indicators
The project uses the ta crate for indicators:
- SMA, EMA (moving averages)
- RSI (Relative Strength Index)
- MACD (Moving Average Convergence Divergence)
- Bollinger Bands
- ADX (Average Directional Index)
- ATR (Average True Range)
Example: Adding a new strategy
- Create the file in
src/application/strategies/ - Implement the
Strategytrait - Add the mode to
StrategyModeenum - Register in
StrategyFactory - Add tests
- Document in
docs/STRATEGIES.md
Установить Rust Trading Development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Rust Trading Development?
Specific rules for trading feature development
Как установить скилл Rust Trading Development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Rust Trading Development запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic