Пример #1
0
 public BitCoinStock(BitCoinTicker ticker, double buyThreshold, double sellThreshold, double requestFrequency)
 {
     SetMemberValue(buyThreshold, sellThreshold, requestFrequency);
     XmlFile = null;
     Trader  = new BitCoinTrader();
     Ticker  = ticker;
 }
Пример #2
0
 public BitCoinStock()
 {
     SetMemberValue();
     XmlFile = null;
     Trader  = new BitCoinTrader();
     Ticker  = new BitCoinTicker();
 }
Пример #3
0
        public BitCoinStock(string xmlFile)
        {
            XmlFile = xmlFile;
            Hashtable datas = XmlConfigHandler._LoadConfigXml(XmlFile);

            SetMemberValue(datas);
            Trader = new BitCoinTrader((Hashtable)datas["Trader"]);
            Ticker = new BitCoinTicker((Hashtable)datas["Ticker"]);
        }