Skip to content

Commit

Permalink
Merge pull request #536 from mraniki/dev
Browse files Browse the repository at this point in the history
🥚 sorting dep
  • Loading branch information
mraniki authored Nov 1, 2024
2 parents 92dbb52 + 5c3938c commit bc49833
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions cefi/handler/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
from .capitalcom import CapitalHandler
from .ccxt import CcxtHandler
from .degiro import DegiroHandler
from .ibkr import IbHandler

# from .ibkr import IbHandler
# from .metatrader import MetatraderHandler
from .oanda import OandaHandler

__all__ = [
"CapitalHandler",
"CcxtHandler",
"DegiroHandler",
# "IbHandler",
"IbHandler",
# "MetatraderHandler",
"OandaHandler",
]
1 change: 1 addition & 0 deletions cefi/handler/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ async def calculate_pnl(self, from_date=None, to_date=None):
Parameters:
from_date: The start date for which to calculate PnL.
to_date: The end date for which to calculate PnL.
Returns:
pnl: The calculated PnL value.
Expand Down
8 changes: 4 additions & 4 deletions cefi/handler/metatrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@
# trade_confirmation(dict)

# """
# pass
# # TODO: implement

# async def calculate_pnl(self, from_date, to_date):
# """
# Calculate the PnL for a given period.
# Calculate the PnL for a given start date.

# Parameters:
# period (str): The period for which
# to calculate PnL ('W', 'M', 'Y', or None).
# from_date: The start date for which to calculate PnL.
# to_date: The end date for which to calculate PnL.

# Returns:
# pnl: The calculated PnL value.
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ ib_insync = "0.9.86"
[ tool.poetry.group.dev.dependencies]
python-semantic-release = ">=8.0.8"
ruff = "^0.6.0"
black = "24.10.0"
pre-commit = "^3.3.1"

[tool.ruff]
Expand Down

0 comments on commit bc49833

Please sign in to comment.