Ejemplo n.º 1
0
    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();
        }
    }
Ejemplo n.º 2
0
 internal void ReadAction() => Order.OrderAction = R.ReadStringEnum <OrderAction>();