You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that to cancel complex orders, you need to use the ``delete_complex_order`` function, NOT ``delete_order``.
130
+
131
+
Notional market orders
132
+
----------------------
133
+
134
+
Notional orders are slightly different from normal orders. Since the market will determine both the quantity and the price for you, you need to pass `value` instead of price, and pass `None` for the `quantity` parameter to ``build_leg``.
135
+
136
+
.. code-block:: python
137
+
138
+
symbol = Equity.get_equity(session, 'AAPL')
139
+
order = NewOrder(
140
+
time_in_force=OrderTimeInForce.DAY,
141
+
order_type=OrderType.NOTIONAL_MARKET,
142
+
value=Decimal(-10), # $10 debit, this will result in fractional shares
0 commit comments