Git Product home page Git Product logo

octobot-tentacles-template's Introduction

Codacy Badge

OctoBot-Tentacles-Template Build Status

This repository contains the template for custom tentacles packages handled by OctoBot's tentacle manager.

How to use it ?

  • Add any Evaluator, Strategy, Util function or trading mode in the appropriate folder
    • Evaluators can be using:
      • Technical Analysis (TA folder)
      • Social analysis (Social folder)
      • RealTime analysis (RealTime folder)
  • Add the following header on top of the created tentacle:
"""
OctoBot Tentacle

$tentacle_description: {
    "name": "tentacle_name",
    "type": "tentacle_type",
    "subtype": "tentacle_sub_type",
    "version": "tentacle_version",
    "requirements": ["required_tentacle_name", "another_required_tentacle_name==specific_tentacle_version"],
    "config_files": ["tentacle_configuration_file_name"],
    "tests": ["tentacle_test_file_1", "tentacle_test_file_2"]
}
"""
  • name: Name of the tentacle (name of the file)
  • type: Type of the tentacle (Evaluator or Trading)
  • subtype: Sub-type of the tentacle (type of Evaluator or Trading: Social, TA, Mode, ...)
  • version: Version of the tentacle with a 3 number format (1.0.2, 15.1.215, ...)
  • requirements: Optional: List of required tentacles for this tentacle (identified by tentacle name between "" and separated by a ,.
  • config_files: Optional: List of configuration files for this tentacle (identified by file name between "" and separated by a ,). These files are stored next to the tentacle file in a tentacles package and are installed in the config folder of the associated tentacle's subtype when the package is installed by OctoBot's tentacle manager.
  • tests: Optional: List of tests for this tentacle (identified by test file name between "" and separated by a ,).

Here is a header example from the default tentacle forum_evaluator download by default by OctoBot and available here:

"""
OctoBot Tentacle

$tentacle_description: {
    "name": "forum_evaluator",
    "type": "Evaluator",
    "subtype": "Social",
    "version": "1.0.0",
    "requirements": [],
    "config_files": ["RedditForumEvaluator.json"]
}
"""

Another example with tests included (available here):

OctoBot Tentacle

$tentacle_description: {
    "name": "daily_trading_mode",
    "type": "Trading",
    "subtype": "Mode",
    "version": "1.0.0",
    "requirements": [],
    "tests":["test_daily_trading_mode_creator", "test_daily_trading_mode_decider"]
}
  • Run generate.py : this will create a tentacles_list.json file using the module header. This file is used by OctoBot to handle tentacles package.

Your tentacle is now ready to be installed. To install it, add the url to a GitHub repository containing the tentacle (or the local path to the tentacle) in config.json inside the "tentacles" part.

Example:

"tentacles": [
    "C:/Users/JohnSmith/TradingBots/Advanced-Trading-Tentacles"
  ],

You can add as many tentacles (packages) as you want, just separate them with a ",".

They will be automatically installed when running the command:

python start.py -p install all

It is also possible to specify which module(s) to install by naming it(them). In this case only the modules available in the available tentacles can be installed.

python start.py -p install forum_evaluator john_smith_macd_evaluator advanced_twitter_evaluator

Do not hesitate to propose your new modules to the OctoBot comunity !

octobot-tentacles-template's People

Contributors

codacy-badger avatar herklos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.