Closed gadieichhorn closed 3 years ago
Hi, thank you for your suggestion and sorry for the late reply. You are right that the current solution is not valid JSON. Still, we prefer to keep it this way for now because changing it could break existing strategies. We also aimed for consistency between mql4 and python. Since order IDs are integers in mql4, we thought it more intuitive to also use integer values in python.
The TRADES is not a valid JSON because it is using ' and not ". This fix just add a ' around the ticket ID map so it can be parsed as JSON by replacing all ' with "