Skip to content

Commit 70149f3

Browse files
committed
Remove old method of submitting orders
1 parent 24df6d9 commit 70149f3

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

alpaca_trade_api/rest.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -246,31 +246,6 @@ def submit_order(self, symbol, qty, side, type, time_in_force,
246246
resp = self.post('/orders', params)
247247
return Order(resp)
248248

249-
def submit_advanced_order(
250-
self, symbol, qty, side, type, time_in_force, order_class,
251-
take_profit_limit_price=None, stop_loss_stop_price=None,
252-
stop_loss_limit_price=None, limit_price=None,
253-
stop_price=None, client_order_id=None
254-
):
255-
order_attributes = {
256-
'take_profit_limit_price': take_profit_limit_price,
257-
'stop_loss_stop_price': stop_loss_stop_price,
258-
}
259-
if take_profit_limit_price is not None:
260-
order_attributes[
261-
'take_profit_limit_price'] = take_profit_limit_price
262-
if stop_loss_stop_price is not None:
263-
order_attributes[
264-
'stop_loss_stop_price'] = stop_loss_stop_price
265-
if stop_loss_limit_price is not None:
266-
order_attributes[
267-
'stop_loss_limit_price'] = stop_loss_limit_price
268-
269-
return self.submit_order(
270-
symbol, qty, side, type, time_in_force, limit_price, stop_price,
271-
client_order_id, False, order_class, order_attributes
272-
)
273-
274249
def get_order_by_client_order_id(self, client_order_id):
275250
'''Get an order by client order id'''
276251
params = {

0 commit comments

Comments
 (0)