Broker API HubMenu

MetaTrader 5 functions

78 documented functions of the MetaTrader5 Python package and MQL5, grouped by what they do. Each has its signature, arguments, return value and the source it was read from.

Independent and unofficialNewest check

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.

These are functions of a programming language, not HTTP endpoints: none has a method, a path or an address. For that reason they are in no OpenAPI file on this site and the request builder does not list them. A function that is not listed is not recorded here, which is not evidence that it does not exist.

MT5 Python: Account

1 function

MT5 Python: Bars and ticks

5 functions

MT5 Python: Connection

6 functions

MT5 Python: History

4 functions

MT5 Python: Market depth

3 functions

MT5 Python: Orders

6 functions

MT5 Python: Positions

2 functions

MT5 Python: Symbols

5 functions

MQL5: Account

3 functions

MQL5: Bars and ticks

3 functions

MQL5: History

14 functions

MQL5: Pending orders

6 functions

MQL5: Positions

8 functions

MQL5: Sending orders

5 functions

MQL5: Symbols and prices

7 functions
Sections