Skip to content

Commit

Permalink
Fix build errors returning string
Browse files Browse the repository at this point in the history
  • Loading branch information
jpflouret committed Nov 4, 2022
1 parent 16e3d22 commit 78d8877
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iqtrade/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def __init__(self, iq_data: dict[str, Any]):
self.activity_type: str = iq_data["type"]

def __str__(self) -> str: # pragma: no cover
return (
return str(
self.activity_type
+ " "
+ self.action
Expand Down Expand Up @@ -443,7 +443,7 @@ def __init__(self, iq_data: dict[str, Any]):
def get_display_name(self) -> str: # pragma: no cover
if isinstance(self.option_expiry_date, dt):
if self.option_root:
return (
return str(
self.option_root
+ " "
+ self.option_expiry_date.strftime("%d %b %Y")
Expand Down Expand Up @@ -553,7 +553,7 @@ def __str__(self) -> str: # pragma: no cover
price = f"{self.limit_price:,.2f} LimitOnOpen"
elif self.order_type == OrderType.LimitOnClose:
price = f"{self.limit_price:,.2f} LimitOnClose"
return (
return str(
self.side.name
+ " "
+ str(self.total_quantity)
Expand Down

0 comments on commit 78d8877

Please # to comment.