mxjoly / binance-futures-trading-bot Goto Github PK
View Code? Open in Web Editor NEWA Binance trading bot using node.js
License: MIT License
A Binance trading bot using node.js
License: MIT License
Fail try execute this command:
npm run build:dev
npm run dev
return:
src/backtest/bot.ts:377:13 - error TS2345: Argument of type 'ExchangeInfo<FuturesOrderType_LT>' is not assignable to parameter of type 'ExchangeInfo<OrderType_LT>'.
377 exchangeInfo
~~~~~~~~~~~~
src/backtest/bot.ts:387:15 - error TS2345: Argument of type 'ExchangeInfo<FuturesOrderType_LT>' is not assignable to parameter of type 'ExchangeInfo<OrderType_LT>'.
387 exchangeInfo
~~~~~~~~~~~~
src/bot.ts:93:5 - error TS2322: Type 'ExchangeInfo<FuturesOrderType_LT>' is not assignable to type 'ExchangeInfo<OrderType_LT>'.
Type 'FuturesOrderType_LT' is not assignable to type 'OrderType_LT'.
Type '"TAKE_PROFIT"' is not assignable to type 'OrderType_LT'.
93 this.exchangeInfo = await binanceClient.futuresExchangeInfo();
~~~~~~~~~~~~~~~~~
src/bot.ts:365:19 - error TS2322: Type 'number' is not assignable to type 'string'.
365 price,
~~~~~
src/bot.ts:384:19 - error TS2322: Type 'number' is not assignable to type 'string'.
384 stopPrice: stopLoss,
~~~~~~~~~
src/bot.ts:394:19 - error TS2322: Type 'number' is not assignable to type 'string'.
394 stopPrice: stopLoss,
~~~~~~~~~
src/bot.ts:395:19 - error TS2322: Type 'number' is not assignable to type 'string'.
395 price: stopLoss,
~~~~~
src/bot.ts:484:19 - error TS2322: Type 'number' is not assignable to type 'string'.
484 price: price,
~~~~~
src/bot.ts:503:19 - error TS2322: Type 'number' is not assignable to type 'string'.
503 stopPrice: stopLoss,
~~~~~~~~~
src/bot.ts:513:19 - error TS2322: Type 'number' is not assignable to type 'string'.
513 stopPrice: stopLoss,
~~~~~~~~~
src/bot.ts:514:19 - error TS2322: Type 'number' is not assignable to type 'string'.
514 price: stopLoss,
~~~~~
src/utils/__tests__/currencyInfo.test.ts:16:5 - error TS2322: Type 'ExchangeInfo<FuturesOrderType_LT>' is not assignable to type 'ExchangeInfo<OrderType_LT>'.
16 exchangeInfo = await binanceClient.futuresExchangeInfo();
~~~~~~~~~~~~
Found 12 errors in 3 files.
Errors Files
2 src/backtest/bot.ts:377
9 src/bot.ts:93
1 src/utils/__tests__/currencyInfo.test.ts:16
Note: This command was run via npm module 'win-node-env'
Help me!!! Plz
.filter((interval) => interval !== null && interval !== undefined)
There is no issue. I want to thank you for creating this repo and open source it. ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.