Convert Position Throwing Error

abhivin123
Hi @sujith ,

The convertPosition in PHPClient is throwing error. We are using kiteconnect 3 php file.

Code:

$kite->setAccessToken($_POST['access_token']);
$kite->convertPosition([
"exchange" => $exchange,
"tradingsymbol" => $tradingsymbol,
"transaction_type" => $transaction_type,
"position_type" => $position_type,
"quantity" => $quantity,
"old_product" => $old_product,
"new_product" => $new_product,
]);

Error:

Insufficient permission for that call.
  • abhivin123
    The same is true with cancel order as well ...

    Code:
    $kite->setAccessToken($_POST['access_token']);
    $kite->cancelOrder($variety,$id,null);

    Error:
    Insufficient permission for that call.

    @sujith can you please advice ... when is this error thrown?
Sign In or Register to comment.