# Overview

URL: https://docs.fxapis.com/

> Documentation for fxapis, the hosted MetaTrader 5 REST API: connect MT5 accounts, place and manage orders, trade many accounts at once, and read history. Guides and a full API reference.



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.

<Cards>
  <Card title="Quickstart" href="/quickstart">
    From an API key to a filled order, in about five minutes.
  </Card>

  <Card title="Signals and click-to-trade" href="/signals">
    Let members take a signal with one click, from their own accounts.
  </Card>

  <Card title="SDKs and examples" href="/sdks">
    TypeScript and Python SDKs, runnable examples and a Next.js starter — open source on GitHub.
  </Card>

  <Card title="Guides" href="/guides">
    Complete programs in seven languages, trade copiers, multi-account orders, and more.
  </Card>

  <Card title="Trading and history" href="/trading">
    Market and pending orders, closes, stop changes, multi-account orders.
  </Card>

  <Card title="API reference" href="/api-reference">
    Every endpoint, with examples in 13 languages — and a console to try each one.
  </Card>
</Cards>

## The shape of it [#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](/errors). Orders take an `Idempotency-Key`, so a retry with the same
key can never place a second trade.

<Callout type="warn" title="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.
</Callout>
