Clean comments

This commit is contained in:
Saleh Mir
2021-03-02 16:01:25 +01:00
parent d7216eac15
commit 8a052cb55b

View File

@@ -39,6 +39,11 @@ class Position:
# # TODO: make sure that it is available only for live trading in futures markets
# return self._mark_price
# TODO: more properties to add:
# - Margin Ratio
# * Liquidation price
# * mark price?!
@property
def value(self) -> float:
"""
@@ -135,17 +140,6 @@ class Position:
else:
return self.exchange.futures_leverage_mode
# - Margin Ratio
# * Liquidation price
# * mark price?!
# * ROE(PNL?)
# * Maintenance futures
# * futures balance
# @property
# def futures_ratio(self):
# return 0
def _close(self, close_price: float) -> None:
if self.is_open is False:
raise EmptyPosition('The position is already closed.')