Documentation

Everything you need to build on the APEX Standard — whether you're an agent developer connecting to brokers or a broker implementing the protocol.

For Agent Developers

Agent Quickstart

Get from zero to executing trades with an APEX-compliant broker. Connect, authenticate, query instruments, and place orders.

1

Choose a broker

Find an APEX-compliant broker that supports your asset classes

2

Connect via MCP

Open a direct connection to the broker's MCP server

3

Authenticate

Pass your broker credentials via apex.session.authenticate

4

Trade

Use canonical instrument IDs and the unified order model

Connect and place an order
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from
  "@modelcontextprotocol/sdk/client/streamableHttp.js";

const client = new Client({
  name: "my-trading-agent",
  version: "1.0.0"
});

await client.connect(
  new StreamableHTTPClientTransport(
    new URL("https://mcp.broker.com/v1")
  )
);

// Authenticate
await client.callTool("apex.session.authenticate", {
  token: brokerToken,
  token_type: "jwt",
});

// Get a quote
const quote = await client.callTool("apex.market.quote", {
  instrument_id: "APEX:FX:EURUSD"
});

// Place an order
const order = await client.callTool("apex.order.place", {
  account_id: session.account_id,
  order: {
    instrument_id: "APEX:FX:EURUSD",
    side: "buy",
    order_type: "market",
    quantity: 10000,
    time_in_force: "GTC",
  }
});
Full agent quickstart guide
For Brokers

Broker Integration

Implement the APEX Standard to make your brokerage accessible to every compliant AI trading agent in the ecosystem.

1

Read the core spec

Understand the mandatory baseline every broker must implement

2

Choose your profiles

Add FX, CFD, crypto, or other asset-class modules

3

Use a reference implementation

Start from TypeScript, Rust, Go, or Java reference servers

4

Run conformance tests

Validate your implementation against the full test suite

Reference Implementations

Each reference server is a single-file MCP server with stub handlers. Replace the stubs with your real broker API calls.

Read the core specification