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?
Asked
Active
Viewed 3,232 times
-1

Boris Makhlin
- 240
- 5
- 11
-
What do mean about `average price of the Bitcoin`? If you want to receive the last price use [this method](https://github.com/JKorf/Binance.Net/blob/6d4bd20cd13a6277a5a1961f1fbd88355cd108dc/Binance.Net/SocketSubClients/BinanceSocketClientSpot.cs#L241) – Oleh Hrechukh Feb 24 '21 at 10:21
-
@OlehHrechukh yes, I am talking about last price. But I want to get it without using tickers. Is it real with this API or not? – Boris Makhlin Feb 24 '21 at 10:39
1 Answers
1
@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.

Boris Makhlin
- 240
- 5
- 11