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.
Agent Quickstart
Get from zero to executing trades with an APEX alpha-compatible provider. Connect, authenticate, query instruments, and place orders.
Choose a broker
Find an APEX alpha-compatible provider that supports your asset classes
Connect via MCP
Connect via stdio (local) or Streamable HTTP (remote) to the broker's MCP server
Authenticate
Pass your broker credentials via apex.session.authenticate
Trade
Subscribe to live state, build a decision loop, and use canonical instrument IDs
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",
},
},
}); Broker Integration
Implement the APEX Standard to make your brokerage accessible to AI trading agents through a shared alpha protocol surface.
Read the core spec
Understand the mandatory baseline every broker must implement
Choose your profiles
Add FX, CFD, crypto, or other asset-class modules
Use a reference implementation
Start from TypeScript, Rust, Go, or Java reference servers
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.