rust-trading-development
스타15
포크5
업데이트2026년 1월 17일 08:29
Specific rules for trading feature development
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SKILL.md
readonly메뉴
Specific rules for trading feature development
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | Rust Trading Development |
| description | Specific rules for trading feature development |
| Template | Usage |
|---|---|
| (none yet) | Add trading-specific templates as needed |
// ❌ 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.
Every new strategy MUST respect the flow:
Analyst (generates TradeProposal)
→ RiskManager (validates)
→ Executor (executes if approved)
The RiskManager applies the validation chain:
For any trading feature:
| 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 |
The project uses the ta crate for indicators:
src/application/strategies/Strategy traitStrategyMode enumStrategyFactorydocs/STRATEGIES.mdTDD workflow for implementing features
Test and validation workflow before commit
Keep project documentation up to date
Manage and enforce project specifications for consistency
Designing premium user interfaces with egui
Critical analysis of trading techniques and financial innovation