public static void Main(string[] args)
        {
            var bitstamp = new BitstampClient();
            bitstamp.TradeOccured += (s, t) => Console.WriteLine(t);

            bitstamp.ConnectAsync().Wait();
            Console.ReadLine();
        }
Exemple #2
0
        public static void Main(string[] args) {
            var bitstamp = new BitstampClient();

            bitstamp.ConnectAsync().Wait();

            bitstamp.GetTickerObservable()
                .Subscribe(x=>Console.WriteLine(x));

            //bitstamp.GetTradesObservable()
            //    .Subscribe(x => Console.WriteLine(x));

            //bitstamp.GetOrderBookObservable()
            //    .Subscribe(x => Console.WriteLine(x));

            Console.ReadLine();
        }
Exemple #3
0
 protected CurrencyExchange(BitstampClient client, string tickerSymbol)
 {
     this.client       = client;
     this.TickerSymbol = tickerSymbol;
 }