Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to create new Symbols? #134

Open
Th3Luk opened this issue Mar 29, 2021 · 1 comment
Open

Is it possible to create new Symbols? #134

Th3Luk opened this issue Mar 29, 2021 · 1 comment

Comments

@Th3Luk
Copy link

Th3Luk commented Mar 29, 2021

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

Ty.

@tohoff82
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants