Platform API
MetaTrader 4 API: questions and answers
5 questions about the MetaTrader 4 API, each answered from the MetaTrader 4 record on this site and nothing else. 1 of the answers rests on a record labelled unverified.
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 4 API questions
Does MetaTrader 4 have a demo or paper trading API?
Yes: demo accounts can be opened from within the terminal.
Opening of accounts (MT4 help)checked
The MetaTrader 4 record's full wording. The same question for every record.
What are MetaTrader 4's API rate limits?
Not published.
MQL4 Referencechecked
MetaTrader 4 API rate limits, as the record words them. The same question for every record.
How do I authenticate with the MetaTrader 4 API?
No API keys: code runs inside a terminal already logged in to a trading account.
MQL4 Referencechecked
The MetaTrader 4 record's full wording. The same question for every record.
Does MetaTrader 4 support streaming or WebSocket prices?
In-terminal events only (new tick, timer, depth changes); no external streaming API.
MQL4 Referencechecked
The MetaTrader 4 record's full wording. The same question for every record.
Does MetaTrader 4 have an MCP server?
Unverified. Not found on the pages opened, which is not proof that none exists. No agent tooling found, and no first party MetaQuotes MT4 page was opened. Recorded as no route found, not as confirmed absence.
Unverifiedno source opened
The MCP server directory: looked for and not found. The same question for every record.
Not recorded here
The MetaTrader 4 record cannot answer these questions yet, so they are not asked above. That is a gap in this dataset. It says nothing either way about MetaTrader 4.
- Is there an official Python library for MetaTrader 4? Not recorded here
- What does the most referenced MetaTrader 4 error mean? Not recorded here
Where to go next
- The MetaTrader 4 API record in full: every field with its source
- Answers for every broker and platform API
- Which broker APIs have a demo environment?
- What are the rate limits of each broker API?
- How does each broker API authenticate?
- Which broker APIs stream prices?
- Which broker APIs have an official Python library?
- Which broker APIs have an MCP server?
- What does each API's most referenced error mean?
Other platform APIs
In order of name. The order is not a ranking.