Пример #1
0
 public void RegisterSpi(IXSpi spi)
 {
     if (_client != null)
     {
         return;
     }
     _client = new CtpTradeClient(spi);
 }
Пример #2
0
 public CtpQueryManager(CtpTradeClient client)
 {
     _client = client;
 }
 public CtpDealProcessor(CtpTradeClient client)
 {
     _client = client;
     _action = new ActionBlock <OrderEvent>((Action <OrderEvent>)OrderAction);
     _orders = new OrderMap();
 }
 public CtpDealProcessor(CtpTradeClient client)
 {
     _client = client;
     _action = new ActionBlock <OrderEvent>(OrderAction, DataflowHelper.SpscBlockOptions);
     _orders = new OrderMap();
 }
Пример #5
0
 public void Release()
 {
     Disconnect();
     _client = null;
 }
 public CtpQueryManager(CtpTradeClient client)
 {
     _client = client;
     _action = new ActionBlock <QueryEvent>((Action <QueryEvent>)QueryAction);
 }