Broker API HubMenu

Platform API

MetaTrader 5 API: questions and answers

7 questions about the MetaTrader 5 API, each answered from the MetaTrader 5 record on this site and nothing else.

Independent and unofficialNewest check Official documentation

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

An answer here is the record's own wording, cut at the end of a sentence, or a list of names read from records. An answer that opens with the word Unverified has no dated source behind it. Where this page and the provider's own documentation differ, the documentation wins. Nothing here recommends a broker.

MetaTrader 5 API questions

Does MetaTrader 5 have a demo or paper trading API?

Yes: demo accounts can be opened from within the terminal.

Opening an account (MT5 help)checked

The MetaTrader 5 record's full wording. The same question for every record.

What are MetaTrader 5's API rate limits?

Not published. The Python page states none, carries no version and no date, and gives no consolidated error list beyond last_error() (read 22 Sep 2026).

MetaTrader for Pythonchecked

MetaTrader 5 API rate limits, as the record words them. The same question for every record.

How do I authenticate with the MetaTrader 5 API?

No API keys: initialize() connects to the local terminal, optionally with account login, password and server.

initializechecked

The MetaTrader 5 record's full wording. The same question for every record.

Does MetaTrader 5 support streaming or WebSocket prices?

No push API in Python: poll ticks and bars; market_book_add subscribes the terminal to depth events. MQL5 EAs get tick events.

MetaTrader for Pythonchecked

The MetaTrader 5 record's full wording. The same question for every record.

Is there an official Python library for MetaTrader 5?

The MetaTrader 5 record marks one Python library as official: MetaTrader5. It also lists as community, not official: Community Python MCP server (MQL5 article 21905).

MetaTrader5checked

Every library in the MetaTrader 5 record. The same question for every record.

Does MetaTrader 5 have an MCP server?

The MCP server register on this site holds 3 servers for MetaTrader 5. Published by the provider itself: MetaTrader 5 native MCP. Published by the community, not by the provider: metatrader-mcp-server and MQL5 community FastMCP server.

MetaTrader 5 native MCPchecked metatrader-mcp-serverchecked MQL5 community FastMCP serverchecked

The MCP server directory, with what each server can do. The same question for every record.

What does MetaTrader 5 error -10005 mean?

The terminal did not respond in time.

mql5.comchecked

MetaTrader 5 error -10005: the meaning in full and what to do. The same question for every record.

Where to go next

Other platform APIs

In order of name. The order is not a ranking.

Sections