How to send getHistoricalData to display.php page.

rajatbiswas
Not able to send it to the display page which I created for UI purpose.

$_SESSION['OHLC'] = $data = $kite->getIROIRO_ASHU('340481');
$_SESSION['candels'] = $kite->getHistoricalData('136289796','day','2020-10-06 00:00:00','2020-10-06 23:59:59' );

Response:

Array
(
[OHLC] => eyJzdGF0dXMiOiJzdWNjZXNzIiwiZGF0YSI6eyIzNDA0ODEiOnsiaW5zdHJ1bWVudF90b2tlbiI6MzQwNDgxLCJsYXN0X3ByaWNlIjoyMDg4LjIsIm9obGMiOnsib3BlbiI6MjExMS4xLCJoaWdoIjoyMTM0Ljk1LCJsb3ciOjIwNTYuNCwiY2xvc2UiOjIxMzAuOTV9fX19
[candels] => Array
(
[0] => stdClass Object
(
[date] => DateTime Object
(
[date] => 2020-10-06 00:00:00.000000
[timezone_type] => 1
[timezone] => +05:30
)

[open] => 70.7
[high] => 70.7
[low] => 68.5
[close] => 68.95
[volume] => 8973
)

)

)
when I am redirecting like this , then it's working fine -
window.location = "http://localhost/markethalchal/test/examples/display.php?res=<?=$_SESSION['OHLC']?>;";
But not working for this -
window.location = "http://localhost/markethalchal/test/examples/display.php?res=<?=$_SESSION?>;";
  • sujith
    @rajatbiswas,
    One can't display our data on a third party website. You can speak to the compliance team for more information. You can reach out to them at kiteconnect(at)zerodha.com
Sign In or Register to comment.