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

Can you show how to subscribe? #13

Open
timurila opened this issue Mar 14, 2018 · 0 comments
Open

Can you show how to subscribe? #13

timurila opened this issue Mar 14, 2018 · 0 comments

Comments

@timurila
Copy link

Where can I specify ticker that need updates for?
I'm using following code but no real time data flow. What I'm missing?
Thanks

namespace Test
{
class MainClass
{
static void Live_OnTickerChanged(object sender, TickerChangedEventArgs e)
{
Console.WriteLine(e.CurrencyPair.BaseCurrency);
}

	public static void Main(string[] args)
	{
		PoloniexClient p = new PoloniexClient();
		p.Live.OnTickerChanged += Live_OnTickerChanged;
		p.Live.Start();
		p.Live.SubscribeToTickerAsync();
		Console.WriteLine("Hello World!");
		Console.ReadKey();
	}
}

}

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

1 participant