mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-16 12:18:09 +00:00
Added Request/Response mechanism into mtapi. Added structure MtOrder. Added functions GetOrder, GetOrders.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
|
||||
namespace MtApi
|
||||
{
|
||||
public class MtOrder
|
||||
{
|
||||
public int Ticket { get; set; }
|
||||
public string Symbol { get; set; }
|
||||
public TradeOperation Operation { get; set; }
|
||||
public double OpenPrice { get; set; }
|
||||
public double ClosePrice { get; set; }
|
||||
public double Lots { get; set; }
|
||||
public int MtOpenTime { get; set; }
|
||||
public int MtCloseTime { get; set; }
|
||||
public double Profit { get; set; }
|
||||
public string Comment { get; set; }
|
||||
public double Commission { get; set; }
|
||||
public int MagicNumber { get; set; }
|
||||
|
||||
public DateTime OpenTime
|
||||
{
|
||||
get { return MtApiTimeConverter.ConvertFromMtTime(MtOpenTime); }
|
||||
}
|
||||
|
||||
public DateTime CloseTime
|
||||
{
|
||||
get { return MtApiTimeConverter.ConvertFromMtTime(MtCloseTime); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user