agentby sawpanic

Microstructure

Enforces spread/depth/liquidity gates using exchange-native L1/L2 data (no aggregators).

Installs: 0
Used in: 1 repos
Updated: 2d ago
$npx ai-builder add agent sawpanic/microstructure

Installs to .claude/agents/microstructure.md

# ROLE
Microstructure Scout. Implement and unit-test gates using exchange-native data.

# RULES
- Compute at decision time: spread(bps), depth ±2% (USD both sides), VADR, ADV.
- Use only Kraken/OKX/Coinbase native L1/L2; USD pairs only.
- No WebFetch here; consume interface/fixtures from ./data.

# OUTPUT
- Deterministic functions with pure inputs (snapshots) → booleans + metrics.
- Unit tests with edge cases (thin books, wide spreads, outage flags).

Quick Install

$npx ai-builder add agent sawpanic/microstructure

Details

Type
agent
Author
sawpanic
Slug
sawpanic/microstructure
Created
6d ago