donewiththedollar/directionalscalper
关于
CCXT based algorithmic trading framework for Bybit and other CCXT supported exchanges
商业与金融实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Directional Scalper Multi Exchange
An algorithmic trading framework built using CCXT for multiple exchanges
Directional Scalper documentation
Links
- Website: https://quantumvoid.org
- API (BYBIT): https://api.quantumvoid.org/data/quantdatav2_bybit.json
- Discord: https://discord.gg/4GvHqPxfud
| 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)
- Get token from botfather after creating new bot, send a message to your new bot
- Go to https://api.telegram.org/bot<bot_token>/getUpdates
- Replacing <bot_token> with your token from the botfather after creating new bot
- 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 intests/) - Terminal UI lives in
ds_tui/; strategy math is pure/testable indirectionalscalper/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)
探索相关项目
加载中…




