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

PlaceAsync (limitorder) places multiple orders on one call #130

Open
jcgirardini opened this issue Jul 30, 2020 · 0 comments
Open

PlaceAsync (limitorder) places multiple orders on one call #130

jcgirardini opened this issue Jul 30, 2020 · 0 comments

Comments

@jcgirardini
Copy link

Hello
In WinForm, when I run "await MyApi.PlaceAsync (limitorder)" it sometimes repeats the placement until it throws exception for quantity error.
This implies that you place as many orders as the available amount allows.
How can I control PlaceAsync to place only one order?
This is the code for the asynchronous process in C #.

private async void BinanceOrdenCompraAsync()
{
try
{
lclLimitBuyOrder.Validate();
if (lclLimitBuyOrder.IsValid())
{
await GC.glbBinanceApi.PlaceAsync(lclLimitBuyOrder);
}
...
}

catch (BinanceApiException be)
{
	var lclmsg = be.Message;
}

catch (Exception e)
{
	var lclmsg = e.Message;
}

}

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