diff --git a/index.js b/index.js index 9e176d0..9e76507 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const fetch = require('node-fetch') const qs = require('qs') -const BASE_URL = 'https://api.coinmarketcap.com/' +const BASE_URL = 'https://api.coinmarketcap.com' class CoinMarketCap { constructor ({ version = 'v1' } = {}) { @@ -32,7 +32,7 @@ class CoinMarketCap { */ getTicker ({ start, limit, convert, currency }) { return createRequest({ - url: `${this.url}/ticker${currency ? `/${currency}`.toLowerCase() : ''}`, + url: `${this.url}/ticker${currency ? `/${currency}/`.toLowerCase() : ''}`, headers: this.headers, query: { start, convert, limit } })