-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
Hi,
I have a long running process (Mojolicious app) that makes requests to Binance using Binance::API
My operating system is ubuntu, and I have ntp running to keep my clock up to date.
When I start up my app, order to binance via Binance::API work great. However after a period of time (~0.5 - 1 days) I encounter:
Status => 400,
Content => {"code":-1021,"msg":"Timestamp for this request is outside of the recvWindow."} at /home/cam/perl5/lib/perl5/Binance/API/Request.pm line 107.
Mojo::Reactor::Poll: Timer failed: Not an ARRAY reference at lib/AutoCryptoTrade/Plugin/OrderManager.pm line 242
I see that Time::HiRes is used, and in the docs it mentions drift of up to 0.5 seconds, and that Time::HiRes will eventually notice, but I get failed request to binance. I even tried a frequent call to clock_gettime(CLOCK_MONOTONIC); to see if that would solve the problem.
Any suggestions?