// 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(); }
//private List<TradeSymbolRawCsvRecord> m_tradeSymbols; //private List<TradeSymbolRawCsvRecord> m_activeTradeSymbols; public TraderFX() { 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_priceFeed = PriceFeed.Instance; }
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(); }
public TradeBinanceArbsXS() { m_api = new ExchangeSharpApi(); m_api.LoadCredentials(Credentials.CredentialsFile, Credentials.CredentialsPassword); m_creds = Credentials.LoadEncryptedCsv(Credentials.CredentialsFile, Credentials.CredentialsPassword); //m_tickers = new ConcurrentDictionary<string, ConcurrentDictionary<string, ConcurrentStack<ExchangeTicker>>>(); m_tradingSymbols.AddRange(new List <string>() { "ETHUSDT", "BTCUSDT" }); m_tradingSymbols.AddRange(new List <string>() { "NEOUSDT", "NEOETH", "NEOBTC" }); m_tradingSymbols.AddRange(new List <string>() { "BNBUSDT", "BNBETH", "BNBBTC" }); m_tradingSymbols.AddRange(new List <string>() { "QTUMUSDT", "QTUMETH", "QTUMBTC" }); m_tradingSymbols.AddRange(new List <string>() { "LTCUSDT", "LTCETH", "LTCBTC" }); m_tradingSymbols.AddRange(new List <string>() { "BCCUSDT", "BCCETH", "BCCBTC" }); m_tradingSymbols.AddRange(new List <string>() { "ADAUSDT", "ADAETH", "ADABTC" }); m_tradingSymbols.AddRange(new List <string>() { "XRPUSDT", "XRPETH", "XRPBTC" }); SetTradeSizes(5.0M); InitializeArbPositions(); }
public CryptoWindowsForm() { InitializeComponent(); m_api = new ExchangeSharpApi(ExchangeSet.All); m_api.LoadCredentials(Credentials.CredentialsFile, Credentials.CredentialsPassword); }
public TraderCrossExchange() { m_api = new ExchangeSharpApi(); m_api.LoadCredentials(Credentials.CredentialsFile, Credentials.CredentialsPassword); m_tickers = new ConcurrentDictionary <string, ConcurrentDictionary <string, ConcurrentStack <ExchangeTicker> > >(); }
public TraderBuySellIndicator() { m_api = new ExchangeSharpApi(); m_api.LoadCredentials(Credentials.CredentialsFile, Credentials.CredentialsPassword); m_creds = Credentials.LoadEncryptedCsv(Credentials.CredentialsFile, Credentials.CredentialsPassword); }
public Bank() { m_api = new ExchangeSharpApi(); m_api.LoadCredentials(Credentials.CredentialsFile, Credentials.CredentialsPassword); }