adjusted percentages of TP and SL

This commit is contained in:
algizn97
2025-10-29 20:55:51 +05:00
parent 7e4c936ef5
commit a8119d2811
4 changed files with 15 additions and 15 deletions

View File

@@ -179,3 +179,9 @@ async def calculate_total_budget(
total += r_quantity
return total
async def truncate_float(f, decimals=4):
factor = 10 ** decimals
return int(f * factor) / factor