Skip to content
New issue

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

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

Already on GitHub? # to your account

Intermittent issue with #168

Open
raderag opened this issue Apr 1, 2020 · 1 comment
Open

Intermittent issue with #168

raderag opened this issue Apr 1, 2020 · 1 comment

Comments

@raderag
Copy link

raderag commented Apr 1, 2020

Issue Overview

A short description of the issue
I get a malformed requests intermittently when I call GetAccountInformation().

Package Version: ?.?.?

latest - 4.12.0

Repro Steps

Happens sometimes when I call GetAccountInformation();

The client is connected, the keys are the same. Once it happens, it doesn't seem to work for a while; I was wondering if it could be an issue with rate limiting?

Other Information

Malformed requests are sent to the server. Please review the request object/string

at BinanceExchange.API.APIProcessor.d__81.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at BinanceExchange.API.APIProcessor.<ProcessGetRequest>d__111.MoveNext()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at BinanceExchange.API.Client.BinanceClient.d__31.MoveNext()

Its generated in this call:
public Task GetAccountInformation(int receiveWindow = -1);

which calls

    public async Task<T> ProcessGetRequest<T>(BinanceEndpointData endpoint, int receiveWindow = 5000) where T : class
    
	this line:
		message = await RequestClient.SignedGetRequest(endpoint.Uri, _apiKey, _secretKey, endpoint.Uri.Query, receiveWindow);
		
	The key and secret are correct. 
@raderag
Copy link
Author

raderag commented Apr 8, 2020

The issue is really simple, if using the binance.us system, you need the binance.us endpoint.

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

No branches or pull requests

1 participant