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

Request out of receiving window #43

Open
nikkhil31 opened this issue Apr 1, 2022 · 6 comments
Open

Request out of receiving window #43

nikkhil31 opened this issue Apr 1, 2022 · 6 comments

Comments

@nikkhil31
Copy link

Hi,
I'm trying to fetch account info via this api {{wazirx_api_domain}}/sapi/v1/account?recvWindow=&timestamp={{current_time}}&signature={{signature}}

but, I got this response,
{
"code": 2098,
"message": "Request out of receiving window."
}

Is there anything that I'm missing?

@yuvan11
Copy link

yuvan11 commented Apr 17, 2022

Hi @nikkhil31 , What is your limit that you have set for recWindow?

@nikkhil31
Copy link
Author

I'm passing 10000 as a recvWindow.
Sometimes it works fine but sometimes it doesn't.

@yuvan11
Copy link

yuvan11 commented Apr 18, 2022

Setting 10000 as a recvWindow won't be a issue. The error might occur because the timestamp which is passing get expired. Make sure, you are only passing a current timestamp for each of your request & also for signature generation.

@nikkhil31
Copy link
Author

Yeah, I have set the wrong logic for timestamp and signature.
Thanks, @yuvan11

@yuvan11
Copy link

yuvan11 commented Apr 18, 2022

You're welcome @nikkhil31 . Keep up the good work!

@rinoldev
Copy link

rinoldev commented Nov 11, 2022

I'm still having the issue, the logic to get the current time is working for the account API but for the order API it's throwing errors like { message: 'Request out of receiving window.', code: 2098 }.
@yuvan11

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

3 participants