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-compliant broker. Connect, authenticate, query instruments, and place orders.
Choose a broker
Find an APEX-compliant broker that supports your asset classes
Connect via MCP
Open a direct connection to the broker's MCP server
Authenticate
Pass your broker credentials via apex.session.authenticate
Trade
Use canonical instrument IDs and the unified order model
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",
}
}); Broker Integration
Implement the APEX Standard to make your brokerage accessible to every compliant AI trading agent in the ecosystem.
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 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.