Skip to content

Commit

Permalink
fix: adjust f-string and docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
hiohiohio committed Jan 25, 2024
1 parent d846af4 commit eb3cd88
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion alpaca/trading/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def get_option_contracts(

params = request.to_request_fields()

response = self.get(f"/options/contracts", params)
response = self.get("/options/contracts", params)

if self._use_raw_data:
return response
Expand Down
34 changes: 17 additions & 17 deletions alpaca/trading/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,23 +613,23 @@ class OptionContract(BaseModel):
Represents an option contract.
Attributes:
id (str) The unique identifier of the option contract.
symbol (str): The symbol representing the option contract.
name (str): The name of the option contract.
status (AssetStatus): The status of the option contract.
tradable (bool): Indicates whether the option contract is tradable.
expiration_date (date): The expiration date of the option contract.
root_symbol (str): The root symbol of the option contract.
underlying_symbol (str): The underlying symbol of the option contract.
underlying_asset_id (UUID): The unique identifier of the underlying asset.
type (ContractType): The type of the option contract.
style (ExerciseStyle): The style of the option contract.
strike_price (float): The strike price of the option contract.
size (str): The size of the option contract. Usually contracts have size=100.
open_interest (Optional[str]): The open interest of the option contract.
open_interest_date (Optional[date]): The date of the open interest data.
close_price (Optional[str]): The close price of the option contract.
close_price_date (Optional[date]): The date of the close price data.
id (str): The unique identifier of the option contract.
symbol (str): The symbol representing the option contract.
name (str): The name of the option contract.
status (AssetStatus): The status of the option contract.
tradable (bool): Indicates whether the option contract is tradable.
expiration_date (date): The expiration date of the option contract.
root_symbol (str): The root symbol of the option contract.
underlying_symbol (str): The underlying symbol of the option contract.
underlying_asset_id (UUID): The unique identifier of the underlying asset.
type (ContractType): The type of the option contract.
style (ExerciseStyle): The style of the option contract.
strike_price (float): The strike price of the option contract.
size (str): The size of the option contract. Usually contracts have size=100.
open_interest (Optional[str]): The open interest of the option contract.
open_interest_date (Optional[date]): The date of the open interest data.
close_price (Optional[str]): The close price of the option contract.
close_price_date (Optional[date]): The date of the close price data.
"""

id: str
Expand Down

0 comments on commit eb3cd88

Please sign in to comment.