当前位置: 首页>>代码示例>>C#>>正文


C# Fields.TransactTime类代码示例

本文整理汇总了C#中QuickFix.Fields.TransactTime的典型用法代码示例。如果您正苦于以下问题:C# TransactTime类的具体用法?C# TransactTime怎么用?C# TransactTime使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TransactTime类属于QuickFix.Fields命名空间,在下文中一共展示了TransactTime类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Set

 public void Set(QuickFix.Fields.TransactTime val) 
 { 
     this.TransactTime = val;
 }
开发者ID:RemiGaudin,项目名称:quickfixn,代码行数:4,代码来源:TradeCaptureReport.cs

示例2: CreateNewOrderSingleMessage

        public Message CreateNewOrderSingleMessage(string symbol,
                                                   MarketSide marketSide,
                                                   string clOrdID,
                                                   TradingAccount account,
                                                   decimal price,
                                                   decimal quantity,
                                                   OrderType orderType,
                                                   string execID)
        {
            var fOrdType = TranslateFixFields.Translate(orderType);
            var fSide = TranslateFixFields.Translate(marketSide);
            var fSymbol = new Symbol(symbol);
            var fTransactTime = new TransactTime(DateTime.Now);
            var fClOrdID = new ClOrdID(clOrdID);

            var nos = new NewOrderSingle(fClOrdID,
                                         fSymbol,
                                         fSide,
                                         fTransactTime,
                                         fOrdType)
            {
                OrderQty = new OrderQty(quantity),
                TimeInForce = new TimeInForce(TimeInForce.GOOD_TILL_CANCEL)
            };

            if (orderType == OrderType.Limit)
                nos.Price = new Price(price);

            return nos;
        }
开发者ID:naziway,项目名称:testtask,代码行数:30,代码来源:Fix44MessageGenerator.cs

示例3: DateTimeFieldTest

 public void DateTimeFieldTest()
 {
     fieldmap.SetField(new DateTimeField(Tags.TransactTime, new DateTime(2009, 12, 10)));
     TransactTime tt = new TransactTime();
     fieldmap.GetField(tt);
     Assert.That(new DateTime(2009, 12, 10), Is.EqualTo(tt.Obj));
     fieldmap.SetField(new TransactTime(new DateTime(2010, 12, 10)));
     fieldmap.GetField(tt);
     Assert.That(new DateTime(2010, 12, 10), Is.EqualTo(tt.getValue()));
 }
开发者ID:kennystone,项目名称:quickfixn,代码行数:10,代码来源:FieldMapTests.cs

示例4: CreateOrders

 private Queue<QuickFix.FIX42.NewOrderSingle> CreateOrders(int n)
 {
     Queue<QuickFix.FIX42.NewOrderSingle> orders = new Queue<QuickFix.FIX42.NewOrderSingle>(n);
     for (int i = 0; i < n; i++) {
         ClOrdID cloudOrderId = new ClOrdID(Guid.NewGuid().ToString());
         HandlInst handlInst = new HandlInst(HandlInst.AUTOMATED_EXECUTION_ORDER_PRIVATE_NO_BROKER_INTERVENTION);
         Symbol symbol = new Symbol("MSFT");
         Side side = new Side(Side.BUY);
         TransactTime time = new TransactTime();
         OrdType orderType = new OrdType(OrdType.LIMIT);
         QuickFix.FIX42.NewOrderSingle order = new QuickFix.FIX42.NewOrderSingle(cloudOrderId, handlInst, symbol, side, time, orderType);
         order.Account = new Account("Account");
         order.OrderQty = new OrderQty(100);
         order.ExDestination = new ExDestination("*");
         order.TimeInForce = new TimeInForce(TimeInForce.DAY);
         order.Price = new Price(50m);
         order.SecurityType = new SecurityType(SecurityType.COMMON_STOCK);
         orders.Enqueue(order);
     }
     return orders;
 }
开发者ID:huruixd,项目名称:quickfixn,代码行数:21,代码来源:Client.cs


注:本文中的QuickFix.Fields.TransactTime类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。