Docs / Integrations / Adapters

Alpaca Adapter

Apply same trade governance contract to Alpaca order placement/cancel/modify actions.

What it does

Apply same trade governance contract to Alpaca order placement/cancel/modify actions.

How it works

1. Validate intent

Adapter checks structure only (required fields, types, unknown fields). It does not run policy logic.

2. Normalize action

Intent is mapped to a generic NormalizedAction with action type TRADE.

3. Evaluate policy

Governor evaluates centrally with fail-closed semantics. Any uncertainty returns deny.

4. Build plan + execute

Execution plan is descriptive. Default path is dry-run and returns planned external calls.

5. Emit evidence

Decision output includes deterministic evidence packet and stable evidence hash.

Why this is useful

Removes adapter-specific policy drift by centralizing decisions.
Creates one audit and evidence model across all integrations.
Supports safe rollout with dry-run first and explicit approval paths.
Improves incident response because every decision has a deterministic hash.

Use it for

Retail/SMB broker control with unified policy gates

Tier: Tier 4 · Finance/Trading/Payments
Adapter ID: alpaca
Action family: TRADE

Example intent

{
  "action": "place_order",
  "symbol": "TSLA",
  "side": "SELL",
  "qty": 10,
  "order_type": "MARKET",
  "requested_by": "alpaca-agent"
}

Where to monitor