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

Invalid nonce exception on Kucoin #164

Closed
mehtadone opened this issue May 31, 2018 · 4 comments
Closed

Invalid nonce exception on Kucoin #164

mehtadone opened this issue May 31, 2018 · 4 comments

Comments

@mehtadone
Copy link

I have a [BUG REPORT]

Details:

Error Logs (if any):

ExchangeSharp.APIException: {
  "code": "UNAUTH",
  "msg": "Invalid nonce",
  "success": false,
  "timestamp": 1527760410368
}
   at ExchangeSharp.ExchangeAPI.CheckError(JToken result)
   at ExchangeSharp.ExchangeKucoinAPI.<OnPlaceOrderAsync>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ExchangeSharp.ExchangeAPI.<PlaceOrderAsync>d__88.MoveNext()
--- End of stack trace from previous location where exception was thrown ---

Whilst trying to place an order on Kucoin, I get the following exception. It seems to be related to Satoshinaire/kucoin-api#8 but I'm not sure how to fix it in your library.

Thanks again for the hard work.

@jjxtra
Copy link
Collaborator

jjxtra commented May 31, 2018

I've pushed a fix for this, please try it and let me know. It will query for the timestamp offset upon first private API call.

@jjxtra
Copy link
Collaborator

jjxtra commented May 31, 2018

You'll need to upgrade to .NET core 2.1. The performance benefits are well worth it.

@mehtadone
Copy link
Author

Appreciate it. I'll be able to test soon

@jjxtra
Copy link
Collaborator

jjxtra commented Jun 1, 2018

Please re-open this issue if you still have this problem

@jjxtra jjxtra closed this as completed Jun 1, 2018
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