diff --git a/src/index.js b/src/index.js index 076c56b..f0cd252 100644 --- a/src/index.js +++ b/src/index.js @@ -92,12 +92,14 @@ class CoinGecko { /** * @description Use this to obtain all the coins’ id in order to make API calls * @function coins.list() + * @param {object} params - Parameters to pass through to the request + * @param {object} params.include_platform - Flag to include platform contract addresses * @returns {Promise} */ - list: () => { + list: (params = {}) => { const path = `/${pathPrefix}/list`; - return this._request(path); + return this._request(path, params); }, /**