Skip to content

Commit

Permalink
Merge pull request #26 from rcholic/order_api3
Browse files Browse the repository at this point in the history
separate order type
  • Loading branch information
rcholic authored Jun 27, 2024
2 parents 9ab7653 + dd3a885 commit 8456eab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions cschwabpy/models/trade_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8456eab

Please sign in to comment.