Getting the order_id and exiting a cover order

thepunisher
Does the placeOrder() return an array or an object? The sample file uses an index while the example in the API file, uses a property.

And is this the correct code to exit a cover order?

$kite->exitOrder( 'co', '151220000000000', array( 'parent_order_id' => '151220000000000' ) );
  • sujith
    It is an object which has data and order_id. You can know more here.
  • rakeshr
    Does the placeOrder() return an array or an object?
    It returns an object, with order_id.
    stdClass Object
    (
    [order_id] => XXXXXX
    )
    And is this the correct code to exit a cover order?
    Yes, this looks fine.
  • thepunisher
    @sujith and @rakeshr thanks for the responses.
This discussion has been closed.