Skip to content
프로젝트

소개

CCXT based algorithmic trading framework for Bybit and other CCXT supported exchanges

비즈니스 및 금융

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Directional Scalper Multi Exchange

An algorithmic trading framework built using CCXT for multiple exchanges

GitHub Pipenv locked Python version License: MIT Code style: black

Directional Scalper documentation

Documentation

Links

Directional Scalper API Scraper Dashboard Directional Scalper Multi Menu GUI

Requirements

  • Python 3.11+ (Docker image: python:3.14)
  • Dependencies: pip install -r requirements.txt

Quick start (multi-symbol rotator)

python3 multi_bot_aio.py --exchange bybit --account_name account_1 --strategy qsgridob --config configs/config.json

Copy configs/config_example.json + configs/account_example.json to configs/config.json / configs/account.json first.

Strategies (multi-bot)

Name Description
qsgridob Linear grid base futures (signal-driven)
qsgridob_nosignal Same grid, immediate-entry (no signal wait)
qstrendobdynamictp Trend scalp with dynamic TP
breathinggrid Volume-farming breathing grid — volatility-derived 6-level maker ladder that re-prices (“breathes”) every cycle; sequential-add gating, fee-aware TPs, leverage/notional caps, session drawdown breaker. Runs on Bybit and BloFin (BloFin order flow is attributed to the configured broker code). Untested on live funds — start with testnet keys or a dust budget_usd.

Start the breathing grid with the helper script:

./start_breathing_grid.sh                     # BloFin defaults
EXCHANGE=bybit ./start_breathing_grid.sh      # Bybit
ACCOUNT_NAME=myacct CONFIG=configs/config.json ./start_breathing_grid.sh

Configure sizing via the optional bot.breathing_grid dict in your config (see configs/config_example.json).

DS Bridge — terminal UI

A Hummingbot-style terminal console: status strip, running-bots table, classified LOG/ALERTS pane, and a persistent >>> command line.

./start_tui.sh          # or: python3 -m ds_tui

The TUI is read-only over trading state. Commands:

Command Action
bots / status refresh running-bot discovery
log <name> [lines] tail a log from logs/
errors [n] recent critical lines across logs
grep <pattern> search newest logs
config <file.json> view a config — all secrets redacted
stop <pid|name> stop a bot process (y/N confirmed)
help, quit you guessed it

Docker

To run the bot inside docker container use the following command:

docker-compose run directional-scalper python3 bot.py --symbol SUIUSDT --strategy qsgridob --config configs/config_example.json

Proxy

If you need to use a proxy to access the Exchange API, you can set the environment variables as shown in the following example:

$ export HTTP_PROXY="http://10.10.1.10:3128"  # these proxies won't work for you, they are here for example
$ export HTTPS_PROXY="http://10.10.1.10:1080"

Setting up Telegram alerts (not used currently)

  1. Get token from botfather after creating new bot, send a message to your new bot
  2. Go to https://api.telegram.org/bot<bot_token>/getUpdates
  3. Replacing <bot_token> with your token from the botfather after creating new bot
  4. Look for chat id and copy the chat id into config.json

Developer instructions

  • Install developer requirements from pipenv pipenv install --dev (to keep requirements in a virtual environment)
  • Install pre-commit hooks pre-commit install (if you intend to commit code to the repo)
  • Run tests pytest -vv (smoke + breathing-grid policy unit tests live in tests/)
  • Terminal UI lives in ds_tui/; strategy math is pure/testable in directionalscalper/core/strategies/bybit/gridbased/breathing_policy.py

To do:

  • A lot of top secret cutting edge stuff
  • Huobi, Binance, Phemex, MEXC base. (MEXC Futs API down until Q4)

관련 프로젝트 살펴보기

불러오는 중…