sclass BitGet { S domain = "https://api.bitget.com"; Timestamp serverTime() { ret new Timestamp(toLong(loadJSONMapPage(domain + "/api/spot/v1/public/time").get("data"))); } // How much we are ahead or behind of the server's time Duration serverTimeDifference() { ret tsNow().minusAsDuration(serverTime()); } }