示例#1
0
        public void Save()
        {
            foreach (var item in this.InstrumentModels)
            {
                item.Price = 0;
            }
            var config = new ArbitrageConfig
            {
                InstrumentConfigs = this.InstrumentModels.ToArray(),
                Symbol            = this.Symbol,
                TriggerPrice      = this.TriggerPrice,
                Multiple          = this.Multiple
            };

            ConfigHelper.SaveConfig(ARBITRAGE_CONFIG_KEY, config);
        }
示例#2
0
 public void Save()
 {
     foreach (var item in this.InstrumentModels)
     {
         item.Price = 0;
     }
     var config = new ArbitrageConfig
     {
         InstrumentConfigs = this.InstrumentModels.ToArray(),
         Symbol = this.Symbol,
         TriggerPrice = this.TriggerPrice,
         Multiple = this.Multiple
     };
     ConfigHelper.SaveConfig(ARBITRAGE_CONFIG_KEY, config);
 }