Skip to content

Commit

Permalink
Merge pull request #42 from rcholic/more_optional
Browse files Browse the repository at this point in the history
more optional fields
  • Loading branch information
rcholic authored Sep 4, 2024
2 parents 998e836 + 1b40dcd commit cbd9150
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions cschwabpy/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,13 @@ def to_dataframe_row(self, strip_space: bool = False) -> List[Any]:


class Underlying(JSONSerializableBaseModel):
ask: float
askSize: int
bid: float
bidSize: int
close_: float = Field(..., alias="close")
ask: Optional[float] = None
askSize: Optional[int] = None
bid: Optional[float] = None
bidSize: Optional[int] = None
close_: Optional[float] = Field(None, alias="close")
description: Optional[str] = None
exchangeName: str
exchangeName: Optional[str] = None
highPrice: Optional[float] = None
last: Optional[float] = None
lowPrice: Optional[float] = None
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cschwabpy"
version = "0.1.4.1"
version = "0.1.4.2"
description = ""
authors = ["Tony Wang <[email protected]>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="CSchwabPy",
version="0.1.4.1",
version="0.1.4.2",
description="Charles Schwab Stock & Option Trade API Client for Python.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit cbd9150

Please sign in to comment.