mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-17 20:58:11 +00:00
Issue #120: set field 'Symbol' as optional in MqlTradeRequest (MT5)
This commit is contained in:
Binary file not shown.
+5
-3
@@ -7299,9 +7299,11 @@ bool JsonToMqlTradeRequest(JSONObject *jo, MqlTradeRequest& request)
|
|||||||
request.order = jo.getLong("Order");
|
request.order = jo.getLong("Order");
|
||||||
|
|
||||||
//Symbol
|
//Symbol
|
||||||
CHECK_JSON_VALUE(jo, "Symbol", false);
|
if (jo.getValue("Symbol") != NULL)
|
||||||
StringInit(request.symbol, 100, 0);
|
{
|
||||||
request.symbol = jo.getString("Symbol");
|
StringInit(request.symbol, 100, 0);
|
||||||
|
request.symbol = jo.getString("Symbol");
|
||||||
|
}
|
||||||
|
|
||||||
//Volume
|
//Volume
|
||||||
CHECK_JSON_VALUE(jo, "Volume", false);
|
CHECK_JSON_VALUE(jo, "Volume", false);
|
||||||
|
|||||||
Reference in New Issue
Block a user