regal-trading

byBasel ha

ULTRATHINK تصرف كخبير هندسة برمجية وخبير بناء بوت تداول الي وخبير تداول كريبتو وقم بفحص الدياقرمنت للريبو الخاص بالعمل flowchart TD subgraph group_trading["Trading runtime"] node_bot["Bot orchestrator<br/>[main.py]"] node_market["Market data<br/>[market_data.py]"] node_exchange["Exchange adapter<br/>[exchange.py]"] node_positions["Position manager"] end subgraph group_analysis["Signals and risk"] node_signals["Signal engine<br/>[signal_engine.py]"] node_indicators["Indicators<br/>[indicators.py]"] node_filters["Signal filters<br/>[filters.py]"] node_explosion["Explosion strategy<br/>[explosion.py]"] node_scalping["Scalping strategy<br/>[scalping.py]"] node_risk["Risk manager<br/>[risk_manager.py]"] node_fees["Fee calculator<br/>[fee_calculator.py]"] end subgraph group_state["State and notifications"] node_state_manager["State manager<br/>[state_manager.py]"] node_schema["Trade schema<br/>[schema.sql]"] node_telegram["Telegram notifier"] end subgraph group_interfaces["User and webhooks"] node_dashboard["Web dashboard<br/>[App.jsx]"] node_web_entry["Web entry<br/>[main.jsx]"] node_worker["Webhook worker<br/>[worker.js]"] end node_operator(("Operator")) node_tradingview(("TradingView")) node_supabase[("Supabase")] node_operator -->|"uses"| node_dashboard node_web_entry -->|"renders"| node_dashboard node_dashboard -->|"reads/authenticates"| node_supabase node_dashboard -->|"subscribes"| node_supabase node_tradingview -->|"posts signal"| node_worker node_worker -->|"forwards webhook"| node_bot node_bot -->|"requests candles"| node_market node_market -->|"fetches market data"| node_exchange node_bot -->|"evaluates market"| node_signals node_signals -->|"calculates"| node_indicators node_signals -->|"validates signal"| node_filters node_signals -.->|"uses strategy"| node_explosion node_signals -.->|"uses strategy"| node_scalping node_bot -->|"checks limits"| node_risk node_risk -->|"uses"| node_fees node_bot -->|"places/closes orders"| node_exchange node_bot -->|"updates positions"| node_positions node_bot -->|"loads/saves trades"| node_state_manager node_state_manager -->|"reads/writes"| node_supabase node_schema -->|"defines tables"| node_supabase node_bot -->|"sends notifications"| node_telegram click node_bot "https://github.com/palc88-stack/apex-trader/blob/main/bot/main.py" click node_market "https://github.com/palc88-stack/apex-trader/blob/main/bot/data/market_data.py" click node_exchange "https://github.com/palc88-stack/apex-trader/blob/main/bot/core/exchange.py" click node_positions "https://github.com/palc88-stack/apex-trader/blob/main/bot/core/position_manager.py" click node_signals "https://github.com/palc88-stack/apex-trader/blob/main/bot/signals/signal_engine.py" click node_indicators "https://github.com/palc88-stack/apex-trader/blob/main/bot/signals/indicators.py" click node_filters "https://github.com/palc88-stack/apex-trader/blob/main/bot/signals/filters.py" click node_explosion "https://github.com/palc88-stack/apex-trader/blob/main/bot/strategies/explosion.py" click node_scalping "https://github.com/palc88-stack/apex-trader/blob/main/bot/strategies/scalping.py" click node_risk "https://github.com/palc88-stack/apex-trader/blob/main/bot/core/risk_manager.py" click node_fees "https://github.com/palc88-stack/apex-trader/blob/main/bot/core/fee_calculator.py" click node_state_manager "https://github.com/palc88-stack/apex-trader/blob/main/bot/data/state_manager.py" click node_schema "https://github.com/palc88-stack/apex-trader/blob/main/database/schema.sql" click node_telegram "https://github.com/palc88-stack/apex-trader/blob/main/bot/notifications/telegram_notifier.py" click node_dashboard "https://github.com/palc88-stack/apex-trader/blob/main/web/src/App.jsx" click node_web_entry "https://github.com/palc88-stack/apex-trader/blob/main/web/src/main.jsx" click node_worker "https://github.com/palc88-stack/apex-trader/blob/main/src/worker.js" classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554 classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337 classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81 classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a class node_bot,node_market,node_exchange,node_positions,node_tradingview toneBlue class node_signals,node_indicators,node_filters,node_explosion,node_scalping,node_risk,node_fees,node_supabase toneAmber class node_state_manager,node_schema,node_telegram toneMint class node_dashboard,node_web_entry,node_worker toneRose class node_operator toneIndigo

LandingWeb dashboardLogin
Landing

Comments (0)

No comments yet. Be the first!

Project Tasks

117 tasks
#1

Generate system requirement document

1m 9s0.1 cr used
Done
#2

Generate personas & user flows

0m 7s0.1 cr used
Done
#7

Create flow for Operator

0m 7sCredits in parent
Done
#8

Landing

3m 4sCredits in subtasks
Done
#18

Fix Landing review findings: Mobile: the left instrument rail's status lamps render as… (+2 more)

0m 24s0.2 cr used
Done
#14

Landing / Navigation

0m 18s0.8 cr used
Done
#11

Landing / Instrument Rail

0m 26s0.8 cr used
Done
#12

Landing / Hero Dial

0m 38s0.8 cr used
Done
#13

Landing / Readout Strip

0m 35s0.8 cr used
Done
#15

Landing / Footer

0m 19s0.8 cr used
Done
#16

Navigation

0m 18sCredits in parent
Done
#17

Footer

0m 19sCredits in parent
Done
#9

Login

107m 34sCredits in subtasks
Done
#63

Fix Login review findings: Instrument rail collapses to a 56px icon-only strip at… (+2 more)

1m 9s0.2 cr used
Done
#61

Fix Login review findings: Mobile navbar has no clearance: the 'RUNTIME' rail heading… (+2 more)

0m 52s0.2 cr used
Done
#59

Fix Login review findings: Instrument rail lamp chips render 'NO SIGNAL' for all… (+9 more)

0m 47s0.2 cr used
Done
#58

Fix Login review findings: Instrument rail lamp chips render 'NO SIGNAL' for all… (+7 more)

0m 47s0.2 cr used
Done
#57

Fix Login review findings: Instrument rail lamp chips render 'NO SIGNAL' for all… (+6 more)

2m 55s0.2 cr used
Done
#56

Fix Login review findings: Instrument rail lamp chips render 'NO SIGNAL' for all… (+5 more)

1m 16s0.2 cr used
Done
#53

Fix Login review findings: Instrument rail lamps render 'NO SIGNAL' for BOT, EXCHANGE… (+4 more)

1m 36s0.2 cr used
Done
#52

Fix Login review findings: Instrument rail lamps render 'NO SIGNAL' for BOT, EXCHANGE… (+3 more)

0m 46s0.2 cr used
Done
#51

Fix Login review findings: Instrument rail lamps render 'NO SIGNAL' for BOT, EXCHANGE… (+3 more)

0m 47s0.2 cr used
Done
#50

Fix Login review findings: Instrument rail lamps render 'NO SIGNAL' for BOT, EXCHANGE… (+3 more)

0m 46s0.2 cr used
Done
#48

Fix Login review findings: Mobile navbar hamburger button is clipped at the right… (+4 more)

1m 23s0.2 cr used
Done
#47

Fix Login review findings: Mobile navbar hamburger button is clipped at the right… (+3 more)

0m 44s0.2 cr used
Done
#46

Fix Login review findings: Mobile navbar hamburger button is clipped at the right… (+3 more)

0m 47s0.2 cr used
Done
#45

Fix Login review findings: Mobile navbar hamburger button is clipped at the right… (+2 more)

0m 35s0.2 cr used
Done
#43

Fix Login review finding: frontend/src/components/Login Verification Panel.jsx: this…

0m 32s0.2 cr used
Done
#42

Fix Login review finding: frontend/src/components/Login Verification Panel.jsx: this…

0m 49s0.2 cr used
Done
#41

Fix Login review finding: frontend/src/components/Login Verification Panel.jsx: this…

0m 40s0.2 cr used
Done
#39

Fix Login review findings: Passphrase field placeholder text is clipped at the right… (+2 more)

2m 1s0.2 cr used
Done
#36

Fix Login review finding: frontend/src/components/Login Verification Panel.jsx: this…

0m 32s0.2 cr used
Done
#35

Fix Login review findings: Mobile: the runtime instrument rail collapses into a… (+3 more)

1m 14s0.2 cr used
Done
#33

Fix Login review findings: Mobile: the runtime instrument rail collapses into a… (+2 more)

2m 14s0.2 cr used
Done
#24

Fix Login review findings: Mobile: the runtime instrument rail collapses into a… (+2 more)

0m 41s0.2 cr used
Done
#19

Login / Navigation Slot

4080m 3s0.8 cr used
Backlog
#20

Login / Instrument Rail

0m 30s0.8 cr used
Done
#21

Login / Verification Panel

1m 13s0.8 cr used
Done
#22

Login / Ruled Context Strip

0m 22s0.8 cr used
Done
#23

Login / Footer Slot

4080m 3s0.8 cr used
Backlog
#10

Web dashboard

41m 1sCredits in subtasks
Done
#40

Fix Web dashboard review findings: Mobile positions table renders a collapsed/illegible… (+3 more)

3m 22s0.2 cr used
Done
#37

Fix Web dashboard review findings: Mobile positions table renders a duplicated, unreadable… (+14 more)

6m 6s0.2 cr used
Done
#34

Fix Web dashboard review findings: Mobile positions table renders a duplicated, unreadable… (+12 more)

6m 1s0.2 cr used
Done
#25

Web dashboard / Dashboard Navigation Slot

84m 32s0.8 cr used
Cancelled
#26

Web dashboard / Dashboard Instrument Rail

1m 10s0.8 cr used
Done
#27

Web dashboard / Dashboard Readout Strip

1m 1s0.8 cr used
Done
#28

Web dashboard / Dashboard Live Status Banner

1m 6s0.8 cr used
Done
#29

Web dashboard / Dashboard Positions Table

1m 0s0.8 cr used
Done
#30

Web dashboard / Dashboard Risk Gauges

0m 59s0.8 cr used
Done
#31

Web dashboard / Dashboard Webhook Log

1m 7s0.8 cr used
Done
#32

Web dashboard / Dashboard Footer Slot

84m 28s0.8 cr used
Cancelled
#38

Retry Failed Pages

6m 43s0.2 cr used
Error
#44

Retry Failed Pages

10m 11s0.2 cr used
Error
#49

Retry Failed Pages

7m 54s0.2 cr used
Error
#54

Retry Failed Pages

0.2 cr needed
Cancelled
#55

Retry Failed Pages

10m 36s0.2 cr used
Error
#60

Retry Failed Pages

2m 36s0.2 cr used
Error
#62

Retry Failed Pages

2m 37s0.2 cr used
Error
#64

Retry Failed Pages

1m 24s0.2 cr used
Done
#5

Architecture

1m 50s0.1 cr used
Done
#65

Create backend_modules diagram

1m 12sCredits in parent
Done
#66

Create er_diagram diagram

1m 12sCredits in parent
Done
#67

Create frontend_modules diagram

1m 12sCredits in parent
Done
#68

Create sequence diagram

1m 12sCredits in parent
Done
#69

Create service_network diagram

1m 11sCredits in parent
Done
#6

Workspace task plan

3m 35s0.1 cr used
Done
#70

Run the autonomous trading loop end to end

160 cr estimated
To Do
#71

Store trade and position state in Supabase with live updates

120 cr estimated
To Do
#72

Fetch and prepare candle data through the exchange adapter

100 cr estimated
To Do
#73

Deliver bot notifications to the Operator through Telegram

100 cr estimated
To Do
#74

Place orders and update positions through the exchange adapter

140 cr estimated
To Do
#75

Show live trade and position state on the dashboard

120 cr estimated
To Do
#76

Keep the dashboard live and recover dropped subscriptions

120 cr estimated
To Do
#77

Authenticate the dashboard and stream live bot activity

120 cr estimated
To Do
#78

Exchange executes orders and supplies market data to the bot

120 cr estimated
To Do
#79

Webhook worker receives Trading View signals and forwards them to the bot

100 cr estimated
To Do
#80

Dashboard presents live trade, position, risk, and webhook state

120 cr estimated
To Do
#81

Bot orchestrator runs the trading flow from signal to order

140 cr estimated
To Do
#82

Dashboard holds a live Supabase subscription and recovers it

120 cr estimated
To Do
#83

Operator monitors bot health and trading state on the dashboard

120 cr estimated
To Do
#84

Signal engine computes indicators and validates strategy signals

100 cr estimated
To Do
#85

Exchange adapter submits orders and absorbs exchange API failures

140 cr estimated
To Do
#86

Persist trades, close orders, notify the Operator, and gate orders on risk

140 cr estimated
To Do
#87

Orchestrate the trading runtime and route orders through the exchange adapter

140 cr estimated
To Do
#88

Run the bot continuously: validate signals, track positions, and persist state

140 cr estimated
To Do
#89

Bind the dashboard to live Supabase trade and position state

120 cr estimated
To Do
#90

Check risk limits with fee values before any order is placed

100 cr estimated
To Do
#91

Evaluate market signals through both strategies and filter validation

120 cr estimated
To Do
#92

Let the Operator verify or establish identity and reach the dashboard

120 cr estimated
To Do
#93

Reach the protected dashboard by verifying or establishing Operator identity

100 cr estimated
To Do
#94

Run the bot's autonomous trading loop end to end

160 cr estimated
To Do
#95

Give the Operator a live, login-gated monitoring dashboard

140 cr estimated
To Do
#96

Forward Trading View signals from the webhook worker to the bot

80 cr estimated
To Do
#97

Store trade and position state and stream live updates to the dashboard

100 cr estimated
To Do
#98

Persist trade state across bot runs through the state manager

120 cr estimated
To Do
#99

Deliver Trading View signals to the webhook worker

60 cr estimated
To Do
#100

Drive the orchestrator trading flow from webhook to order

140 cr estimated
To Do
#101

Evaluate signals, check risk, notify, and persist within the trading flow

120 cr estimated
To Do
#102

Landing shows unavailable readouts and live rail status lamps

100 cr estimated
To Do
#103

Orchestrator runs the full trading flow and returns to awaiting

140 cr estimated
To Do
#104

Exchange adapter bridges the bot to the crypto exchange

140 cr estimated
To Do
#105

Landing hero dial and live readouts populate on load

120 cr estimated
To Do
#106

Python bot runs autonomously on webhooks and tracks positions

120 cr estimated
To Do
#107

Dashboard streams live positions, gauges, and instrument cluster

140 cr estimated
To Do
#108

Operator receives Telegram notifications from the bot

80 cr estimated
To Do
#109

Application authentication gates the protected dashboard

120 cr estimated
To Do
#110

Execute orders on the exchange through the adapter

120 cr estimated
To Do
#111

Deliver bot notifications to the Operator's Telegram client

80 cr estimated
To Do
#112

Update position records when the bot places or closes orders

100 cr estimated
To Do
#113

Validate signals before they proceed

100 cr estimated
To Do
#114

Handle webhook forwarding failures in the worker

80 cr estimated
To Do
#115

Handle exchange-side market-data retrieval failures

100 cr estimated
To Do
#116

Provide market data to the exchange adapter

100 cr estimated
To Do
#117

Bind the Web dashboard to live Supabase trade and position state

140 cr estimated
To Do
#118

Wire Landing live readouts, dial sweep, and status lamps

120 cr estimated
To Do
#119

Wire Login verification, enrollment, and error recovery

120 cr estimated
To Do
Landing design preview
Landing: Read headline and readouts
Login: Choose primary CTA
Login: Choose first-use path
Login: 1. Submit new credentials
Login: 2. Correct and resubmit
Login: 3. Submit existing credentials
Login: 4. Correct and resubmit
Login: 5. Switch to first-use path
Web dashboard: 6. Read readout tiles
Web dashboard: 7. Read positions table
Web dashboard: 8. Read risk gauges
Web dashboard: 9. Watch webhook log
Web dashboard: 10. Check status lamps
Web dashboard: 11. Continue monitoring
Web dashboard: 12. Inspect position row
Web dashboard: 13. Observe interrupted live updates
Web dashboard: 14. Work from last known values
Web dashboard: 15. Observe live updates resume
Web dashboard: Open dashboard from notification
Web dashboard: 16. Sign out
Landing design preview
Landing: Read headline and readouts
Login: Choose primary CTA
Login: Choose first-use path
Login: 1. Submit new credentials
Login: 2. Correct and resubmit
Login: 3. Submit existing credentials
Login: 4. Correct and resubmit
Login: 5. Switch to first-use path
Web dashboard: 6. Read readout tiles
Web dashboard: 7. Read positions table
Web dashboard: 8. Read risk gauges
Web dashboard: 9. Watch webhook log
Web dashboard: 10. Check status lamps
Web dashboard: 11. Continue monitoring
Web dashboard: 12. Inspect position row
Web dashboard: 13. Observe interrupted live updates
Web dashboard: 14. Work from last known values
Web dashboard: 15. Observe live updates resume
Web dashboard: Open dashboard from notification
Web dashboard: 16. Sign out