Skip to content

Commit 6ccf8fd

Browse files
committed
Add kwargs to submit_order
1 parent fb99696 commit 6ccf8fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

alpaca_trade_api/rest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ def submit_order(self,
253253
extended_hours: bool = None,
254254
order_class: str = None,
255255
take_profit: dict = None,
256-
stop_loss: dict = None):
256+
stop_loss: dict = None,
257+
**kwargs):
257258
"""
258259
:param symbol: symbol or asset ID
259260
:param qty: int
@@ -278,6 +279,7 @@ def submit_order(self,
278279
'side': side,
279280
'type': type,
280281
'time_in_force': time_in_force,
282+
**kwargs
281283
}
282284
if limit_price is not None:
283285
params['limit_price'] = FLOAT(limit_price)

0 commit comments

Comments
 (0)