Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pya3/alicebluepy.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def place_order(self, transaction_type, instrument, quantity, order_type,
complexty = "AMO"
else:
complexty = "regular"
discqty=0
discqty=qtydisc
exch=instrument.exchange
if (instrument.exchange == 'NFO' or instrument.exchange == 'MCX')and (product_type.value == 'CNC'):
pCode = "NRML"
Expand Down Expand Up @@ -423,7 +423,7 @@ def modify_order(self, transaction_type, instrument, product_type, order_id, ord

if trigger_price is not None and not isinstance(trigger_price, float):
raise TypeError("Optional parameter trigger_price not of type float")
data = {'discqty': 0,
data = {'discqty': qtydisc,
'exch': instrument.exchange,
# 'filledQuantity': filledQuantity,
'nestOrderNumber': order_id,
Expand Down Expand Up @@ -470,7 +470,7 @@ def place_basket_order(self,orders):
complexty = "AMO"
else:
complexty = "regular"
discqty = 0
discqty = qtydisc
exch = order_data['instrument'].exchange
if order_data['instrument'].exchange == 'NFO' and order_data['product_type'].value == 'CNC':
pCode = "NRML"
Expand Down