-
Notifications
You must be signed in to change notification settings - Fork 235
A rest parameter must be array type #45
Description
I have same issue in WSL running ubuntu and in Windows OS
here is error when i start with "npm start"
`node_modules/ccxt/ccxt.d.ts:360:26 - error TS2370: A rest parameter must be of an array type.
360 cancelAllOrders (...args: any): Promise; // TODO: add function signatures
~~~~~~~~~~~~
node_modules/ccxt/ccxt.d.ts:362:23 - error TS2370: A rest parameter must be of an array type.
362 cancelOrders (...args: any): Promise; // TODO: add function signatures
~~~~~~~~~~~~
node_modules/ccxt/ccxt.d.ts:372:18 - error TS2370: A rest parameter must be of an array type.
372 deposit (...args: any): Promise; // TODO: add function signatures
~~~~~~~~~~~~
node_modules/ccxt/ccxt.d.ts:387:27 - error TS2370: A rest parameter must be of an array type.
387 fetchFundingFees (...args: any): Promise; // TODO: add function signatures
~~~~~~~~~~~~
node_modules/ccxt/ccxt.d.ts:388:27 - error TS2370: A rest parameter must be of an array type.
388 fetchL2OrderBook (...args: any): Promise; // TODO: add function signatures
~~~~~~~~~~~~
node_modules/ccxt/ccxt.d.ts:389:22 - error TS2370: A rest parameter must be of an array type.
389 fetchLedger (...args: any): Promise; // TODO: add function signatures
~~~~~~~~~~~~
node_modules/ccxt/ccxt.d.ts:396:26 - error TS2370: A rest parameter must be of an array type.
396 fetchOrderBooks (...args: any): Promise; // TODO: add function signatures
~~~~~~~~~~~~
node_modules/ccxt/ccxt.d.ts:399:22 - error TS2370: A rest parameter must be of an array type.
399 fetchStatus (...args: any): Promise; // TODO: add function signatures
~~~~~~~~~~~~
node_modules/ccxt/ccxt.d.ts:405:26 - error TS2370: A rest parameter must be of an array type.
405 fetchTradingFee (...args: any): Promise; // TODO: add function signatures
~~~~~~~~~~~~
node_modules/ccxt/ccxt.d.ts:406:27 - error TS2370: A rest parameter must be of an array type.
406 fetchTradingFees (...args: any): Promise; // TODO: add function signatures
~~~~~~~~~~~~
node_modules/ccxt/ccxt.d.ts:407:29 - error TS2370: A rest parameter must be of an array type.
407 fetchTradingLimits (...args: any): Promise; // TODO: add function signatures
~~~~~~~~~~~~
src/lib/api-handler.ts:41:72 - error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
41 return await api.createOrder(order.symbol, order.type, order.side, String(order.amount), String(order.price));
~~~~~~~~~~~~~~~~~~~~
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! triangular-arbitrage@0.1.1 prepare: npm run rm && tsc -p tsconfig.json
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the triangular-arbitrage@0.1.1 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ozhy/.npm/_logs/2020-06-04T01_08_55_386Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! triangular-arbitrage@0.1.1 start: npm run prepare && node runner.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the triangular-arbitrage@0.1.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ozhy/.npm/_logs/2020-06-04T01_08_55_508Z-debug.log`