public void RegisterSpi(IXSpi spi) { if (_client != null) { return; } _client = new CtpTradeClient(spi); }
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(); }
public void Release() { Disconnect(); _client = null; }
public CtpQueryManager(CtpTradeClient client) { _client = client; _action = new ActionBlock <QueryEvent>((Action <QueryEvent>)QueryAction); }