Skip to content

Commit

Permalink
optional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
amamparo committed Jul 10, 2023
1 parent 4d00b68 commit 10f0fae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/tastytrade_sdk/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ class Order:
"""@private"""
order_type: str
time_in_force: str
price: float
price_effect: str
legs: List[Leg]
price: Optional[float] = None
price_effect: Optional[str] = None

@property
def json(self) -> dict:
Expand Down
4 changes: 1 addition & 3 deletions tests/place_order_and_wait_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ def main():
account_number='5WT06363',
timeout_seconds=5,
order=Order(
order_type='Limit',
order_type='Market',
time_in_force='Day',
price=1.5,
price_effect='Debit',
legs=[
Leg(
instrument_type='Equity',
Expand Down

0 comments on commit 10f0fae

Please sign in to comment.