93 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 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
mohmdsdg 745f7fcfd6 fix some bugs from fee 2026-07-28 10:33:11 +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 227534a493 fix some bugs 2 2026-07-21 21:23:26 +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 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 017ab348c7 added wss tools 6 2026-06-18 19:32:28 +03:30
mohmdsdg 2a77c24dcc added wss tools 3 2026-06-18 15:25:49 +03:30
mohmdsdg 0c4cbd7c12 fix bug 2026-06-14 21:42:21 +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
mohmdsdg 91a82c06e4 khanegi setting and prices records 2026-06-13 17:35:40 +03:30
mohmdsdg 98e1fe969c store 2026-06-12 19:49:53 +03:30
mohmdsdg 7b18009e9b added kashkool 3 2026-06-12 19:14:15 +03:30
mohmdsdg e3bc50e2c6 new check for kashkol 2026-06-12 16:06:37 +03:30
mohmdsdg e8ebdcb44f fix bug 2 2026-06-11 21:37:17 +03:30
mohmdsdg 2636df99ad fix bug 2026-06-11 20:40:47 +03:30
mohmdsdg f329419c3a fix bug 2026-06-11 16:41:28 +03:30
mohmdsdg 539e38d034 fix wallet 2026-06-10 13:11:51 +03:30
mohmdsdg ca7177d21b fix amount 3 2026-06-09 10:21:30 +03:30
mohmdsdg ce65300bd1 fix amount 2 2026-06-09 10:07:25 +03:30
mohmdsdg f725e0fe8b price changes 2 2026-06-08 11:54:36 +03:30
mohmdsdg cda6f13308 price changes 2026-06-08 11:40:30 +03:30
mohmdsdg d0798f4285 price 2026-06-08 11:01:07 +03:30
mohmdsdg 2ddd462636 price last edited 2 2026-06-08 01:11:49 +03:30
mohmdsdg c82331b39b price last edited 2026-06-08 01:06:30 +03:30