Git Product home page Git Product logo

binance-futures-trading-bot's People

Contributors

mxjoly avatar ricardospinoza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

binance-futures-trading-bot's Issues

Error try run project

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

Thank you.

There is no issue. I want to thank you for creating this repo and open source it. ๐Ÿ™

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.