Spaces:
Sleeping
Sleeping
Delete README.md
Browse files
README.md
DELETED
|
@@ -1,93 +0,0 @@
|
|
| 1 |
-
# FVG-Delta Crypto Futures Engine
|
| 2 |
-
|
| 3 |
-
A production-style MEXC UST-M (crypto + forex) scanner on 15m candles with staged FVG logic, Telegram delivery, chart screenshots, and modern signal dashboard.
|
| 4 |
-
|
| 5 |
-
## What this app does
|
| 6 |
-
|
| 7 |
-
- Scans large MEXC UST-M universe (1500+ pairs supported)
|
| 8 |
-
- Uses sharded batch scanning to reduce block/rate-limit risk
|
| 9 |
-
- Applies first-liquidity FVG strategy lifecycle (Stage 1/2/3)
|
| 10 |
-
- Sends Telegram signal cards + chart screenshots
|
| 11 |
-
- Exposes dashboard + APIs for monitoring and integration
|
| 12 |
-
|
| 13 |
-
## Strategy lifecycle
|
| 14 |
-
|
| 15 |
-
### Stage 1 (Qualified)
|
| 16 |
-
- Detect strong impulse with clear FVG
|
| 17 |
-
- Find **first** retracement liquidity after impulse
|
| 18 |
-
- Confirm liquidity remained untapped before BoS
|
| 19 |
-
- Confirm BoS close through source extreme
|
| 20 |
-
|
| 21 |
-
### Stage 2 (First liquidity tapped)
|
| 22 |
-
- Stage-1 must already be valid
|
| 23 |
-
- The same first liquidity gets tapped/broken
|
| 24 |
-
|
| 25 |
-
### Stage 3 (Entry confirmed)
|
| 26 |
-
- Stage-2 must already be valid
|
| 27 |
-
- Price interacts with FVG
|
| 28 |
-
- First strong confirmation close in bias direction appears
|
| 29 |
-
- Entry/SL/TP model is generated
|
| 30 |
-
|
| 31 |
-
## Dashboard
|
| 32 |
-
|
| 33 |
-
Title: **FVG-Delta Crypto Futures Engine — Signal Dashboard**
|
| 34 |
-
|
| 35 |
-
Includes:
|
| 36 |
-
- stage counts and runtime metrics
|
| 37 |
-
- stage tables with links to live chart endpoint
|
| 38 |
-
- recent alerts and runtime events
|
| 39 |
-
- auto-refresh
|
| 40 |
-
|
| 41 |
-
## Telegram alerts
|
| 42 |
-
|
| 43 |
-
Three signal categories:
|
| 44 |
-
- Stage 1 Qualified
|
| 45 |
-
- Stage 2 Triggered
|
| 46 |
-
- Stage 3 Entry Confirmed
|
| 47 |
-
|
| 48 |
-
Each alert includes chart screenshot attachment.
|
| 49 |
-
|
| 50 |
-
## API endpoints
|
| 51 |
-
|
| 52 |
-
- `GET /` dashboard
|
| 53 |
-
- `GET /health` health status
|
| 54 |
-
- `GET /api/state` full state + stats + events
|
| 55 |
-
- `GET /api/stages` symbols grouped by stage
|
| 56 |
-
- `GET /api/chart.png?symbol=BTC_USDT` chart image for symbol
|
| 57 |
-
|
| 58 |
-
## Setup
|
| 59 |
-
|
| 60 |
-
1) Create `.env` (or set platform secrets):
|
| 61 |
-
- `TELEGRAM_BOT_TOKEN`
|
| 62 |
-
- `TELEGRAM_CHAT_ID`
|
| 63 |
-
|
| 64 |
-
2) Install & run:
|
| 65 |
-
```bash
|
| 66 |
-
python -m venv .venv
|
| 67 |
-
source .venv/bin/activate
|
| 68 |
-
pip install -r requirements.txt
|
| 69 |
-
uvicorn app:app --host 0.0.0.0 --port 7860
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
Optional helper:
|
| 73 |
-
```bash
|
| 74 |
-
chmod +x run_one_shot.sh
|
| 75 |
-
./run_one_shot.sh
|
| 76 |
-
```
|
| 77 |
-
|
| 78 |
-
## High-scale recommended starting profile
|
| 79 |
-
|
| 80 |
-
```env
|
| 81 |
-
MEXC_MAX_FUTURES_SYMBOLS=1800
|
| 82 |
-
SCAN_SHARDS=24
|
| 83 |
-
SCAN_INTERVAL_SECONDS=75
|
| 84 |
-
REQUEST_CONCURRENCY=12
|
| 85 |
-
REQUEST_JITTER_MS=220
|
| 86 |
-
REQUEST_RETRIES=2
|
| 87 |
-
```
|
| 88 |
-
|
| 89 |
-
## Detailed configuration
|
| 90 |
-
|
| 91 |
-
See:
|
| 92 |
-
- `VARIABLES_AND_SECRETS_GUIDE.txt`
|
| 93 |
-
- `STRATEGY_DETAILED_SPEC.txt`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|