Commit Graph
3 Commits
Author SHA1 Message Date
mohmdsdgandCursor fabce6176a Price orders at the provider's real trade rate instead of the mid quote.
montzar_live_price is the midpoint between the colleague's buy and sell rates,
so orders priced straight from it charged the customer less than we pay the
provider and the whole spread was lost on every trade, even though the app
already showed the correct side. Order base price now follows the traded side
(base + spread on buy, base - spread on sell), which also makes price_original
the real cost basis so the dashboard stops counting the provider spread as
profit. Conditional order triggers compare against the same displayed price.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 19:21:56 +03:30
mohmdsdg 8165fc37b8 fix trigger bug 2 2026-07-22 14:15:22 +03:30
mohmdsdg 227534a493 fix some bugs 2 2026-07-21 21:23:26 +03:30