fxapis — MetaTrader 5

com.fxapis/mt5 · v1.2.0 · ecommerce

fxapis — MetaTrader 5 is up but requires authentication (oauth).

Read and trade MT5 accounts, read-only unless you allow, plus MarketLabs calendar, COT and research.

Endpoint: https://api.fxapis.com/mcp (streamable-http)

No repository listed · Website · JSON · Add to my inventory

Facts

Users (last 30 days)0
HandshakeNeeds auth
Auth neededoauth
Tool count–
Latency–
Last checked (UTC)2026-11-30T04:35:31.303Z

Health history

Checked (UTC)StatusLatencyError
2026-11-30T04:35:31.303ZNeeds auth795initialize: HTTP 401
2026-11-27T19:20:57.367ZNeeds auth221initialize: HTTP 401
2026-11-25T11:55:24.191ZNeeds auth1001initialize: HTTP 401
2026-11-23T06:30:58.396ZNeeds auth728initialize: HTTP 401
2026-11-21T02:55:32.644ZNeeds auth342initialize: HTTP 401
2026-11-19T00:20:11.120ZNeeds auth531initialize: HTTP 401
2026-11-16T23:10:11.764ZNeeds auth123initialize: HTTP 401
2026-11-14T23:25:44.656ZNeeds auth453initialize: HTTP 401
2026-11-13T00:50:28.172ZNeeds auth202initialize: HTTP 401
2026-11-11T03:15:33.889ZNeeds auth776initialize: HTTP 401
2026-11-09T07:00:26.687ZNeeds auth919initialize: HTTP 401
2026-11-07T12:05:23.751ZNeeds auth639initialize: HTTP 401
2026-11-05T18:05:47.680ZNeeds auth113initialize: HTTP 401
2026-11-04T00:40:38.223ZNeeds auth712initialize: HTTP 401
2026-11-02T08:25:28.855ZNeeds auth1497initialize: HTTP 401
2026-10-31T17:15:20.267ZNeeds auth124initialize: HTTP 401
2026-10-30T02:55:22.356ZNeeds auth533initialize: HTTP 401
2026-10-28T12:50:10.953ZNeeds auth782initialize: HTTP 401
2026-10-27T00:05:11.903ZHealthy795
2026-10-25T12:20:09.175ZHealthy915

Tools (30)

get_workspaceThis connection's workspace: its plan, the plan's limits and features, and whether trading is switched off. Call it first when unsure what the user can do. Example: {}
get_usageThis month's usage against the plan, and its cost so far in minor units (9900 is $99.00). Over quota opening is refused, closing never is. Example: {}
list_accountsThe workspace's MT5 accounts with id, login, server, state and environment (demo or live); use the id, not the login, everywhere else. Only `ready` accounts trade, so bring the others online first. Example: {"limit": 25}
get_accountOne account: login, broker, state, environment, and its last-read balance, equity and free margin. Example: {"account_id": "<id from list_accounts>"}
get_account_statusJust an account's state, cheap enough to poll every few seconds after bring_accounts_online until `ready`. States invalid_credentials, needs_2fa, needs_certificate and trading_disabled need the user, so stop polling. Example: {"account_id": "<id>"}
get_account_figuresBalance, equity, margin, free margin and margin level as decimal strings in the account currency, read every 15 s while online. Set fresh to ask the terminal now (the account must be `ready`). Example: {"account_id": "<id>", "fresh": true}
bring_accounts_onlineStarts each account's MT5 terminal in the cloud and logs it in; poll get_account_status until `ready`. Places no trades and is safe to repeat. Example: {"account_ids": ["<id>"]}
take_account_offlineStops an account's terminal; open positions and their stops stay at the broker. Refused while an order is in flight. Example: {"account_id": "<id>"}
list_positionsOpen positions on one account as last observed; brokerPositionId is what close_position and modify_position take. Pages with limit and cursor. Example: {"account_id": "<id>"}
list_instrumentsMarkets named once (XAUUSD, US30, BTCUSD) whatever each broker calls them. list_account_instruments gives one account's own symbol for each. Example: {"category": "metals"}
search_broker_serversMT5 broker servers matching a broker or server name, servers seen working on fxapis first. A server not listed can still be used. Example: {"query": "icmarkets"}
list_account_instrumentsEach instrument's symbol on this account's broker: mapped, ambiguous (with candidates) or missing. Trade the mapped symbol. Example: {"account_id": "<id>", "query": "XAU"}
get_market_hoursWhether a market is open now on this account's broker, and when it next opens or closes, in UTC. A broker holiday missing from its schedule still refuses orders. Example: {"account_id": "<id>", "instrument": "XAUUSD"}
get_quotesLive bid and ask for up to 20 symbols or instruments from this account's broker; a closed market answers its last price with marketOpen false. The account must be online. Example: {"account_id": "<id>", "instruments": ["EURUSD"]}
get_price_historyRecent price bars (candles: open, high, low, close, tick volume, spread) for one symbol from this account's broker, oldest first with bar-open times in UTC, for technical analysis such as trend, support and resistance, volatility or moving averages; timeframes M1 to MN1, up to 500 bars, the last bar
list_ordersOrders placed through fxapis, newest first, for one account or all; state `unknown` means still being confirmed, so never resend those. Pages with cursor. Example: {"state": "unknown"}
get_orderThe authoritative record of one order: what was asked, the broker's answer, fill volume and price. Poll it after ORDER_UNRESOLVED until it leaves `unknown`. Example: {"order_id": "<id>", "include_deals": true}
list_dealsAn account's deal history as the broker recorded it, newest first, including stops that fired, swaps and manual trades. Realised profit is here. Example: {"account_id": "<id>", "since": "2026-10-01T00:00:00Z"}
calculateThe margin an order would need, or its profit between two prices, as the broker computes it; opens nothing. The account must be online. Example: {"account_id": "<id>", "kind": "margin", "symbol": "EURUSD", "side": "buy", "volume": "0.10", "price": "1.08450"}
place_market_orderOpens a position at market on the user's real broker account (or demo) and waits for the broker; confirm account, symbol, side and volume with the user first. On ORDER_UNRESOLVED never resend, poll get_order. Example: {"account_id": "<id>", "symbol": "EURUSD", "side": "buy", "volume": "0.10", "idemp
place_pending_orderPlaces a limit or stop order on the user's real broker account (or demo) that waits at the broker; success means working, not filled. Confirm it with the user first. Example: {"account_id": "<id>", "symbol": "EURUSD", "side": "buy", "kind": "limit", "volume": "0.10", "price": "1.08000", "idempotency
close_positionCloses a position on the user's real broker account (or demo), whole or by volume. Sent twice it opens the opposite position, so reuse an idempotency_key only to retry the same close. Example: {"account_id": "<id>", "position_id": "<brokerPositionId>", "idempotency_key": "<new uuid>"}
modify_positionMoves a position's stop loss or take profit on the user's real broker account (or demo); null removes a level. Remove a stop loss only when the user asks. Example: {"account_id": "<id>", "position_id": "<brokerPositionId>", "stop_loss": "1.08000", "idempotency_key": "<new uuid>"}
cancel_orderCancels a pending order on the user's real broker account (or demo) that has not triggered. If it triggered there is a position to close instead. Example: {"order_id": "<id>", "idempotency_key": "<new uuid>"}
list_multi_account_ordersRecent multi-account orders (one trade on many accounts), each with its per-account result. Pages with limit and cursor. Example: {}
get_multi_account_orderOne multi-account order and each account's result; poll it after placing one. An account left `unresolved` must not be resent, so poll its order instead. Example: {"multi_account_order_id": "<id>"}
place_multi_account_orderPlaces the same market order on many of the user's real broker accounts (or demo) at once and returns at once; follow it with get_multi_account_order. Confirm the accounts, symbol, side and volume with the user first. Example: {"account_ids": ["<id>", "<id>"], "instrument": "XAUUSD", "side": "buy",
cancel_multi_account_orderCalls off a multi-account order on the user's real broker accounts (or demo) before anything is sent. Once orders went out, close the positions instead. Example: {"multi_account_order_id": "<id>", "idempotency_key": "<new uuid>"}
get_account_overviewOne account in one call: state, environment, balance and equity, and its largest open positions with their total P/L. Start here when asked how an account is doing. Example: {"account_id": "<id>"}
get_symbol_snapshotOne symbol on one account in one call: its specification, live quote, whether the market is open, and the margin for a volume. Use it before proposing a trade. Example: {"account_id": "<id>", "instrument": "XAUUSD", "volume": "0.10", "side": "buy"}