diff --git a/demo/config.tpl.js b/demo/config.tpl.js index c9f300e..0f22092 100755 --- a/demo/config.tpl.js +++ b/demo/config.tpl.js @@ -5,9 +5,9 @@ module.exports = { /** set API baseUrl, */ /** if not set this key, or empty, or false, or undefined, */ /** default baseUrl will be set by `process.env.PRODUCTION` */ - /** if process.env.PRODUCTION === 'prod', the default value will be https://api.kucoin.io */ - /** else use sandbox as https://openapi-sandbox.kucoin.io */ - baseUrl: 'https://openapi-sandbox.kucoin.cc', + /** if process.env.PRODUCTION === 'prod', the default value will be https://api.kucoin.com */ + /** else use sandbox as https://openapi-sandbox.kucoin.com */ + baseUrl: 'https://openapi-sandbox.kucoin.com', /** Auth infos */ /** key is API key */ /** secret is API secret */ diff --git a/demo/level2_demo.js b/demo/level2_demo.js index a4672f5..f3612da 100644 --- a/demo/level2_demo.js +++ b/demo/level2_demo.js @@ -5,7 +5,7 @@ const API = require('../src'); const config = require('./config'); API.init({ ...config, - baseUrl: 'https://api.kucoin.io', + baseUrl: 'https://api.kucoin.com', }); // ws demo diff --git a/src/lib/http.js b/src/lib/http.js index cf8b6d1..3636b47 100755 --- a/src/lib/http.js +++ b/src/lib/http.js @@ -11,8 +11,8 @@ const constructHttp = () => { let _baseUrl = baseUrl; if (!_baseUrl) { _baseUrl = process.env.PRODUCTION === 'prod' - ? 'https://api.kucoin.io' - : 'https://openapi-sandbox.kucoin.io'; + ? 'https://api.kucoin.com' + : 'https://openapi-sandbox.kucoin.com'; } const Http = createHttp({