Back to list
Herklos

octobot

by Herklos

My OctoBot stack vscode workspace

0🍴 0📅 Jan 21, 2026

SKILL.md


name: OctoBot description: Main OctoBot application orchestrating trading, evaluation, backtesting, and services version: 1.0.0 license: GPL-3.0

OctoBot Development

Overview

OctoBot is the main application that orchestrates all components: initializes exchanges, loads tentacles, manages trading modes, runs evaluators, handles backtesting, and provides web interface. It's the entry point that ties together all other OctoBot repositories.

References

Key Concepts

Bot Lifecycle

  1. Load configuration
  2. Initialize exchanges
  3. Load tentacles
  4. Start evaluators
  5. Activate trading modes
  6. Launch web interface

Tentacle Loading

OctoBot loads tentacles from tentacles/ directory (symlink to OctoBot-Tentacles during dev).

Configuration Profiles

Multiple trading strategies via profile system in user/profiles/.

Web Interface

Built-in dashboard for monitoring and control.

Common Tasks

Run OctoBot

cd OctoBot
python start.py

Run with Specific Profile

python start.py -p my_profile

Enable Backtesting

python start.py --backtesting

Configure Exchange

# user/config.json
{
    "exchanges": {
        "binance": {
            "enabled": true,
            "exchange-type": "spot",
            "api-key": "YOUR_KEY",
            "api-secret": "YOUR_SECRET"
        }
    }
}
# From OctoBot-Stack-VS-Workspace/
ln -s $(pwd)/OctoBot-Tentacles/ OctoBot/tentacles

Custom Bot Initialization

from octobot import OctoBot

async def run_custom_bot():
    bot = OctoBot(config_file="my_config.json")
    await bot.initialize()
    await bot.start()
    await bot.wait_for_stop()

import asyncio
asyncio.run(run_custom_bot())

Integration Points

  • OctoBot-Trading: Trading engine integration
  • OctoBot-Evaluators: Evaluator framework
  • OctoBot-Backtesting: Historical simulation
  • OctoBot-Services: Service integrations
  • OctoBot-Tentacles: Plugin loading
  • trading-backend: Web API server

Quick Reference

Directory Structure

OctoBot/
├── start.py              # Entry point
├── octobot/
│   ├── __init__.py
│   ├── octobot.py        # Main bot class
│   ├── initializer.py    # Initialization logic
│   ├── community/        # Community features
│   ├── strategy_optimizer/
│   └── updater/
├── user/
│   ├── config.json       # Main config
│   ├── profiles/         # Trading profiles
│   └── logs/
├── tentacles/            # Symlink to OctoBot-Tentacles
└── tests/

Environment Variables

PYTHONPATH=..:../OctoBot-Commons:../OctoBot-Trading:...

Common Start Commands

# Normal mode
python start.py

# Backtesting
python start.py --backtesting

# Data collector
python start.py --data_collector

# Strategy optimizer
python start.py --strategy_optimizer

# Update tentacles
python start.py tentacles --install --all

Configuration Keys

  • crypto-currencies: Traded pairs
  • exchanges: Exchange configs
  • trading-mode: Active trading mode
  • trader-simulator: Paper trading settings
  • notification: Service notifications

Checklist

  • Setup PYTHONPATH with all repositories
  • Symlink OctoBot-Tentacles to OctoBot/tentacles
  • Create/edit user/config.json with exchange credentials
  • Configure crypto-currencies to trade
  • Select trading mode in config
  • Test with simulator enabled first
  • Verify web interface accessible at localhost:5001
  • Check logs/ directory for errors
  • Configure notification services
  • Test emergency stop functionality
  • Backup user/ directory regularly

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon