1. [Home](https://fxapis.com/)
2. Developers

Developers

# Build on the MT5 API, not around it.

Typed SDKs, runnable examples, a hosted MCP server for AI agents, and a starter app — every one of them open source. Pair them with the [full API reference](https://docs.fxapis.com), with samples in 13 languages.

[Get API key ](https://fxapis.com/sign-up)[Read the docs](https://docs.fxapis.com)

- TypeScript & Python SDKs
- 7 open-source repos
- OpenAPI spec · 13 languages

quickstart.ts

```
import { Fxapis, newIdempotencyKey } from "fxapis";

const fx = new Fxapis(process.env.FXAPIS_API_KEY!);

const account = await fx.postAccounts({
  login: "26177561",
  server: "Pepperstone-Demo",
  password: process.env.MT5_PASSWORD,
  mode: "warm_on_demand",
});

await fx.postAccountsByIdWarm(account.id);

const order = await fx.postAccountsByIdOrdersMarket(
  account.id,
  { symbol: "EURUSD", side: "buy", volume: "0.01" },
  { idempotencyKey: newIdempotencyKey() },
);
```

The TypeScript SDK. The same few calls, in Python and curl, are in the examples repo.

Open source

## Seven repositories, one GitHub org.

Everything here is MIT-licensed and public at [github.com/FXapis](https://github.com/FXapis). Start with the SDK for your language, or clone a starter and go.

[FXapis / fxapis-typescript](https://github.com/FXapis/fxapis-typescript)

### [TypeScript / Node.js SDK](https://github.com/FXapis/fxapis-typescript)

[One typed method per endpoint, generated from the OpenAPI spec. Zero runtime dependencies, ESM, typed errors with a stable code.](https://github.com/FXapis/fxapis-typescript)

[`npm install fxapis` View on GitHub](https://github.com/FXapis/fxapis-typescript)

[FXapis / fxapis-python](https://github.com/FXapis/fxapis-python)

### [Python SDK](https://github.com/FXapis/fxapis-python)

[Sync and async clients on httpx. Fully typed (py.typed, mypy --strict), automatic idempotency keys, typed exceptions per error code.](https://github.com/FXapis/fxapis-python)

[`pip install fxapis` View on GitHub](https://github.com/FXapis/fxapis-python)

[FXapis / fxapis-examples](https://github.com/FXapis/fxapis-examples)

### [Examples](https://github.com/FXapis/fxapis-examples)

[Quickstart, click-to-trade and a copy-trader, each in Python, Node/TypeScript and curl — runnable against a broker demo account.](https://github.com/FXapis/fxapis-examples)

[View on GitHub](https://github.com/FXapis/fxapis-examples)

[FXapis / fxapis-mcp-examples](https://github.com/FXapis/fxapis-mcp-examples)

### [MCP client examples](https://github.com/FXapis/fxapis-mcp-examples)

[Tested configs for Claude, Claude Code, Cursor, VS Code, the OpenAI API and the Anthropic API, plus the full tool reference.](https://github.com/FXapis/fxapis-mcp-examples)

[View on GitHub](https://github.com/FXapis/fxapis-mcp-examples)

[FXapis / fxapis-claude-plugins](https://github.com/FXapis/fxapis-claude-plugins)

### [Claude plugin and skill](https://github.com/FXapis/fxapis-claude-plugins)

[The fxapis Claude Code plugin — sign-in, a trading-mt5-safely skill, status and positions commands, and a hook that confirms every trade.](https://github.com/FXapis/fxapis-claude-plugins)

[View on GitHub](https://github.com/FXapis/fxapis-claude-plugins)

[FXapis / fxapis-integrations](https://github.com/FXapis/fxapis-integrations)

### [Integrations](https://github.com/FXapis/fxapis-integrations)

[A Postman collection covering every endpoint, ready-to-paste TradingView alert payloads, and n8n HTTP templates. A new Idempotency-Key is a new order; reuse the same key to retry.](https://github.com/FXapis/fxapis-integrations)

[View on GitHub](https://github.com/FXapis/fxapis-integrations)

[FXapis / fxapis-nextjs-starter](https://github.com/FXapis/fxapis-nextjs-starter)

### [Next.js starter](https://github.com/FXapis/fxapis-nextjs-starter)

[A small working app: connect an MT5 account, watch its positions, and place a market order behind an explicit confirm step.](https://github.com/FXapis/fxapis-nextjs-starter)

[View on GitHub](https://github.com/FXapis/fxapis-nextjs-starter)

## Test keys reach real brokers.

An `fx_test_` key is a label for your configuration, not a sandbox — there is no simulated market at fxapis. Every example and starter here is meant to run against a broker **demo account** while you build.

Getting started

## Three steps, no terminal to run.

fxapis runs the MT5 terminals in its own cloud. Your code only ever talks to the REST API.

1. 01Step 1

   ### Get an API key

   Create a workspace and a key in the console. Scope it — read-only, reduce-only or full trading.

   `fxapis.com/sign-up`

2. 02Step 2

   ### Connect a demo account

   Its login, trading password and server — fxapis brings it online and keeps the credential encrypted.

   `POST /v1/accounts`

3. 03Step 3

   ### Place your first order

   A market order with an idempotency key, from the SDK, curl, or an example repo's quickstart.

   `fx.postAccountsByIdOrdersMarket(…)`

AI agents

## Your agent can trade too — on a scoped key.

fxapis also runs a hosted [MCP server](https://fxapis.com/mcp). Point Claude, Cursor or VS Code at it with an API key, and it can read accounts and positions, or trade if its key allows it — enforced by the API, not the prompt.

### [How the MCP server works](https://fxapis.com/mcp)

[Setup, the tool reference, and the safety model for letting an agent near a real account.](https://fxapis.com/mcp)

[Read more](https://fxapis.com/mcp)

### [fxapis-mcp-examples](https://github.com/FXapis/fxapis-mcp-examples)

[Every client config, tested against the live server before it was committed.](https://github.com/FXapis/fxapis-mcp-examples)

[View on GitHub](https://github.com/FXapis/fxapis-mcp-examples)

### [Market data and research API](https://fxapis.com/marketlabs)

[MarketLabs routes in the API reference, the `get_marketlabs_research`, `get_marketlabs_calendar`, `get_marketlabs_news`, `get_marketlabs_today` and `get_marketlabs_snapshot` MCP tools, and the guide — for the plans that include it.](https://fxapis.com/marketlabs)

[See MarketLabs](https://fxapis.com/marketlabs)

New to fxapis? [The MT5 API](https://fxapis.com/mt5-api) covers what it does end to end. Sending trades from TradingView instead of code? See the [TradingView guide](https://docs.fxapis.com/guides/tradingview) and the [integrations repo](https://github.com/FXapis/fxapis-integrations)'s alert templates.

FAQ

## Questions from developers

### Do the SDKs and examples cost anything?

No. Every repository is MIT-licensed and open source on GitHub — free to use, fork and modify. What you pay for is the API itself, on the plan your workspace is on.

### Is there a sandbox or test environment?

No. There is one fxapis environment, and every key — including an fx_test\_ key — reaches a real broker. Build and test against a broker demo account, not a simulated market.

### Which languages are supported?

Official SDKs for TypeScript/Node.js and Python. Beyond those, the OpenAPI specification and API reference include ready-to-run code samples in 13 languages, and the REST API itself works from anything that can send HTTPS and JSON — the curl examples show the raw requests.

### Can I contribute to the SDKs or examples?

Yes. Each repository takes pull requests — see its CONTRIBUTING.md. The SDKs' typed clients are generated from the API's OpenAPI spec, so most contributions are to the hand-written parts: helpers, tests, docs and examples.

### Where do I report a bug or ask for a feature?

Open an issue on the relevant GitHub repository. For anything about your account, billing or the API itself rather than an SDK or example, email support\@fxapis.com.

\> git clone → npm install → trade

## Clone a repo and make your first call today.

Create a workspace, connect a broker demo account, and run a quickstart in whichever language you already use.

[Get API key ](https://fxapis.com/sign-up)[Read the docs](https://docs.fxapis.com)
