Anvil

API reference

Rust API reference for the Anvil strategy SDK and the public domain and journal types it exposes.

The Anvil API reference covers the public strategy-author surface — the Strategy trait, order intents, the strategy context, and the typed domain and journal types they use. Internal platform crates (execution adapters, the risk gateway internals, strategies, and research tooling) are not part of the public API and are intentionally not published here.

API bundles

  • anvil_sdk — the strategy interface: the Strategy trait, OrderIntent, StrategyContext, and the read-only state view a strategy observes. Start here to write a strategy.
  • platform_core — the public domain model: typed money and instruments, the EngineEvent envelope, and the journal types the SDK references.

Start here

  • Strategy SDK — the boundary, the intent model, and how strategies are selected at compile time.
  • Reference — the event envelope, event types, and the journal and replay contract.
  • Runtime architecture — where the strategy layer sits in the three-layer workspace.