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

Newtonsoft.Json.JsonReaderException: JSON integer too large for Int32 #67

Open
tomhum3365 opened this issue May 24, 2020 · 1 comment
Open

Comments

@tomhum3365
Copy link

Hi There,

Trying to place LIMIT order and getting this exception:

Newtonsoft.Json.JsonReaderException: 'JSON integer 2284305452 is too large or small for an Int32. Path 'orderId', line 1, position 40.'

after running this line:

var buyLimitOrder = await binanceClient.PostNewOrder("BTCUSDT", 0.01m, 8000m, Binance.API.Csharp.Client.Models.Enums.OrderSide.BUY, Binance.API.Csharp.Client.Models.Enums.OrderType.LIMIT);

I am not sure but should the orderId parameter be LONG rather than Int? This error makes trading BTCUSDT pair impossible. Other pairs are ok as order IDs are not so high yet...

@iegestesi
Copy link

When you buy from the store it gives the same error for eth. It did not give such an error before. It started for 1 week.

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