mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 02:57:56 +00:00
Fixed Issue #3: GetOrders return orders from trade and history pools
This commit is contained in:
Binary file not shown.
+2
-1
@@ -3507,8 +3507,9 @@ string ExecuteRequestGetOrders(JSONObject *jo)
|
||||
int pool = jo.getInt("Pool");
|
||||
|
||||
Print("ExecuteRequestGetOrders: Pool = ", pool);
|
||||
|
||||
int total = (pool == MODE_HISTORY) ? OrdersHistoryTotal() : OrdersTotal();
|
||||
|
||||
int total=OrdersTotal();
|
||||
JSONArray* joOrders = new JSONArray();
|
||||
for(int pos = 0; pos < total; pos++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user