コード例 #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"]);
        }