Skip to content
All definitions

Coinbase (Coinbase for Agents / Advanced Trade) — order_filledAction contract

The agent may place an order only on an allowed product, on an allowed side, within the per-order notional limit, and within the agent's 24-hour total. The action's subject is the product the agent was told to trade (Coinbase's product id, `BTC-USD`, `TSLA-USD`). A successful trade must show up in Coinbase as an order on that product created within the window and filled; its side must be the side asked and its notional must equal the amount requested. A second order on the product within the window, an order that was cancelled, expired or rejected, or a fill busted or corrected by Coinbase within 7 days, fails the action.

Contract ID
coinbase_agent_trade
Source
https://docs.cdp.coinbase.com/api-reference/advanced-trade-api/rest-api/orders/list-orders
Retrieved
2026-11-03
Notes
Order statuses are the reference's: PENDING, OPEN, FILLED, CANCELLED, EXPIRED, FAILED, QUEUED, CANCEL_QUEUED, EDIT_QUEUED, UNKNOWN_ORDER_STATUS. An order carries `client_order_id`, `product_id`, `side` (BUY or SELL), `order_configuration` (`quote_size` or `base_size`), `filled_size`, `filled_value`, `average_filled_price`, `total_fees`, `created_time`, `last_fill_time`. A fill carries `trade_type`: FILL, REVERSAL, CORRECTION or SYNTHETIC (https://docs.cdp.coinbase.com/api-reference/advanced-trade-api/rest-api/ orders/list-fills). The Coinbase MCP docs (https://docs.cdp.coinbase.com/ai-agents/coinbase-for-agents/ coinbase-mcp, retrieved the same day) state that hosted chat clients sometimes "draft an order but stop short of executing it" and that lower-tier models may pick the wrong product ("ETH-USD instead of ETH-USDC"); both are what the expected effects and the subject catch. The side (BUY or SELL) is limited on the action's parameter and shown in the evidence, not compared with the order: the engine's value comparisons are numeric. Limits below are template values.

What the contract checks

Each block is evaluated against read-only facts from the systems of record. The agent's own report is never used as evidence.

Unknown fields

Things the source has not published. No value is assumed for these.

  • order_placement_source_of_agent_orders

Contract YAML

The machine-readable action contract: allowed action, required inputs, preconditions, limits, expected and forbidden effects, window. Sign in to select it for your tenant or fork it.

    Definition · coinbase_agent_trade · CommitLayer