Skip to content

Commit

Permalink
Merge pull request #46 from rcholic/fix_float
Browse files Browse the repository at this point in the history
fix float16 not indexable
  • Loading branch information
rcholic authored Dec 17, 2024
2 parents 2b3f0b2 + 4f152dd commit b492ba5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions cschwabpy/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,18 +449,18 @@ def break_down_option_map(
if should_compress:
strike_df = strike_df.astype(
{
"underlying_price": "float16",
"strike": "float16",
"lastPrice": "float16",
"underlying_price": "float32",
"strike": "float32",
"lastPrice": "float32",
"openInterest": "int32",
"volume": "int32",
"ask": "float16",
"bid": "float16",
"lastPrice": "float16",
"gamma": "float16",
"delta": "float16",
"vega": "float16",
"volatility": "float16",
"ask": "float32",
"bid": "float32",
"lastPrice": "float32",
"gamma": "float32",
"delta": "float32",
"vega": "float32",
"volatility": "float32",
}
)

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.4"
version = "0.1.4.5"
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.4",
version="0.1.4.5",
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 b492ba5

Please sign in to comment.