Fixed Issue #3: GetOrders return orders from trade and history pools

This commit is contained in:
DW
2016-05-11 11:13:42 +03:00
parent a39326b336
commit ab22b00afa
2 changed files with 2 additions and 1 deletions
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -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++)
{