Search code examples
c#.netcryptoapicryptocurrencybinance

C# library Binance.NET: get current average coin price


I am using Binance.NET library. It's a wrapper for binance.com api. I want to get the current average price of the Bitcoin.
It seems that the library has no method to do it. Yes, it allows to use tickers, but maybe there is a better way?


Solution

  • @OlehHrechukh proposed to use SubscribeToSymbolMiniTickerUpdatesAsync method. This method allows to subscribe to updates: when a trade happens we get an update. In another words, we subscribe to trades. But if we want to get the price of a symbol we can use this method.