bbgo/scripts/sync_time.sh

4 lines
117 B
Bash
Raw Normal View History

#!/usr/bin/sh
date -s @`echo "$(curl https://api.binance.com/api/v3/time 2>/dev/null | jq .serverTime)/1000"|bc -l`