forked from kodorvan/stcs
adjusted percentages of TP and SL
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user