The text has been corrected, fixed the commission check
This commit is contained in:
@@ -215,6 +215,8 @@ async def trading_cycle(
|
||||
try:
|
||||
user_deals_data = await rq.get_user_deal_by_symbol(tg_id=tg_id, symbol=symbol)
|
||||
user_auto_trading_data = await rq.get_user_auto_trading(tg_id=tg_id, symbol=symbol)
|
||||
user_risk_management_data = await rq.get_user_risk_management(tg_id=tg_id)
|
||||
commission_fee = user_risk_management_data.commission_fee
|
||||
total_fee = user_auto_trading_data.total_fee
|
||||
trade_mode = user_deals_data.trade_mode
|
||||
margin_type = user_deals_data.margin_type
|
||||
@@ -243,6 +245,10 @@ async def trading_cycle(
|
||||
symbol=symbol,
|
||||
leverage=leverage,
|
||||
)
|
||||
if commission_fee == "Yes_commission_fee":
|
||||
total_fee = total_fee
|
||||
else:
|
||||
total_fee = 0
|
||||
|
||||
if trade_mode == "Switch":
|
||||
if side == "Buy":
|
||||
|
||||
Reference in New Issue
Block a user