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

Multiple async requests on non-public API throws invalid api key exception #3

Open
rfcdejong opened this issue Nov 8, 2015 · 0 comments

Comments

@rfcdejong
Copy link
Contributor

This works

var ordersTask = _poloniexClient.Markets.GetOpenOrdersAsync(ethCurrencyPair, 10);
var orders = ordersTask.Result;
var myOrdersTask = _poloniexClient.Trading.GetOpenOrdersAsync(ethCurrencyPair);
var myOrders = myOrdersTask.Result;
var myTradesTask = _poloniexClient.Trading.GetTradesAsync(ethCurrencyPair, DateTime.Now.AddHours(-4), DateTime.Now);
var myTrades = myTradesTask.Result;

This throws an exception about invalid api key

var ordersTask = _poloniexClient.Markets.GetOpenOrdersAsync(ethCurrencyPair, 10);
var myOrdersTask = _poloniexClient.Trading.GetOpenOrdersAsync(ethCurrencyPair);
var myTradesTask = _poloniexClient.Trading.GetTradesAsync(ethCurrencyPair, DateTime.Now.AddHours(-4), DateTime.Now);

Task.WaitAll(ordersTask, myOrdersTask, myTradesTask)

var orders = ordersTask.Result;
var myOrders = myOrdersTask.Result;
var myTrades = myTradesTask.Result;
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