Git Product home page Git Product logo

debut-js / strategies Goto Github PK

View Code? Open in Web Editor NEW
148.0 10.0 54.0 14.58 MB

Examples of trading strategies based on indicators. Pre-configured environment for working with the Debut algo-trading constructor. (Javascript)

Home Page: https://debutjs.io

License: Apache License 2.0

TypeScript 57.33% Handlebars 4.21% JavaScript 38.45%
trading-strategies debut trading binance alpaca tinkoff-invest algo-trading trading-bot

strategies's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

strategies's Issues

TypeError: Cannot read property 'path' of undefined on @debut/plugin-utils

Node version v14.17.0
Npm version v7.17.0

Tested on Windows 10/ Ubuntu 20/ Docker Alpine 3.12
npm install + npm run compile without errors

Full trace:

npm run testing - --bot=SpikesG --ticker=BTCUSDT --days=200 --gap=20

> @debut/[email protected] testing /home/iamp3/Strategies
> tester -- "-"

/home/iamp3/Strategies/node_modules/@debut/plugin-utils/dist/cli.js:38
    const dir = path_1.default.resolve(botData.path);
                                               ^

TypeError: Cannot read property 'path' of undefined
    at Object.getBotData (/home/iamp3/Strategies/node_modules/@debut/plugin-utils/dist/cli.js:38:48)
    at Object.<anonymous> (/home/iamp3/Strategies/node_modules/@debut/community-core/lib/cli/tester.js:2:242)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47

TypeError: Cannot read property 'fee' of undefined

Собираю проект по инструкции https://github.com/debut-js/Strategies

node --version v14.17.0

@debut/[email protected] testing /dev/debut/Strategies
tester -- "--ticker=TSLA" "--bot=SpikesG" "--days=200" "--olhc"

Debugger attached.
TypeError: Cannot read property 'fee' of undefined
at /Users/u17509486/Desktop/Аналитика/dev/debut/Strategies/node_modules/@debut/community-core/lib/cli/tester.js:2:460
at /Users/u17509486/Desktop/Аналитика/dev/debut/Strategies/node_modules/@debut/community-core/lib/cli/tester.js:2:998
at Object. (/Users/u17509486/Desktop/Аналитика/dev/debut/Strategies/node_modules/@debut/community-core/lib/cli/tester.js:2:1007)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47

An error occurs when setting the ticker interval

After setting the interval ticker (other than "1m") in "cfgs.ts" and successful compilation of the project, an error occurs when trying to run it:
Bot initialized and learned, starting...
09.01.2023, 18:28:53 m {
env: 4,
message: 'Debut transport error: Unsupported SubscriptionInterval'
}

At the same time, if I set the interval "1m", then such an error does not appear.
What could be the reason for this behavior of the program and is it possible to set other intervals supported by "node_modules/@debut/types/dist/common.d.ts"?

Bad links

In ReadMe_ru.md and ReadMe.md bad links:

  1. "Join the community, join developer chat"
  2. "You can use any field name for the token, for more details see the documentation on token settings section."

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.