-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Json serialize problem #120
Comments
Sure. I will fix it next release. Thank you. |
I have added fix to mql code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to perform "Order close by". This is my code:
I dont need to send Symbol property. After json serialization MtApi5 advisor takes this json:
{"RequestType" : 3,"TradeRequest" : {"Type" : 0,"Magic" : 0,"Order" : 0,"Type_filling" : 0,"Sl" : 0,"Tp" : 0,"Deviation" : 0,"Action" : 10,"PositionBy" : 15052,"Type_time" : 0,"Position" : 0,"Price" : 0,"MtExpiration" : 0,"Stoplimit" : 0,"Volume" : 0}}
-There is no Symbol property and it leads to errors: "Failed to parse parameter TradeRequest" on response and "JsonToMqlTradeRequest: failed to get Symbol from JSON!" on Advisor.I modified MqlTradeRequest class like this:
Now everything is ok. Could you fix this, please, in next releases?
The text was updated successfully, but these errors were encountered: