Fix usage of fee value in Edge
This commit is contained in:
parent
18ec65e05f
commit
7e08fa2631
@ -238,20 +238,13 @@ class Edge:
|
|||||||
:param result Dataframe
|
:param result Dataframe
|
||||||
:return: result Dataframe
|
:return: result Dataframe
|
||||||
"""
|
"""
|
||||||
|
# We set stake amount to an arbitrary amount, as it doesn't change the calculation.
|
||||||
# stake and fees
|
# All returned values are relative, they are defined as ratios.
|
||||||
# stake = 0.015
|
|
||||||
# 0.05% is 0.0005
|
|
||||||
# fee = 0.001
|
|
||||||
|
|
||||||
# we set stake amount to an arbitrary amount.
|
|
||||||
# as it doesn't change the calculation.
|
|
||||||
# all returned values are relative.
|
|
||||||
# they are defined as ratios.
|
|
||||||
stake = 0.015
|
stake = 0.015
|
||||||
fee = self.fee
|
|
||||||
open_fee = fee / 2
|
# Fee should be applied twice
|
||||||
close_fee = fee / 2
|
open_fee = self.fee
|
||||||
|
close_fee = self.fee
|
||||||
|
|
||||||
result['trade_duration'] = result['close_time'] - result['open_time']
|
result['trade_duration'] = result['close_time'] - result['open_time']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user