Overview
Trade your own MetaTrader account through an API. We host the terminal.
You have a broker account. OrderFill runs MetaTrader for it and puts an API in front, so you can trade it from a script, a TradingView alert or an AI agent. Your broker still holds the money; we never do.
import { OrderFill } from "@orderfill/sdk";
const client = new OrderFill({ token: process.env.ORDERFILL_API_KEY! });
const [account] = await client.accounts();
await client.account(account.id).placeOrder({ symbol: "XAUUSD", side: "buy", volume: 0.1 });
On Exness that order goes out as XAUUSDm, because that is what Exness calls gold. You
never write the suffix. See Symbols.
Base URL
https://api.orderfill.trade/v1
JSON in, JSON out, over HTTPS. Streaming is one WebSocket at /v1/ws.
Where to start
- Quickstart: a key, an account, an order. Ten minutes.
- SDKs: the fastest way to build. They handle retries and idempotency for you.
- Endpoints: every call, with examples.
- AI agents: connect Claude or another assistant over MCP.
For machines
Every page is available as plain text: /docs/llms.txt lists them, /docs/llms-full.txt
is all of them in one file, and appending .mdx to any page URL returns its source.
The API contract is at /v1/openapi.json, no key needed.