ModulesΒ§
- apply_
interface π - Apply/state-machine interface for UnifiedEngine.
- builder π
- UnifiedEngine builder and construction wiring.
- fill_
metadata π - journaling π
- Journal and idempotency orchestration for
UnifiedEngine. - markets π
- Market lifecycle handlers for
UnifiedEngine. - matching π
- Order processing pipeline helpers for UnifiedEngine.
- order_
routing π - Order routing and order-type specific request handling for
UnifiedEngine. - recovery π
- Replay and recovery logic for UnifiedEngine.
- rfq_
handler π - runtime π
- Runtime loop and flush coordination for UnifiedEngine.
- traits π
- Readability-focused capability traits for
UnifiedEngine.
StructsΒ§
- Agent
Auth Request - Agent authorization request sent by the API to approve or revoke agents through the engineβs command stream.
- Allocated
Order π - Result of order allocation
- Cash
Withdrawal Apply Receipt - Cash
Withdrawal Request - Deposit
Request - Deposit request sent from faucet/admin handlers to update balance_ledger.
- Engine
Quiesce Report - Report returned after the engine crosses a quiesce or resume barrier.
- Engine
Quiesce Request - Engine-level quiesce control for restart and blue/green drain barriers.
- Engine
Runtime Settings - Hypercore
Equity Request - HyperCore equity update from the Hydromancer feed for PM margin.
- Liquidation
Bonus Request - Liquidation bonus request sent from the chain observer to update balance_ledger.
- Margin
Mode Update Request - Margin mode update request sent by the API to keep engine-owned admission state in sync with the tier cache.
- Market
Request - Market management request sent to the runtime engine task.
- Matching
Result π - Result of matching execution
- Nonce
Check Request - Nonce-only request sent by QP handshakes to advance the per-wallet nonce watermark through the engine command stream.
- Option
Deposit Request - Option-token deposit request sent from the chain observer to update engine-owned option inventory.
- Option
Withdrawal Apply Receipt - Option
Withdrawal Request - Tier
Update Request - Tier update sent from runtime handlers to refresh engine-owned admission state.
- Unified
Engine - The unified engine that combines order matching and margin calculations.
- Unified
Engine Builder - Builder for creating the unified engine
- Unified
Engine Builder Result - Result of building the engine with additional info
- Unified
Engine Request - Request to the unified engine order path.
EnumsΒ§
- Cash
Restart πAuthority - Engine
Error - Error type for apply operations
- Engine
Quiesce Action - Control action for an engine quiesce barrier.
ConstantsΒ§
- DEFAULT_
ORDER_ πBUFFER_ SIZE - Default buffer size for order channel
- ENGINE_
REQUIRE_ πSNAPSHOT_ RESTORE_ ENV - IDEMPOTENCY_
CACHE_ πLOOKBACK_ HOURS - Hours to look back when loading idempotency cache
- MARKET_
REQUEST_ πBUFFER_ SIZE - Buffer size for market request channel
- MAX_
EXPIRY_ πNATS_ PAYLOAD_ BYTES - SNAPSHOT_
CASH_ πVALIDATION_ OVERRIDE_ ENV - TWAP_
WINDOW_ πSECONDS - TWAP settlement window in seconds (30 minutes)
- UNSAFE_
SNAPSHOT_ πREPLAY_ OVERRIDE_ ENV
FunctionsΒ§
- cash_
restart_ πauthority_ for_ startup - decrement_
pending_ requests - env_
flag_ πenabled - get_
pending_ requests - increment_
pending_ requests - non_
replayable_ πtail_ count_ for_ coverage_ check - post_
replay_ πcash_ validation_ checkpoint - should_
validate_ πhot_ journal_ coverage_ for_ base_ replay - validate_
hot_ πjournal_ covers_ base_ replay - validate_
non_ πreplayable_ tail