Stock Quote not displaying in PHP

sudhir
I am trying to display the stock quote but it is not displaying.

print_r(
$kite->quote([
"exchange" => "NSE",
"tradingsymbol" => "HINDALCO"
])
);

Output: stdClass Object ( )

It is not displaying the LTP & other values. Please help me what is wrong with this.
Tagged:
  • Kailash
    Kailash edited January 2017
    You are passing an array to the function, which is incorrect. Try this:

    print_r( $kite->quote("NSE", "HINDALCO") );
  • sudhir
    Thank you. It works.
This discussion has been closed.