TheSnowGuru / PyTrader-python-mt4-mt5-trading-api-connector-drag-n-drop

Open Source Trading Strategies & End-to-End solution connecting Metatrader4 & Metatrader5 💹 with Python with a simple drag and drop EA. Fully tested bug free & efficient solution for live & paper trading⭐ Full Documentation ready. Lightweight, efficient and stable implementation 🔥
https://discord.gg/wRMUNP8ERa
653 stars 11 forks source link

Pytrader_API, function Get_broker_server_time() #23

Closed ArthurEzenwanne closed 2 years ago

ArthurEzenwanne commented 2 years ago

Trying to use above Get_broker_server_time() function to retrieve broker server time yields an error as seen in the image below:

image

Pytrader_API Version: Pytrader_API_V2_081 OS Version: Win10 Pro Editor: VSCode

_Note that with Pytrader_API Version: Pytrader_API_V1_06a the Get_broker_server_time() function worked as expected._

ArthurEzenwanne commented 2 years ago

Just tried some other function [Get_static_account_info()] and I got same error of invalid sock on V2_081. However V1_06a works

ArthurEzenwanne commented 2 years ago

Closing this issue. I needed to call those functions after the initiating the connection. on line 57.