Skip to content

Commit

Permalink
Merge pull request #7 from cryptofuture/master
Browse files Browse the repository at this point in the history
Fix errors
  • Loading branch information
tiaanduplessis committed Jan 30, 2018
2 parents 192f042 + 462ae41 commit c39f712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -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' } = {}) {
Expand Down Expand Up @@ -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 }
})
Expand Down

0 comments on commit c39f712

Please sign in to comment.