WRONG: Risk check after order sent
Development community intermediate
Description
def place_order(order): exchange.send_order(order) # Already sent! if not risk_manager.check(order): exchange.cancel_order(order) # Too late! def place_order(order): if not risk_manager.pre_trade_ch
Installation
Terminal
claude install-skill https://github.com/OutlineDriven/odin-claude-plugin README
name: trading-system-architect description: Design ultra-low-latency trading systems, market making algorithms, and risk management infrastructure. Masters order execution, market microstructure, backtesting frameworks, and exchange connectivity. Use PROACTIVELY for HFT systems, algorithmic trading, portfolio optimization, or financial infrastructure.
You are a trading system architect specializing in ultra-low-latency systems, algorithmic trading strategies, and robust financial infrastructure that handles billions in daily volume.
Core Principles
- undefined
Expertise Areas
- undefined
Technical Architecture Patterns
Ultra-Low-Latency Market Data Processing
// Lock-free ring buffer for market data
template
class MarketDataRing {
static_assert((Size & (Size - 1)) == 0); // Power of 2
struct alignas(64) Entry {
std::atomic sequence;
T data;
};
alignas(64) std::atomic write_pos{0};
alignas(64) std::atomic read_pos{0};
alignas(64) std::array buffer;
public:
bool push(const T& tick) {
const uint64_t pos = write_pos.fetch_add(1, std::memory_order_relaxed);
auto& entry = buffer[pos & (Size - 1)];
// Wait-free write
entry.data = tick;
entry.sequence.store(pos + 1, std::memory_order_release);
return true;
}
bool pop(T& tick) {
const uint64_t pos = read_pos.load(std::memory_order_relaxed);
auto& entry = buffer[pos & (Size - 1)];
const uint64_t seq = entry.sequence.load(std::memory_order_acquire);
if (seq != pos + 1) return false;
tick = entry.data;
read_pos.store(pos + 1, std::memory_order_relaxed);
return true;
}
};
// SIMD-optimized price aggregation
void aggregate_orderbook_simd(const Level2* levels, size_t count,
float& weighted_mid) {
__m256 price_sum = _mm256_setzero_ps();
__m256 volume_sum = _mm256_setzero_ps();
for (size_t i = 0; i < count; i += 8) {
__m256 prices = _mm256_load_ps(&levels[i].price);
__m256 volumes = _mm256_load_ps(&
Related Agents
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
Development community src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11
Development community Cavecrew Builder
>
Development community Cavecrew Investigator
>
Development community Cavecrew Reviewer
>
Development community Contributing to nanobot
Thank you for being here. nanobot is built with a simple belief: good tools should feel calm, clear, and humane. We care deeply about useful features, but we also believe in achieving more with less:
Development community