error code: (-2, 'Terminal: Invalid params')
I have the same error. What is the solution? Thanks.
The following code works just fine:
if not mt5.initialize(login=account, password=password, server=server): print("initialize() failed, error code =",mt5.last_error()) quit() authorized=mt5.login(account, password=password, server=server) if authorized: print(mt5.account_info()) print("Show account_info()._asdict():") account_info_dict = mt5.account_info()._asdict() for prop in account_info_dict: print(" {}={}".format(prop, account_info_dict[prop])) else: print("failed to connect at account #{}, error code: {}".format(account, mt5.last_error()))
Good day, can someone please help me. I login into my account, it keeps showing me this (error code: (-2, 'Terminal: Invalid params')) in the console when I run the code.
Here is what I've got. (Still new)