Esempio n. 1
0
        static Asset()
        {
            try
            {
                Cache = new InMemoryAssetCache();

                Cache.Load(
                    new[] {
                    // <<insert asset definitions>>
                });

                // Redirect (BCH) Bitcoin Cash (BCC = BitConnect)
                Cache.Set("BCH", Cache.Get("BCC"));
            }
            catch (Exception e)
            {
                Console.Error?.WriteLine($"{nameof(Binance)}.{nameof(Asset)}(): \"{e.Message}\"");
            }
        }
Esempio n. 2
0
        static Asset()
        {
            try
            {
                Cache = new InMemoryAssetCache();

                Cache.Load(
                    new[] {
                    new Asset("ADA", 8),
                    new Asset("ADX", 8),
                    new Asset("AE", 8),
                    new Asset("AION", 8),
                    new Asset("AMB", 8),
                    new Asset("APPC", 8),
                    new Asset("ARK", 8),
                    new Asset("ARN", 8),
                    new Asset("AST", 8),
                    new Asset("BAT", 8),
                    new Asset("BCC", 8),
                    new Asset("BCD", 8),
                    new Asset("BCPT", 8),
                    new Asset("BLZ", 8),
                    new Asset("BNB", 8),
                    new Asset("BNT", 8),
                    new Asset("BQX", 8),
                    new Asset("BRD", 8),
                    new Asset("BTC", 8),
                    new Asset("BTG", 8),
                    new Asset("BTS", 8),
                    new Asset("CDT", 8),
                    new Asset("CHAT", 8),
                    new Asset("CLOAK", 8),
                    new Asset("CMT", 8),
                    new Asset("CND", 8),
                    new Asset("DASH", 8),
                    new Asset("DGD", 8),
                    new Asset("DLT", 8),
                    new Asset("DNT", 8),
                    new Asset("EDO", 8),
                    new Asset("ELF", 8),
                    new Asset("ENG", 8),
                    new Asset("ENJ", 8),
                    new Asset("EOS", 8),
                    new Asset("ETC", 8),
                    new Asset("ETH", 8),
                    new Asset("EVX", 8),
                    new Asset("FUEL", 8),
                    new Asset("FUN", 8),
                    new Asset("GAS", 8),
                    new Asset("GNT", 8),
                    new Asset("GRS", 8),
                    new Asset("GTO", 8),
                    new Asset("GVT", 8),
                    new Asset("GXS", 8),
                    new Asset("HSR", 8),
                    new Asset("ICN", 8),
                    new Asset("ICX", 8),
                    new Asset("INS", 8),
                    new Asset("IOST", 8),
                    new Asset("IOTA", 8),
                    new Asset("KMD", 8),
                    new Asset("KNC", 8),
                    new Asset("LEND", 8),
                    new Asset("LINK", 8),
                    new Asset("LOOM", 8),
                    new Asset("LRC", 8),
                    new Asset("LSK", 8),
                    new Asset("LTC", 8),
                    new Asset("LUN", 8),
                    new Asset("MANA", 8),
                    new Asset("MCO", 8),
                    new Asset("MDA", 8),
                    new Asset("MOD", 8),
                    new Asset("MTH", 8),
                    new Asset("MTL", 8),
                    new Asset("NANO", 8),
                    new Asset("NAV", 8),
                    new Asset("NCASH", 8),
                    new Asset("NEBL", 8),
                    new Asset("NEO", 8),
                    new Asset("NULS", 8),
                    new Asset("OAX", 8),
                    new Asset("OMG", 8),
                    new Asset("ONT", 8),
                    new Asset("OST", 8),
                    new Asset("PIVX", 8),
                    new Asset("POA", 8),
                    new Asset("POE", 8),
                    new Asset("POWR", 8),
                    new Asset("PPT", 8),
                    new Asset("QLC", 8),
                    new Asset("QSP", 8),
                    new Asset("QTUM", 8),
                    new Asset("RCN", 8),
                    new Asset("RDN", 8),
                    new Asset("REQ", 8),
                    new Asset("RLC", 8),
                    new Asset("RPX", 8),
                    new Asset("SALT", 8),
                    new Asset("SNGLS", 8),
                    new Asset("SNM", 8),
                    new Asset("SNT", 8),
                    new Asset("STEEM", 8),
                    new Asset("STORJ", 8),
                    new Asset("STORM", 8),
                    new Asset("STRAT", 8),
                    new Asset("SUB", 8),
                    new Asset("SYS", 8),
                    new Asset("TNB", 8),
                    new Asset("TNT", 8),
                    new Asset("TRIG", 8),
                    new Asset("TRX", 8),
                    new Asset("USDT", 8),
                    new Asset("VEN", 8),
                    new Asset("VIA", 8),
                    new Asset("VIB", 8),
                    new Asset("VIBE", 8),
                    new Asset("WABI", 8),
                    new Asset("WAN", 8),
                    new Asset("WAVES", 8),
                    new Asset("WINGS", 8),
                    new Asset("WPR", 8),
                    new Asset("WTC", 8),
                    new Asset("XEM", 8),
                    new Asset("XLM", 8),
                    new Asset("XMR", 8),
                    new Asset("XRP", 8),
                    new Asset("XVG", 8),
                    new Asset("XZC", 8),
                    new Asset("YOYO", 8),
                    new Asset("ZEC", 8),
                    new Asset("ZIL", 8),
                    new Asset("ZRX", 8),
                });

                // Redirect (BCH) Bitcoin Cash (BCC = BitConnect)
                Cache.Set("BCH", Cache.Get("BCC"));
            }
            catch (Exception e)
            {
                Console.Error?.WriteLine($"{nameof(Binance)}.{nameof(Asset)}(): \"{e.Message}\"");
            }
        }