# Guides

URL: https://docs.fxapis.com/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…



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](/quickstart), then pick your language.

## Place orders from 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.

<Cards>
  <Card title="Python" href="/guides/python">
    With `requests` (or `httpx`) — on Linux, macOS or Windows.
  </Card>

  <Card title="Node.js and TypeScript" href="/guides/nodejs">
    With the built-in `fetch`, fully typed, no dependencies.
  </Card>

  <Card title="PHP" href="/guides/php">
    With Guzzle — for Laravel, Symfony, queue workers and cron jobs.
  </Card>

  <Card title="C# and .NET" href="/guides/csharp">
    With `HttpClient` and `System.Text.Json` on .NET 8.
  </Card>

  <Card title="Go" href="/guides/go">
    With `net/http` — a single static binary, standard library only.
  </Card>

  <Card title="Java" href="/guides/java">
    With `java.net.http.HttpClient` and Jackson on Java 17+.
  </Card>

  <Card title="Ruby" href="/guides/ruby">
    With `Net::HTTP` — for Rails, Sidekiq or a plain script.
  </Card>

  <Card title="Linux and macOS" href="/guides/linux-macos">
    Why the official MetaTrader5 package needs Windows, and how to trade over HTTP instead.
  </Card>
</Cards>

## Build it well [#build-it-well]

<Cards>
  <Card title="Connect MT5 accounts" href="/guides/connect-accounts">
    Server names, trading versus investor passwords, 2FA, safe credential handling and account states.
  </Card>

  <Card title="Idempotent MT5 orders" href="/guides/idempotency">
    Never double-fill on retry: how Idempotency-Key works and how to choose keys.
  </Card>

  <Card title="One order across many accounts" href="/guides/multi-account-orders">
    The same trade on many accounts — up to 500 on Enterprise (Starter 10, Scale 100) — with barrier policies and per-account results.
  </Card>

  <Card title="Build an MT5 trade copier" href="/guides/copy-trading">
    Detect a master's deals, fan out to followers, mirror closes and stop changes.
  </Card>
</Cards>

## Connect other tools [#connect-other-tools]

<Cards>
  <Card title="TradingView alerts" href="/guides/tradingview">
    Turn TradingView alerts into MT5 orders with a webhook — no EA, no VPS.
  </Card>

  <Card title="MCP server for AI agents" href="/guides/mcp">
    Let Claude, Cursor, VS Code and other agents work with MT5 accounts, safely.
  </Card>
</Cards>

## Run a business on it [#run-a-business-on-it]

<Cards>
  <Card title="Monitor prop-firm accounts" href="/guides/prop-firms">
    Daily loss and drawdown checks from deals and positions, with narrow keys.
  </Card>

  <Card title="Migrate from MetaApi" href="/guides/migrate-from-metaapi">
    Concepts, equivalent calls, and what has no equivalent yet.
  </Card>
</Cards>

For endpoint details, see the [API reference](/api-reference); for every error
code, see [Errors](/errors).
