From a4e61b3b850a5055c8058d0a2ec2d2c3d413a7f8 Mon Sep 17 00:00:00 2001 From: haxdds Date: Tue, 11 Apr 2023 15:26:15 -0400 Subject: [PATCH] makes usd parameter optional and adds docstring in Position model --- alpaca/trading/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alpaca/trading/models.py b/alpaca/trading/models.py index 17bd4f46..8838d32a 100644 --- a/alpaca/trading/models.py +++ b/alpaca/trading/models.py @@ -119,7 +119,7 @@ class Position(BaseModel): lastday_price (str): Last day’s asset price per share based on the closing value of the last trading day. change_today (str): Percent change from last day's price. swap_rate (Optional[str]): Swap rate is the exchange rate (without mark-up) used to convert the price into local currency or crypto asset. - avg_entry_swap_rate (Optional[str]): TODO + avg_entry_swap_rate (Optional[str]): The average exchange rate the price was converted into the local currency at. usd (USDPositionValues): Represents the position in USD values. qty_available (Optional[str]): Total number of shares available minus open orders. @@ -144,7 +144,7 @@ class Position(BaseModel): change_today: str swap_rate: Optional[str] avg_entry_swap_rate: Optional[str] - usd: USDPositionValues + usd: Optional[USDPositionValues] qty_available: Optional[str]