Method DownloadOrderHistory
- Namespace
- ViiSync.AccountApi
- Assembly
- ViiSync.AccountApi.dll
DownloadOrderHistory(DateTime, DateTime, OrderSort, bool)
Closed trades, deals and orders of a time window (MT5 DownloadOrderHistory).
Orders holds one Order per position CLOSED in the window (built from its deals,
the way the MT5 terminal's history does: open from the IN deal — fetched even when it predates the window — close
from the OUT deals, profit/commission/swap summed) plus balance/credit operations; InternalDeals every deal of the
window; InternalOrders every order placed in the window.
public OrderHistoryEventArgs DownloadOrderHistory(DateTime from, DateTime to, OrderSort sort = OrderSort.OpenTime, bool ascending = true)
Parameters
Returns
Remarks
MT5 equivalent
MT5API.DownloadOrderHistory(DateTime from, DateTime to, OrderSort sort = OpenTime, bool ascending = True)— full