Skip to content
This repository was archived by the owner on Jun 16, 2024. It is now read-only.

Commit 693f88d

Browse files
author
0x78f1935
committed
Fixed information bar where the current_price * quantity did not update
1 parent d95f6c9 commit 693f88d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/views/api/system.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ def get(self):
177177
fomo_price = float(round(float(float(total_fomo_price * quantity) + float(float(total_fomo_price * quantity) * fee_taker)), 8))
178178

179179
if system.panik: chatterer.chat(f"{quantity} {cur1} IS {previous_price_order} {cur2} WORTH - TRYING TO SELL FOR {fomo_price} {cur2}")
180-
else: chatterer.chat(f"{quantity} {cur1} IS {previous_price_order} {cur2} WORTH - TRYING TO SELL FOR {sell_target} {cur2}")
180+
else: chatterer.chat(f"{quantity} {cur1} IS {float(round(float(current_price * quantity), 8))} {cur2} WORTH - TRYING TO SELL FOR {sell_target} {cur2}")
181181

182182
if current_price > total_profit_on_each_coin or system.panik and current_price > total_fomo_price:
183183
chatterer.chat(f"SELLING {cur1}")
184-
sell_order = pynance.orders.create(symbol, float(round(float(quantity - float(quantity/100)), precision)), buy=False, order_id='test_api')
184+
sell_order = pynance.orders.create(symbol, float(round(float(quantity - float(float(quantity/100)*2.5)), precision)), buy=False, order_id='test_api')
185185
if sell_order is not None:
186186
sold_price = float(round(float(current_price * quantity), 8))
187187
if model is not None:

0 commit comments

Comments
 (0)