From 09cb1e201b451e5f67961dea32b141a5c9e791f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80?= <78488229+viktor138irk@users.noreply.github.com> Date: Fri, 8 May 2026 05:22:23 +0900 Subject: [PATCH] Record monitor restart patch instructions --- project.sw | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project.sw b/project.sw index 00999c1..27725e0 100644 --- a/project.sw +++ b/project.sw @@ -23,6 +23,7 @@ Current implementation status: - Dockerfile, docker-compose.yml, requirements.txt, .env.example and .gitignore added - docker-compose includes api, postgres and redis services - README no longer exposes the server IP +- scripts/fix_monitor_start.py added to patch monitor stop/start restart race on server. Trading rules now implemented: - Bot syncs CoinEx public market rules: min amount, min quote amount, amount precision, price precision, maker/taker fee placeholders. @@ -54,6 +55,11 @@ Important user preference: - Closing must use the full available amount for that market; in live mode verify through CoinEx API first. - Live mode should eventually execute buy/sell just like demo when signal passes score, after balance verification. +Known monitor issue and patch: +- If monitor was stopped and started quickly, old async task could remain alive but sleeping while monitor.running was false, so a new monitor task was not created. +- Apply patch after git pull on server: python3 scripts/fix_monitor_start.py +- Then rebuild: docker compose down && docker compose up -d --build + Current limitation: - Live mode switch is implemented in settings and UI. - Live signal detection works, but low-level real CoinEx order placement still needs final adapter implementation.