Error in PHP exitOrder()

ramatius
Hi,
The 3.0 PHP exitOrder( $params ) doesn't seem to be implemented correctly in kiteconnect.php.

The understanding is that $params is an array, like,

$params = array( "variety" => "co", "order_id" => "180222000270507", "parent_order_id" => "6546" );
$order_id = $kite->exitOrder( $params );

But in kiteconnect.php, the function is defined as,

public function exitOrder($params) {
return $this->cancelOrder($params);
}

However, cancelOrder function looks like,
public function cancelOrder($variety, $order_id, $params=null) {

Obviously, it is throwing an exception,
[Thu Feb 22 10:45:55.856893 2018] [:error] [pid 1636] [client IP:61223] PHP Warning: Missing argument 2 for KiteConnect::cancelOrder(), called in kiteconnect.php on line 423 and defined in kiteconnect.php on line 401

Our system CO squareoff function across all algos have gone for a six, the moment we migrated to 3.0.

Did you guys even test this at all?

Please clarify. This needs urgent correction.

Regards,
Ramakrishnan S
Sign In or Register to comment.