public OrderMap(Framework framework, SingleProvider provider) : base(framework, provider) { externalOrders = new ConcurrentDictionary<string, ExternalOrderRecord>(); pendingOrders = new ConcurrentDictionary<string, OrderRecord>(); workingOrders = new Dictionary<string, OrderRecord>(); orderIDs = new Dictionary<int, string>(); pendingCancels = new ConcurrentDictionary<string, OrderRecord>(); }
public OrderMap(Framework framework, SingleProvider provider) : base(framework, provider) { externalOrders = new ConcurrentDictionary <string, ExternalOrderRecord>(); pendingOrders = new ConcurrentDictionary <string, OrderRecord>(); workingOrders = new Dictionary <string, OrderRecord>(); orderIDs = new Dictionary <int, string>(); pendingCancels = new ConcurrentDictionary <string, OrderRecord>(); }
private ConcurrentDictionary <string, QuoteRecord> pendingCancels; // 撤单拒绝时使用 public QuoteMap(Framework framework, SingleProvider provider, OrderMap orderMap) : base(framework, provider) { this.orderMap = orderMap; pendingOrders = new ConcurrentDictionary <string, QuoteRecord>(); workingOrders = new Dictionary <string, QuoteRecord>(); orderIDs = new Dictionary <int, string>(); pendingCancels = new ConcurrentDictionary <string, QuoteRecord>(); }
public BaseMap(Framework framework, SingleProvider provider) { this.framework = framework; this.provider = provider; }
public void Create(IList<ProviderItem> list) { foreach (var l in list) { IProvider pvd = framework.ProviderManager.GetProvider(l.Id); if (pvd == null) { SingleProvider provider = new SingleProvider(framework); provider.Init(l.Id, l.Name); framework.ProviderManager.AddProvider(provider); } } }