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

            bitstamp.ConnectAsync().Wait();
            Console.ReadLine();
        }
예제 #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();
        }
예제 #3
0
 protected CurrencyExchange(BitstampClient client, string tickerSymbol)
 {
     this.client       = client;
     this.TickerSymbol = tickerSymbol;
 }