Overview
The MetaTrader 5 API for trading products.
fxapis lets your product trade MetaTrader 5 accounts through a simple REST API. Connect an account with its login and server, place and manage trades, act on up to 1,000 accounts in one call, and get a recorded result for every order — an unclear one is confirmed with the broker, not guessed — with nothing to host, install or keep running.
These docs take you from an API key to a filled trade in about five minutes, then cover everything you need to run it in production.
Quickstart
From an API key to a filled order, in about five minutes.
Signals and click-to-trade
Let members take a signal with one click, from their own accounts.
SDKs and examples
TypeScript and Python SDKs, runnable examples and a Next.js starter — open source on GitHub.
Guides
Complete programs in seven languages, trade copiers, multi-account orders, and more.
Trading and history
Market and pending orders, closes, stop changes, multi-account orders.
API reference
Every endpoint, with examples in 13 languages — and a console to try each one.
The shape of it
https://api.fxapis.com/v1/…
Authorization: Bearer fx_live_…Every request carries an API key. Responses are JSON with the payload under
data; every failure has the same shape and a stable code — see
Errors. Orders take an Idempotency-Key, so a retry with the same
key can never place a second trade.
What fxapis is not
fxapis is infrastructure. It generates no signals, holds no opinion about the market, and gives no advice — it executes what it is told. Trading a live account through any API can lose money quickly, and nothing here replaces your own risk controls.