I am getting this error while trying to convert my MIS position to NRML. Can someone help me on this. GeneralException: Enterd Qty cannot be greater than Net qty
yes, as per the documentation the position type can be kite.VALIDITY_DAY or kite.VALIDITY_IOC and both did not work. can you tell us whats wrong in the parameters I have stated above?
Please note that I am passing "kite.VALIDITY_DAY" for "position_type" & exchange as kite.EXCHANGE_NSE, as given in the API call below & still I am getting the error "InputException: Missing or empty field `exchange`"
@ravishastry There was an issue regarding this position conversion param, which has been fixed. You need to update your Python Kiteconnect package and check the same. Update using pip install --upgrade kiteconnect . Also, you seem to using the wrong position_type, it should be small letter 'day' or 'overnight'. Check param detail here.
@ravishastry was your issue resolved? can you please share a snippet of your code where you use convert_position? i dont need the logic but just interested in the parameters and the sequence in which you put them.
Hi, I upgraded to the latest version of kiteconnect(3.9.0) & I changed the position to 'day' as well, but I am still getting the same error. Please let me know the solution for the same.
FYI. I have asked for a follow-up from @rakeshr in this thread. Please keep an eye on this thread as well to see which one of this thread gets an update.
GeneralException: Enterd Qty cannot be greater than Net qty
'JINDALSTEL',
kite.TRANSACTION_TYPE_BUY,
kite.VALIDITY_DAY,
quantity=1,
old_product=kite.PRODUCT_MIS,
new_product=kite.PRODUCT_CNC)
These are the parameters that I have passed & I am getting the below error:
InputException: Invalid `position_type`.
Can you please guide.
You can check out the documentation here.
Please note that I am passing "kite.VALIDITY_DAY" for "position_type" & exchange as kite.EXCHANGE_NSE, as given in the API call below & still I am getting the error "InputException: Missing or empty field `exchange`"
kite.convert_position(
tradingsymbol='ITC',
exchange=kite.EXCHANGE_NSE,
transaction_type=kite.TRANSACTION_TYPE_BUY,
position_type=kite.VALIDITY_DAY,
quantity=1,
old_product=kite.PRODUCT_MIS,
new_product=kite.PRODUCT_CNC)
PS: I have also tried with tradingsymbol = "NSE:ITC" but that does not work as well.
Can you please help me resolve this? Is there anyway I can talk to the expert or can I be called back at 9980415001.
There was an issue regarding this position conversion param, which has been fixed. You need to update your Python Kiteconnect package and check the same. Update using
pip install --upgrade kiteconnect
.Also, you seem to using the wrong position_type, it should be small letter '
day
' or 'overnight
'. Check param detail here.can you please share a snippet of your code where you use convert_position?
i dont need the logic but just interested in the parameters and the sequence in which you put them.
Please let me know the solution for the same.
https://kite.trade/forum/discussion/9162/kite-convert-position-kiteconnect-exceptions-inputexception-missing-or-empty-field-exchange