Open Th3Luk opened 3 years ago
For me it worked like this:
// run before application start
Symbol.UpdateCacheAsync(new BinanceApi()).Wait();
// ticker passed as a string variable
webSocketClient.Subscribe("SOL_USDT", evt =>
{
var side = evt.Trade.IsBuyerMaker ? "SELL" : "BUY ";
// Handle aggregate trade events.
Console.WriteLine($"{evt.Trade.Symbol} {side} {evt.Trade.Quantity} @ {evt.Trade.Price}");
});
Like: DOT, UNI, SOL, TRX, CAKE, LUNA.
Ty.