diff --git a/lib/request.js b/lib/request.js index c76f0be..8a431c9 100644 --- a/lib/request.js +++ b/lib/request.js @@ -44,14 +44,14 @@ module.exports = class Request { async getTimeOffset() { const start = Date.now(); - const result = await this.get('/v2/public/time'); + const result = await this.get('v2/public/time'); const end = Date.now(); return Math.ceil((result.time_now * 1000) - end + ((end - start) / 2)); } async _call(method, endpoint, params) { - const publicEndpoint = endpoint.startsWith('/v2/public'); + const publicEndpoint = endpoint.startsWith('v2/public'); if(!publicEndpoint) { if(!this.key || !this.secret) throw new Error('Private endpoints require api and private keys set');