Commit Graph
108 Commits
Author SHA1 Message Date
mohmdsdgandCursor 142cfd7661 fix(price): read last quote and daily extremes from the active provider
A stray montzar tick landed in the prices table, which stores no source, so
the database_last fallback served a ~168M quote on a shop whose Zaarbox board
was at ~217M. Last price and today's high/low now come from price_sync_logs
filtered by price_provider, the database fallback no longer counts as today's
price, and daily extremes reset when the provider changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 09:45:37 +03:30
mohmdsdg 17d79c0ce6 fix some issue from sse 2026-08-27 11:53:29 +03:30
mohmdsdg 40b185187c fix some issu 2026-08-26 21:47:09 +03:30
mohmdsdgandCursor b21b136711 fix(settings): honor last-price switch and overlay only SuperAdmin access flags
Stored DB prices were treated as live quotes, and SuperAdmin overlay overwrote tenant keys like trading hours. Keep overlay to the 14 access flags and hide fallback prices when the panel says so.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 03:01:07 +03:30
mohmdsdgandCursor 8984899042 fix(settings): push trading-hours changes to live user prices immediately
Recompute home price display on save, broadcast settings over SSE, and keep last-price status in sync without a user refresh.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 02:29:00 +03:30
mohmdsdgandCursor 7e8979d78d fix(settings): honor per-day trading hours and refresh SuperAdmin overlay
Use trading_hours_by_day for close_price gates, prefer public SuperAdmin fetch, and add refresh endpoint/command so stale last-good cache no longer keeps switches like enable_automation off.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 21:22:44 +03:30
mohmdsdgandCursor 352bb9976d feat(settings): enable_automation gate; reject stale montzar quote jumps
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 16:15:52 +03:30
mohmdsdg 657c10d1cc added automation 2026-08-23 14:16:00 +03:30
mohmdsdg 0c0b424a69 fix price 2026-08-22 18:06:35 +03:30
mohmdsdgandCursor b0296c6e94 feat(server): evaluate price alerts per product and fix gold discharge rounding
Alerts now bind to a product_id and share one evaluator; displayed gold within a rounding step discharges the full wallet.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 22:23:20 +03:30
mohmdsdg bd8284e4f8 added setting for user 2026-08-16 22:00:23 +03:30
mohmdsdgandCursor 279e4bc881 Enable gated multi-level referral profit and harden chat/SMS notify paths.
Honor enable_customer_level_profit for order referral payouts, and tighten support-chat webhook/SMS plus SuperAdmin SMS panel sync settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 16:48:53 +03:30
mohmdsdg 16b947adc5 fix some bugs 2026-07-29 17:00:51 +03:30
mohmdsdg 745f7fcfd6 fix some bugs from fee 2026-07-28 10:33:11 +03:30
mohmdsdg 7c68115b39 fix some bugs 2026-07-27 22:09:08 +03:30
mohmdsdg d8256b3f20 fix some bugs 2026-07-27 21:01:18 +03:30
mohmdsdg 107cf5b291 fix notif 2026-07-24 16:49:42 +03:30
mohmdsdg 692c211ca8 added last seen 2026-07-22 17:17:23 +03:30
mohmdsdg 227534a493 fix some bugs 2 2026-07-21 21:23:26 +03:30
mohmdsdg 49e80a1b97 fix pargar bugs 2 2026-07-21 13:25:18 +03:30
mohmdsdg fc9de5198c new feature on sms and some bugs fixed 2026-07-18 22:22:01 +03:30
mohmdsdg 300c909b9e added ons 2026-07-12 20:58:34 +03:30
mohmdsdg 2cade8a334 added ons 2026-07-12 14:08:16 +03:30
mohmdsdg c9f363802e fix channel price bug 2026-07-07 18:21:36 +03:30
mohmdsdg 0f775d20e8 added banks logos 2026-07-06 13:39:05 +03:30
mohmdsdg 17e50de53e fix sql 2026-07-02 01:26:26 +03:30
mohmdsdg aeeb3bd3ed fix kashkool 2026-06-30 22:17:09 +03:30
mohmdsdg cd81ea8af0 fix kashkool 2026-06-30 21:44:39 +03:30
mohmdsdg bedbea0ff1 fix price show when mazane is 0 2026-06-29 11:27:23 +03:30
mohmdsdg 3801e5ee88 added some feature for accounting and price 2026-06-28 15:16:39 +03:30
mohmdsdg 9f92466ada fixed price 3 2026-06-28 11:03:54 +03:30
mohmdsdg 14055c5770 fixed price 2026-06-28 10:51:56 +03:30
mohmdsdg dec13e8537 fixed price 2026-06-28 10:46:09 +03:30
mohmdsdg 7b05db0ff0 added assets into stream 2026-06-27 15:51:44 +03:30
mohmdsdg 37a54e0764 fixed provider price 2 2026-06-27 11:29:09 +03:30
mohmdsdg 533f5facc1 wallet fix 2026-06-26 14:27:50 +03:30
mohmdsdg 65f74453f3 fix price 2026-06-24 19:13:36 +03:30
mohmdsdg d968a42db9 fixed chart in 30 min 2026-06-24 11:34:23 +03:30
mohmdsdg 97245a9b81 added wss tools 9 2026-06-18 20:05:31 +03:30
mohmdsdg 21341c7f13 added wss tools 8 2026-06-18 20:00:25 +03:30
mohmdsdg c15136c5e7 added wss tools 7 2026-06-18 19:44:23 +03:30
mohmdsdg 017ab348c7 added wss tools 6 2026-06-18 19:32:28 +03:30
mohmdsdg f44063dbd2 added wss tools 4 2026-06-18 16:12:53 +03:30
mohmdsdg 2a77c24dcc added wss tools 3 2026-06-18 15:25:49 +03:30
mohmdsdg 81dfdbdb96 wallet handling 2026-06-15 11:25:10 +03:30
mohmdsdg 0c4cbd7c12 fix bug 2026-06-14 21:42:21 +03:30
mohmdsdg b84b2df01a fix bug 2026-06-14 21:09:43 +03:30
mohmdsdg f07e56ed70 fix price 2026-06-14 13:15:45 +03:30
mohmdsdg db0cc5f1a6 fix price force refresh 2 2026-06-14 12:33:29 +03:30
mohmdsdg 1abddfbab8 fix price force refresh 2026-06-14 12:01:20 +03:30