FairyGUI-egret icon indicating copy to clipboard operation
FairyGUI-egret copied to clipboard

Request out of receiving window

Open nikkhil31 opened this issue 2 years ago • 6 comments

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?

nikkhil31 avatar Apr 01 '22 11:04 nikkhil31

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

yuvan11 avatar Apr 17 '22 16:04 yuvan11

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

nikkhil31 avatar Apr 18 '22 05:04 nikkhil31

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.

yuvan11 avatar Apr 18 '22 06:04 yuvan11

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

nikkhil31 avatar Apr 18 '22 06:04 nikkhil31

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

yuvan11 avatar Apr 18 '22 06:04 yuvan11

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

rinoldev avatar Nov 11 '22 02:11 rinoldev