convert position mis to cnc

LakshmiNarasaiah
LakshmiNarasaiah edited December 2022 in Python client
####cONVERT POSITIONS
kite.convert_position(kite.EXCHANGE_NFO,'BANKNIFTY22D1544500CE',
kite.TRANSACTION_TYPE_BUY,
position_type=kite.VALIDITY_DAY,
quantity=25,
old_product=kite.PRODUCT_MIS,
new_product=kite.PRODUCT_CNC)

showing positio_type error like Invalid `position_type`.
if change position_type='overnight' then Enterd Qty cannot be greater than Net qty
Tagged:
  • sujith
    Can you private message your client id and api_key? We will get it checked? Did you carry forward 25 quantity from yesterday?
  • LakshmiNarasaiah
    no i have taken mis position and then try to convert it to cnc
  • LakshmiNarasaiah
    ####cONVERT POSITIONS
    kite.convert_position(kite.EXCHANGE_NFO,'BANKNIFTY22D1544500CE',
    kite.TRANSACTION_TYPE_BUY,
    position_type=kite.VALIDITY_DAY,
    quantity=25,
    old_product=kite.PRODUCT_MIS,
    new_product=kite.PRODUCT_NRML)

    it is working
This discussion has been closed.