Files
bybit-api/examples/apidoc/V5/Market/get-Bybit-server-time.js
2024-06-20 13:51:58 +02:00

15 lines
240 B
JavaScript

const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
});
client
.getServerTime()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});