Skip to content
Advertisement

Tag: metatrader5

How can I convert Json data that coming from Postman convert into Integers in python?

Here I’ve wrote a python script using MQL5 to get total history order from MetaTrader5. here’s the code, what my requirement is I need to get from_date and to_date parameter from user. so I passed these parameter from Postman Using POST request.here is the payload And it says, history_orders = mt.history_orders_total(datetime(fromDate), datetime(toDate)) TypeError: an integer is required (got type str)

Advertisement