Skip to content

Commit

Permalink
Merge pull request #270 from alpacahq/fix-docstring
Browse files Browse the repository at this point in the history
makes usd parameter optional and adds docstring in Position model
  • Loading branch information
haxdds authored Apr 11, 2023
2 parents bdd29dd + a4e61b3 commit e6ab09a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alpaca/trading/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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]


Expand Down

0 comments on commit e6ab09a

Please sign in to comment.