• Forum
  • Market
  • Signals
  • Freelance
  • VPS
  • Quotes
  • MetaTrader
  • Articles
  • CodeBase
  • Algo Forge
  • Documentation
  • AlgoBook
  • NeuroBook
  • Calendar
  • WebTerminal
  • Tools
  • About
  • Algo Trading Channel
ForumSections
  • Log in
  • Create an account
  • English
  • Русский
  • 中文
  • Español
  • Português
  • 日本語
  • Deutsch
  • 한국어
  • Français
  • Italiano
  • Türkçe

How to get all the open orders and history for my trading account using python

New comment
Zahin Awosaf
10
Zahin Awosaf 2024.05.24 11:18
Hi, I am using MT4 with Pepperstone and I would like to use python to retrieve all the infos from my trading account like open orders, order history, profit/loss etc. Thank you.
  • Reset the Historical of Magic Numbers
  • Info from Last Closed Order
  • How to close Pending orders in Mt5 with python
New comment
MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal
You are missing trading opportunities:
  • Free trading apps
  • Over 8,000 signals for copying
  • Economic news for exploring financial markets
Registration Log in
An error occurred
  • Log in With Google

You agree to website policy and terms of use

If you do not have an account, please register

Allow the use of cookies to log in to the MQL5.com website.

Please enable the necessary setting in your browser, otherwise you will not be able to log in.

Forgot your login/password?
  • Log in With Google
    • Online trading / WebTerminal
    • Free technical indicators and robots
    • Articles about programming and trading
    • Order trading robots on the Freelance
    • Market of Expert Advisors and applications
    • Follow forex signals
    • Low latency forex VPS
    • Traders forum
    • Trading blogs
    • Charts
    • Free widgets
    • MetaTrader 5 Trading Platform
    • MetaTrader 5 latest updates
    • News, implementations and technology
    • MetaTrader 5 User Manual
    • MQL5 language of trading strategies
    • MQL5 Cloud Network
    • MQL5 Algo Forge
    • Download MetaTrader 5
    • Install Platform
    • Uninstall Platform
    • About
    • Timeline
    • Terms and Conditions
    • Recurring Payment Agreement
    • Agency Agreement – Offer
    • Privacy and Data Protection Policy
    • Data Sources
    • Cookies Policy
    • Contacts and requests
  • MetaTrader 5
    Download MetaTrader 5 for Windows
    Download MetaTrader 5 for MacOS
    Download MetaTrader 5 for Linux
    Open MetaTrader 5 WebTerminal
    Scan to install from App Store
    Scan to install from Google Play
    Scan to install from Huawei AppGallery
    Scan to get Android APK file
    MQL5 Channels
    Scan to install from App Store
    Scan to install from Google Play
    Scan to install from Huawei AppGallery
    Scan to get Android APK file
    Economic Calendar
    Scan to install from App Store
    Scan to install from Google Play
    Scan to install from Huawei AppGallery
    Scan to get Android APK file
    Subscribe to algotrading news
    Not a broker, no real trading accounts
    35 Dodekanisou str, Germasogeia, 4043, Limassol, Cyprus
    Copyright 2000-2026, MetaQuotes Ltd