Proxy use: binance Timestamp for this request is outside of the recvWindow.
See original GitHub issueHello, I synchronized my server’s time using NTP, did some tests and managed to use the Binance API normally. I went to use a proxy (https://luminati.io) from the United States to connect to Binance and it even works, but every now and then it looks like that famous “recvWindow” error. What can I do to correct this problem that only happens using a proxy?
- OS: Ubuntu 18.04
- Programming Language version: Javascript
- CCXT version: 1.18.968
this.binance = new ccxt.binance({
// options: {
// 'adjustForTimeDifference': true,
// // 'recvWindow': 10000000, // not really needed
// },
apiKey: params.api_key,
secret: params.api_secret,
timeout: 60000,
agent: proxy,
})
binance Timestamp for this request is outside of the recvWindow.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Error "Timestamp for this request is outside of the recvWindow"
Reason: The request's timestamp is not synchronized enough with our server's time to receive response within the defined recvWindow.
Read more >ccxt-dev/ccxt - Gitter
I updated ccxt but doesn't resolve this Error: binance {"code":-1021,"msg":"Timestamp for this request is outside of the recvWindow."}.
Read more >Binance TIMESTAMP ERROR (Timestamp for this request is ...
I got this error : data: { code: -1021,enter code here msg: 'Timestamp for this request is outside of the recvWindow.' } Then...
Read more >freqtrade.exceptions.operationalexception: could not load ...
InvalidNonce: binance {"code":-1021,"msg":"Timestamp for this request is outside of the recvWindow."} 2021-09-22 00:48:03,441 - freqtrade.commands.
Read more >Frequently asked questions CScalp (FAQ)
You will be able to trade on Binance, ByBit, FTX, Bitmex etc. via CScalp ... error has occurred "Timestamp for this request is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay, I will make these changes and update the library thanks!
Hi!
Do you use the rate-limiter? It is required, but you don’t seem to be using it.
If you have the rate limiter enabled, try uncommenting
'adjustForTimeDifference': true,. If that doesn’t help either, set a value ofrecvWindowbetween 10000 and 60000 (max).If that doesn’t help – it may be a delay lag introduced by the extra-hop (luminati.io). In that case you want to forward this question to the proxy service.
Let us know if the above does not answer your question.