Пример #1
0
 // 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();
 }
Пример #2
0
        //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;
        }
Пример #3
0
        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();
        }
Пример #4
0
        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();
        }
Пример #5
0
 public CryptoWindowsForm()
 {
     InitializeComponent();
     m_api = new ExchangeSharpApi(ExchangeSet.All);
     m_api.LoadCredentials(Credentials.CredentialsFile, Credentials.CredentialsPassword);
 }
Пример #6
0
 public TraderCrossExchange()
 {
     m_api = new ExchangeSharpApi();
     m_api.LoadCredentials(Credentials.CredentialsFile, Credentials.CredentialsPassword);
     m_tickers = new ConcurrentDictionary <string, ConcurrentDictionary <string, ConcurrentStack <ExchangeTicker> > >();
 }
Пример #7
0
		public TraderBuySellIndicator()
        {
            m_api = new ExchangeSharpApi();
			m_api.LoadCredentials(Credentials.CredentialsFile, Credentials.CredentialsPassword);
            m_creds = Credentials.LoadEncryptedCsv(Credentials.CredentialsFile, Credentials.CredentialsPassword);
        }
Пример #8
0
 public Bank()
 {
     m_api = new ExchangeSharpApi();
     m_api.LoadCredentials(Credentials.CredentialsFile, Credentials.CredentialsPassword);
 }