It looks like you're new here. If you want to get involved, click one of these buttons!
<?php
include "kiteconnect.php";
$apiKey = "[my_api_key]";
$apiSecret = "[my_secret_key]";
$request_token = "[my_request_token]";//$_GET["request_token"];
// Initialise.
$kite = new KiteConnect($apiKey);
// Assuming you have obtained the `request_token`
// after the auth flow redirect by redirecting the
// user to $kite->login_url()
try {
$user = $kite->generateSession($request_token, $apiSecret);
echo "Authentication successful. \n";
print_r($user);
$kite->setAccessToken($user->access_token);
} catch(Exception $e) {
echo "Authentication failed: ".$e->getMessage();
throw $e;
}
// Retrieve quote and market depth for list of instruments.
echo "Quote: \n";
print_r($kite->getQuote(["NSE:RELIANCE", "BSE:RELIANCE"]));
print_r($kite->getQuote(["NSE:ICICI", "BSE:ICICI"])); // returns no data , WHYYYYYYYYYY??
?>
You can fetch all the details from the instrument dump.
You can check out quote API documentation here.