internal OrderStatusReport(ResponseReader r) { if (!r.Builder.SupportsServerVersion(ServerVersion.MARKET_CAP_PRICE)) { r.IgnoreVersion(); } OrderId = r.ReadInt(); Status = r.ReadStringEnum <OrderStatus>(); Filled = r.ReadDouble(); Remaining = r.ReadDouble(); AverageFillPrice = r.ReadDouble(); PermanentId = r.ReadInt(); ParentId = r.ReadInt(); LastFillPrice = r.ReadDouble(); ClientId = r.ReadInt(); WhyHeld = r.ReadString(); if (r.Builder.SupportsServerVersion(ServerVersion.MARKET_CAP_PRICE)) { MktCapPrice = r.ReadDouble(); } }
internal void ReadAction() => Order.OrderAction = R.ReadStringEnum <OrderAction>();