コード例 #1
0
            /// <summary>
            /// Subscribe to all market summaries
            /// </summary>
            /// <param name="callback">Callback</param>
            /// <returns>IDisposable to close the socket</returns>
            public IDisposable SubscribeToSummaryDeltas(Action <string> callback)
            {
                BittrexSocketClientConnection client = new BittrexSocketClientConnection();

                client.OpenAsync(this, "uS", callback).ConfigureAwait(false);
                return(client);
            }
コード例 #2
0
            /// <summary>
            /// Subscribe to order book updates
            /// </summary>
            /// <param name="callback">Callback</param>
            /// <param name="ticker">The ticker to subscribe to</param>
            /// <returns>IDisposable to close the socket</returns>
            public IDisposable SubscribeToExchangeDeltas(Action <string> callback, string ticker)
            {
                BittrexSocketClientConnection conn = new BittrexSocketClientConnection();

                conn.OpenAsync(this, "uE", callback, ticker).ConfigureAwait(false).GetAwaiter().GetResult();
                return(conn);
            }