ejtraderLabs / ejtraderMT

Metatrader 5 API - Trading and history OHLC Dataframe in Nano Seconds
GNU General Public License v3.0
70 stars 28 forks source link

error 5040 Damaged parameter of string type #4

Closed hfont closed 1 year ago

hfont commented 1 year ago

Hello thank you for making this api available very grateful to you.

I've been using many functions but when I call api.positions() and api.orders() I get these errors, I don't know what it is, I did a search and found this https://github.com/khramkov/MQL5-JSON-API/issues/11.

positions = api.positions() orders = api.orders()

print(positions) print(orders)

output

{"error":true,"lastError":"5040","description":"Damaged parameter of string type","function":"GetPositions"}

{"error":true,"lastError":"5040","description":"Damaged parameter of string type","function":"GetPositions"}

traderpedroso commented 1 year ago

Hello thank you for making this api available very grateful to you.

I've been using many functions but when I call api.positions() and api.orders() I get these errors, I don't know what it is, I did a search and found this khramkov/MQL5-JSON-API#11.

positions = api.positions() orders = api.orders()

print(positions) print(orders)

output

{"error":true,"lastError":"5040","description":"Damaged parameter of string type","function":"GetPositions"}

{"error":true,"lastError":"5040","description":"Damaged parameter of string type","function":"GetPositions"}

Sorry for the late response, thank you will update today