Docs

Guides

Step-by-step guides for the fxapis MetaTrader 5 API: complete programs in Python, Node.js, PHP, C#, Go, Java and Ruby, connecting accounts, multi-account orders, trade copiers, idempotent orders, TradingView alerts, AI agents, prop-firm monitoring and migrating from MetaApi.

Practical guides for building on fxapis, from a first order in your language to a trade copier. Each one has code you can run against a broker demo account — every fxapis key, including fx_test_ keys, reaches a real broker.

New here? Start with the Quickstart, then pick your language.

Place orders from your language

Complete programs that connect an MT5 account, bring it online, place a market order with an idempotency key, handle every failure correctly, read positions, close the trade and disconnect. No MetaTrader terminal on your side.

Build it well

Connect other tools

Run a business on it

For endpoint details, see the API reference; for every error code, see Errors.

On this page