Convert Position From MIS TO CNC

ravishastry
What are the values for the below arguments in the convert position function?
transaction_type
position_type
old_product
new_product
  • rakeshr
    You can check all request parameters detail here.
  • swami_rs
    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
  • rakeshr
    GeneralException: Enterd Qty cannot be greater than Net qty
    As the error message states, you seem to be entering a higher quantity than available. Can you paste here your complete request params?
  • ravishastry
    kite.convert_position( kite.EXCHANGE_NSE,
    '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.
  • sujith
    @ravishastry,
    You can check out the documentation here.
  • ravishastry
    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?
  • rakeshr
    The position type should either Day or Overnight. Check all position param field detail here.
Sign In or Register to comment.