@@ -320,7 +320,7 @@ def order_buy_market(symbol, quantity, account_number=None, timeInForce='gtc', e
320
320
the price, and the quantity.
321
321
322
322
"""
323
- return order (symbol , quantity , "buy" , account_number , None , None , timeInForce , extendedHours , jsonify )
323
+ return order (symbol , quantity , "buy" , None , None , account_number , timeInForce , extendedHours , jsonify )
324
324
325
325
326
326
@login_required
@@ -346,7 +346,7 @@ def order_buy_fractional_by_quantity(symbol, quantity, account_number=None, time
346
346
the price, and the quantity.
347
347
348
348
"""
349
- return order (symbol , quantity , "buy" , account_number , None , None , timeInForce , extendedHours , jsonify )
349
+ return order (symbol , quantity , "buy" , None , None , account_number , timeInForce , extendedHours , jsonify )
350
350
351
351
352
352
@login_required
@@ -380,7 +380,7 @@ def order_buy_fractional_by_price(symbol, amountInDollars, account_number=None,
380
380
price = next (iter (get_latest_price (symbol , 'ask_price' , extendedHours )), 0.00 )
381
381
fractional_shares = 0 if (price == 0.00 ) else round_price (amountInDollars / float (price ))
382
382
383
- return order (symbol , fractional_shares , "buy" , None , None , account_number , timeInForce , extendedHours , jsonify , market_hours )
383
+ return order (symbol , fractional_shares , "buy" , None , None , account_number , timeInForce , extendedHours , jsonify , market_hours )
384
384
385
385
386
386
@login_required
@@ -407,7 +407,7 @@ def order_buy_limit(symbol, quantity, limitPrice, account_number=None, timeInFor
407
407
the price, and the quantity.
408
408
409
409
"""
410
- return order (symbol , quantity , "buy" , account_number , limitPrice , None , timeInForce , extendedHours , jsonify )
410
+ return order (symbol , quantity , "buy" , limitPrice , None , account_number , timeInForce , extendedHours , jsonify )
411
411
412
412
413
413
@login_required
@@ -434,7 +434,7 @@ def order_buy_stop_loss(symbol, quantity, stopPrice, account_number=None, timeIn
434
434
the price, and the quantity.
435
435
436
436
"""
437
- return order (symbol , quantity , "buy" , account_number , None , stopPrice , timeInForce , extendedHours , jsonify )
437
+ return order (symbol , quantity , "buy" , None , stopPrice , account_number , timeInForce , extendedHours , jsonify )
438
438
439
439
440
440
@login_required
@@ -463,7 +463,7 @@ def order_buy_stop_limit(symbol, quantity, limitPrice, stopPrice, account_number
463
463
the price, and the quantity.
464
464
465
465
"""
466
- return order (symbol , quantity , "buy" , account_number , limitPrice , stopPrice , timeInForce , extendedHours , jsonify )
466
+ return order (symbol , quantity , "buy" , limitPrice , stopPrice , account_number , timeInForce , extendedHours , jsonify )
467
467
468
468
469
469
@login_required
@@ -493,7 +493,7 @@ def order_buy_trailing_stop(symbol, quantity, trailAmount, trailType='percentage
493
493
such as the order id, the state of order (queued, confired, filled, failed, canceled, etc.), \
494
494
the price, and the quantity.
495
495
"""
496
- return order_trailing_stop (symbol , quantity , "buy" , trailAmount , trailType , timeInForce , extendedHours , jsonify )
496
+ return order_trailing_stop (symbol , quantity , "buy" , trailAmount , trailType , None , timeInForce , extendedHours , jsonify )
497
497
498
498
499
499
@login_required
@@ -518,7 +518,7 @@ def order_sell_market(symbol, quantity, account_number=None, timeInForce='gtc',
518
518
the price, and the quantity.
519
519
520
520
"""
521
- return order (symbol , quantity , "sell" , account_number , None , None , timeInForce , extendedHours , jsonify )
521
+ return order (symbol , quantity , "sell" , None , None , account_number , timeInForce , extendedHours , jsonify )
522
522
523
523
524
524
@login_required
@@ -544,7 +544,7 @@ def order_sell_fractional_by_quantity(symbol, quantity, account_number=None, tim
544
544
the price, and the quantity.
545
545
546
546
"""
547
- return order (symbol , quantity , "sell" , None , None , account_number , timeInForce , extendedHours , jsonify , market_hours )
547
+ return order (symbol , quantity , "sell" , None , None , account_number , timeInForce , extendedHours , jsonify , market_hours )
548
548
549
549
550
550
@login_required
@@ -577,7 +577,7 @@ def order_sell_fractional_by_price(symbol, amountInDollars, account_number=None,
577
577
price = next (iter (get_latest_price (symbol , 'bid_price' , extendedHours )), 0.00 )
578
578
fractional_shares = 0 if (price == 0.00 ) else round_price (amountInDollars / float (price ))
579
579
580
- return order (symbol , fractional_shares , "sell" , account_number , None , None , timeInForce , extendedHours , jsonify )
580
+ return order (symbol , fractional_shares , "sell" , None , None , account_number , timeInForce , extendedHours , jsonify )
581
581
582
582
583
583
@login_required
@@ -604,7 +604,7 @@ def order_sell_limit(symbol, quantity, limitPrice, account_number=None, timeInFo
604
604
the price, and the quantity.
605
605
606
606
"""
607
- return order (symbol , quantity , "sell" , account_number , limitPrice , None , timeInForce , extendedHours , jsonify )
607
+ return order (symbol , quantity , "sell" , limitPrice , None , account_number , timeInForce , extendedHours , jsonify )
608
608
609
609
610
610
@login_required
@@ -631,7 +631,7 @@ def order_sell_stop_loss(symbol, quantity, stopPrice, account_number=None, timeI
631
631
the price, and the quantity.
632
632
633
633
"""
634
- return order (symbol , quantity , "sell" , account_number , None , stopPrice , timeInForce , extendedHours , jsonify )
634
+ return order (symbol , quantity , "sell" , None , stopPrice , account_number , timeInForce , extendedHours , jsonify )
635
635
636
636
637
637
@login_required
@@ -660,7 +660,7 @@ def order_sell_stop_limit(symbol, quantity, limitPrice, stopPrice, account_numbe
660
660
the price, and the quantity.
661
661
662
662
"""
663
- return order (symbol , quantity , "sell" , account_number , limitPrice , stopPrice , timeInForce , extendedHours , jsonify )
663
+ return order (symbol , quantity , "sell" , limitPrice , stopPrice , account_number , timeInForce , extendedHours , jsonify )
664
664
665
665
666
666
@login_required
@@ -690,7 +690,7 @@ def order_sell_trailing_stop(symbol, quantity, trailAmount, trailType='percentag
690
690
such as the order id, the state of order (queued, confired, filled, failed, canceled, etc.), \
691
691
the price, and the quantity.
692
692
"""
693
- return order_trailing_stop (symbol , quantity , "sell" , trailAmount , trailType , timeInForce , extendedHours , jsonify )
693
+ return order_trailing_stop (symbol , quantity , "sell" , trailAmount , trailType , None , timeInForce , extendedHours , jsonify )
694
694
695
695
696
696
@login_required
0 commit comments