public Sploders() { m_api = new ExchangeSharpApi(ExchangeSet.All); m_rawGainers24 = new SortedDictionary <DateTime, Dictionary <string, CoinMarketCapTicker> >(); m_cmc = new CoinMarketCapApi(); m_maker = new CandlestickMaker(); }
// CTOR: // Given an exchange and symbol and number of bars to use in RealizedVolatility calculation // AND Given ExchangeSharpRestApi object // Construct the Renko public Renko(string exchange, string symbol, int numberOfBars, ExchangeSharpApi xsapi) { m_api = xsapi; m_maker = new CandlestickMaker(); m_exchange = exchange; m_symbol = symbol; m_nbars = numberOfBars; ConstructRenko(); }
// CTOR: // Given an exchange and symbol and number of bars to use in RealizedVolatility calculation // Construct the Renko public Renko(string exchange, string symbol, int numberOfBars) { m_api = new ExchangeSharpApi(); m_api.LoadCredentials(Credentials.CredentialsFile, Credentials.CredentialsPassword); m_maker = new CandlestickMaker(); m_exchange = exchange; m_symbol = symbol; m_nbars = numberOfBars; ConstructRenko(); }
public TraderScalper() { m_api = new ExchangeSharpApi(ExchangeSet.All); m_api.LoadCredentials(Credentials.CredentialsFile, Credentials.CredentialsPassword); m_creds = Credentials.LoadEncryptedCsv(Credentials.CredentialsFile, Credentials.CredentialsPassword); m_prowl = new ProwlPub(m_creds["PROWL"].Key, "Scalper"); m_om = new OrderManager(m_creds); m_maker = new CandlestickMaker(); m_orders = new ConcurrentBag <ExchangeOrderResult>(); m_binanceRestApi = new BinanceRestApi(m_creds["BINANCE"].Key, m_creds["BINANCE"].Secret); ReadTradeSymbols(); }
static void Main(string[] args) { Console.WriteLine("\n*** WELCOME TO CRYPTO COLLECTOR ***\n"); // *** RUN CRYPTOCOLLECTOR "MODULE" BASED ON COMMAND LINE ARGUMENT ("1", "2", "3", ...) if (args.Length > 0) { if (args[0] == "1") { var collector = new CollectorTickers(); collector.Start(); } else if (args[0] == "2") { //var cmaker = new CandlestickMaker(); //cmaker.Test(); } Console.WriteLine("\nPress any key to exit..."); Console.ReadKey(); return; } else { Console.WriteLine("usage: dotnet CryptoCollector.dll <#module>"); Console.WriteLine(" ex: dotnet CryptoCollector.dll 1 (CollectorTickers)"); Console.WriteLine(" ex: dotnet CryptoCollector.dll 2 (CandlestickMaker)"); Console.WriteLine(); } // *** THIS CODE WILL RUN IF NO COMMAND-LINE ARGUMENTS ARE PASSED - USE FOR TESTING *** var maker = new CandlestickMaker(); //maker.Test(); //maker.CreateCandlesFiles("BINANCE", "ETHUSDT"); //maker.CreateCandlesFiles("BINANCE", "BTCUSDT"); //maker.CreateCandlesFiles("BINANCE", "NEOUSDT"); //maker.RealizedVolTest(); maker.RangeHeightsTest(); Console.WriteLine("\nPress any key to exit..."); Console.ReadKey(); }
public void AnalyzerTest() { m_maker = new CandlestickMaker(); //DownloadHistoricalData("BINANCE", "XMRBTC"); return; /*var pathname = Path.Combine(Folder.crypto_folder, "analyzer_output.txt"); * OpenCoutFile(pathname); * * var renko = new Renko("BINANCE", "TRXBTC", 12); * //var renko = new Renko("BINANCE", "NEOUSDT", 12); * * CloseCoutFile();*/ var xsym = new XSymbol("BINANCE", "BNBUSDT"); AnalyzeATR(xsym, 30, 12); return; BinanceRenko("XLMBTC"); BinanceRenko("ADAUSDT"); BinanceRenko("BCCUSDT"); BinanceRenko("BNBUSDT"); BinanceRenko("BTCUSDT"); BinanceRenko("ETHUSDT"); BinanceRenko("LTCUSDT"); BinanceRenko("NEOUSDT"); BinanceRenko("QTUMUSDT"); BinanceRenko("XRPUSDT"); BinanceRenko("XMRBTC"); BinanceRenko("ZECBTC"); BinanceRenko("ZRXBTC"); }