From e6cbb4b24ea87c82d2a805619d0e79ded54b2314 Mon Sep 17 00:00:00 2001 From: Quenos <34926461+Quenos@users.noreply.github.com> Date: Sun, 12 May 2024 18:28:50 +0200 Subject: [PATCH] MarginReportEntry bug fix (#145) * MarginReportEntry bug fix * MarginReportEntry rework --- tastytrade/account.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tastytrade/account.py b/tastytrade/account.py index d0afb36..01c0459 100644 --- a/tastytrade/account.py +++ b/tastytrade/account.py @@ -174,23 +174,23 @@ class MarginReportEntry(TastytradeJsonDataclass): """ description: str code: str - underlying_symbol: str - underlying_type: str + buying_power: Decimal + buying_power_effect: PriceEffect margin_calculation_type: str margin_requirement: Decimal margin_requirement_effect: PriceEffect - maintenance_requirement: Decimal - maintenance_requirement_effect: PriceEffect - buying_power: Decimal - buying_power_effect: PriceEffect - groups: List[Dict[str, Any]] - price_increase_percent: Decimal - price_decrease_percent: Decimal expected_price_range_up_percent: Optional[Decimal] = None expected_price_range_down_percent: Optional[Decimal] = None - point_of_no_return_percent: Optional[Decimal] = None + groups: Optional[List[Dict[str, Any]]] = None initial_requirement: Optional[Decimal] = None initial_requirement_effect: Optional[PriceEffect] = None + maintenance_requirement: Optional[Decimal] = None + maintenance_requirement_effect: Optional[PriceEffect] = None + point_of_no_return_percent: Optional[Decimal] = None + price_increase_percent: Optional[Decimal] = None + price_decrease_percent: Optional[Decimal] = None + underlying_symbol: Optional[str] = None + underlying_type: Optional[str] = None class MarginReport(TastytradeJsonDataclass):