Skip to content

Commit

Permalink
Merge pull request #499 from mraniki/dev
Browse files Browse the repository at this point in the history
⬆️ 🤖 - How apt the poor are to be proud
  • Loading branch information
mraniki authored Aug 26, 2024
2 parents b3101b1 + e37ca16 commit ff66f7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cefi/handler/degiro.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ async def get_quote(self, instrument):
:param instrument: The instrument for which the quote is to be fetched.
:return: The fetched quote.
"""
# TODO
# try:
# instrument = await self.replace_instrument(instrument)

Expand Down Expand Up @@ -124,7 +125,8 @@ async def pre_order_checks(self, order_params):

async def get_trading_asset_balance(self):
""" """
return self.client.fetchBalance()[f"{self.trading_asset}"]["free"]
# TODO
# return self.client.fetchBalance()[f"{self.trading_asset}"]["free"]

async def execute_order(self, order_params):
"""
Expand All @@ -140,6 +142,7 @@ async def execute_order(self, order_params):
trade_confirmation(dict)
"""
# TODO: Test and fix order call
try:
action = order_params.get("action")
instrument = await self.replace_instrument(order_params.get("instrument"))
Expand Down

0 comments on commit ff66f7d

Please sign in to comment.