Modify order - false success

raja1sttarde
Hello,

I place a modify request to change qty from 100 to 200. The order returned a success message, but no modification was done. I had to manually update the order.

Please advise.
Thanks.
2022-10-13 09:56:40 	 Request: PUT https://api.kite.trade/orders/regular/221013200483184, params: {"qty":200,"variety":"regular","order_id":"221013200483184"}
2022-10-13 09:56:41 Response :{"status":"success","data":{"order_id":"221013200483184"}}
Below is the screenshot of order;

Tagged:
  • sujith
    You can check out this thread to know more.
  • raja1sttarde
    @sujith I went through the thread, I couldn't find the answer to what went wrong when trying to modify quantity. Do I need to include `trigger price` field?
    I wish the Z documentation was worth anything. I have been here since 2018, and somethings I have just given up on. For eg. in the past I asked how to convert order MIS>NRML, the reply was so cryptic, i just gave up.

    Please let me know where I made the mistake in placing the modify order.
  • raja1sttarde
    raja1sttarde edited October 2022
    @rakeshr can you help me? I had a query on modifying order qty.
  • rakeshr
    You can check the status_message field to know the details if the field is not modified.
    As the above-linked thread says, you can find rejection reason in the status_message available in the order history.
  • raja1sttarde
    raja1sttarde edited October 2022
    @rakeshr , why, thank you for your reply. but, sir, which order history? no where is any error given. its literally saying "status:success".
    the status_message is blank

    this is the order placement response
    2022-10-13 09:56:41 Response :{"status":"success","data":{"order_id":"221013200483184"}}

    this is the websokect response;
    stdClass Object
    (
    [account_id] => XG3388
    [unfilled_quantity] => 0
    [checksum] =>
    [placed_by] => XG3388
    [order_id] => 221013200483184
    [exchange_order_id] => 1100000017080715
    [parent_order_id] =>
    [status] => UPDATE
    [status_message] =>
    [status_message_raw] =>
    [order_timestamp] => 2022-10-13 09:56:41
    [exchange_update_timestamp] => 2022-10-13 09:56:41
    [exchange_timestamp] => 2022-10-13 09:56:41
    [variety] => regular
    [exchange] => NFO
    [tradingsymbol] => NIFTY22O1317100PE
    [instrument_token] => 13551362
    [order_type] => SL
    [transaction_type] => SELL
    [validity] => DAY
    [product] => MIS
    [quantity] => 100
    [disclosed_quantity] => 0
    [price] => 59.5
    [trigger_price] => 59.5
    [average_price] => 0
    [filled_quantity] => 0
    [pending_quantity] => 100
    [cancelled_quantity] => 0
    [market_protection] => 0
    [meta] => stdClass Object
    (
    )

    [tag] => n1
    [tags] => Array
    (
    [0] => n1
    )

    [guid] => 6589XqD3wuGahEpXu
    )
    stdClass Object
    (
    [account_id] => XG3388
    [unfilled_quantity] => 0
    [checksum] =>
    [placed_by] => XG3388
    [order_id] => 221013200483184
    [exchange_order_id] => 1100000017080715
    [parent_order_id] =>
    [status] => TRIGGER PENDING
    [status_message] =>
    [status_message_raw] =>
    [order_timestamp] => 2022-10-13 09:56:41
    [exchange_update_timestamp] => 2022-10-13 09:56:41
    [exchange_timestamp] => 2022-10-13 09:56:41
    [variety] => regular
    [exchange] => NFO
    [tradingsymbol] => NIFTY22O1317100PE
    [instrument_token] => 13551362
    [order_type] => SL
    [transaction_type] => SELL
    [validity] => DAY
    [product] => MIS
    [quantity] => 100
    [disclosed_quantity] => 0
    [price] => 59.5
    [trigger_price] => 59.5
    [average_price] => 0
    [filled_quantity] => 0
    [pending_quantity] => 100
    [cancelled_quantity] => 0
    [market_protection] => 0
    [meta] => stdClass Object
    (
    )

    [tag] => n1
    [tags] => Array
    (
    [0] => n1
    )

    [guid] => 6589XqD3wuGahEpXu
    )
  • raja1sttarde
    @SRIJAN , can you help? Am trying to know how to modify the quantity of an order.
  • kpawar
    Since this is an SL-L order, you need to include price and trigger price as well. It works for me that way.
Sign In or Register to comment.