We are unable to get all account data in kite API

lakshmilax
Hello, We have integrated kiteAPI code on our server. In the process, we got the basic information of user but we are unable to get the position of account. We are using below example code of GitHub. Will you please check the below code and let us know what we are missing? Example code: include ('kiteconnect.php'); $api_key = 'MY_API_KEY'; $secret_key = 'SECRET_KEY'; // Initialise. $kite = new KiteConnect($api_key); $user = $_SESSION['user_token']; //Access Token is stored in this session array variable echo $user->user_id." has logged in"; // Get the list of positions. echo "Positions: \n"; print_r($kite->getPositions()); Thanks.
Sign In or Register to comment.