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 alpha-compatible provider. Connect, authenticate, query instruments, and place orders.

1

Choose a broker

Find an APEX alpha-compatible provider that supports your asset classes

2

Connect via MCP

Connect via stdio (local) or Streamable HTTP (remote) to the broker's MCP server

3

Authenticate

Pass your broker credentials via apex.session.authenticate

4

Trade

Subscribe to live state, build a decision loop, and use canonical instrument IDs

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

// Helper – unwrap the text payload from a CallToolResult
const extractPayload = (result) =>
  JSON.parse(result.content[0].text);

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({
  name: "apex.session.authenticate",
  arguments: { token: brokerToken, token_type: "jwt" },
});

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

// Place an order
const order = await client.callTool({
  name: "apex.order.place",
  arguments: {
    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 Agent Runtime Safety Guide Reference Flows Alpha Roadmap
For Brokers

Broker Integration

Implement the APEX Standard to make your brokerage accessible to AI trading agents through a shared alpha protocol surface.

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 alpha harness

Reference Implementations

Each reference server is a compact MCP server with illustrative handlers. Replace the examples with your real broker API calls.

Read the core specification Broker Implementation Guide