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