Esempio n. 1
0
 public Coin(CustomCoin customCoin)
 {
     FullName = customCoin.FullName;
     TagName = customCoin.Tag;
     Algo = customCoin.Algo;
     Difficulty = customCoin.Difficulty;
     BlockReward = customCoin.BlockReward;
     BlockTime = customCoin.BlockTime;
     NetHashRate = customCoin.NetHashRate*1000000;
     Height = customCoin.Height;
     Exchange customExchange = new Exchange
     {
         ExchangeName = "Unknown (Custom coin)",
         BtcPrice = customCoin.CustomPrice,
         BtcVolume = 0,
         Weight = 1,
         IsFrozen = false
     };
     Exchanges = new List<Exchange>{customExchange};
     TotalExchange = customExchange;
     Source = "Custom coin";
     Retrieved = DateTime.Now;
     IsMultiPool = false;
     HasImplementedMarketApi = false;
 }
Esempio n. 2
0
        public Coin(CustomCoin customCoin)
        {
            FullName    = customCoin.FullName;
            TagName     = customCoin.Tag;
            Algo        = customCoin.Algo;
            Difficulty  = customCoin.Difficulty;
            BlockReward = customCoin.BlockReward;
            BlockTime   = customCoin.BlockTime;
            NetHashRate = customCoin.NetHashRate * 1000000;
            Height      = customCoin.Height;
            Exchange customExchange = new Exchange
            {
                ExchangeName = "Unknown (Custom coin)",
                BtcPrice     = customCoin.CustomPrice,
                BtcVolume    = 0,
                Weight       = 1,
                IsFrozen     = false
            };

            Exchanges = new List <Exchange> {
                customExchange
            };
            TotalExchange           = customExchange;
            Source                  = "Custom coin";
            Retrieved               = DateTime.Now;
            IsMultiPool             = false;
            HasImplementedMarketApi = false;
        }