From c3ae6b6c254bca1b1d4a1b4b104c4643dbb9f519 Mon Sep 17 00:00:00 2001 From: rcholic Date: Wed, 26 Jun 2024 19:16:45 -0700 Subject: [PATCH 1/2] separate order type --- cschwabpy/models/trade_models.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cschwabpy/models/trade_models.py b/cschwabpy/models/trade_models.py index 22c7bbc..b0770d0 100644 --- a/cschwabpy/models/trade_models.py +++ b/cschwabpy/models/trade_models.py @@ -452,3 +452,12 @@ class Order(JSONSerializableBaseModel): replacingOrderCollection: List[str] = [] childOrderStrategies: List[str] = [] statusDescription: Optional[str] = None + + +class EquityOrder(Order): + quanity: float + + +class OptionOrder(Order): + quantity: Optional[float] = None + complexOrderStrategyType: ComplexOrderStrategyType From dd3a88570b04a4a35446e2e0f743eab643602e13 Mon Sep 17 00:00:00 2001 From: rcholic Date: Wed, 26 Jun 2024 19:18:05 -0700 Subject: [PATCH 2/2] progress update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 500c83a..06a0534 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ This is a Python client library for accessing the Charles Schwab stock and optio - [X] Automated refreshing of access token - [x] Download option chain data - [x] Get account information -- Place stock and option trades [Work in Progress] -- Retrieve trade history [TODO] +- [x] Place stock and option trades +- Retrieve trade history [Work in Progress] - Monitor real-time market data [TODO] ## Installation