sonvister / Binance

A .NET Standard Binance API library.
MIT License
229 stars 77 forks source link

Is it possible to create new Symbols? #134

Open Th3Luk opened 3 years ago

Th3Luk commented 3 years ago

Like: DOT, UNI, SOL, TRX, CAKE, LUNA.

Ty.

tohoff82 commented 2 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}");
});