File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/APPS/CronJobs/bigshare/Pratik/FuturesOIScan.php
Back
<html> <head> <style> td { padding: 5px; text-align: center; } </style> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous"> </head> <body> <?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://options.icharts.in/opt/hcharts/stx8req/php/getDataForFuturesScan_eod.php?optExpDate=30JUN22&optExpDate_hist=undefined&txtDate=undefined&chkCombined=on&Presentday=2022-06-03&Prevday=2022-06-02&rdDataType=latest', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', )); $response = curl_exec($curl); curl_close($curl); $data = json_decode($response); ?> <table class="table table-bordered"> <thead> <tr> <th colspan="10" rowspan="1">Today</th> <th colspan="6" rowspan="1">Last 15mins</th> <th colspan="6" rowspan="1">Last 30mins</th> <th colspan="6" rowspan="1">Last 60mins</th> </tr> <tr role="row"> <th rowspan="1" colspan="1">Symbol</th> <th rowspan="1" colspan="1">Sector</th> <th rowspan="1" colspan="1">Price</th> <th rowspan="1" colspan="1">Price Chg</th> <th rowspan="1" colspan="1">Price Chg%</th> <th rowspan="1" colspan="1">OI </th> <th rowspan="1" colspan="1">OI Chg</th> <th rowspan="1" colspan="1">OI Chg %</th> <th rowspan="1" colspan="1">PCR</th> <th rowspan="1" colspan="1">Bldp</th> <th crowspan="1" colspan="1">Price</th> <th rowspan="1" colspan="1">Price Chg</th> <th rowspan="1" colspan="1">Price Chg%</th> <th rowspan="1" colspan="1">OI Chg</th> <th rowspan="1" colspan="1">OI Chg %</th> <th rowspan="1" colspan="1">Bldp</th> <th rowspan="1" colspan="1">Price</th> <th rowspan="1" colspan="1">Price Chg</th> <th rowspan="1" colspan="1">Price Chg%</th> <th rowspan="1" colspan="1">OI Chg</th> <th rowspan="1" colspan="1">OI Chg %</th> <th rowspan="1" colspan="1">Bldp</th> <th rowspan="1" colspan="1">Price</th> <th rowspan="1" colspan="1">Price Chg</th> <th rowspan="1" colspan="1">Price Chg%</th> <th rowspan="1" colspan="1">OI Chg</th> <th rowspan="1" colspan="1">OI Chg %</th> <th rowspan="1" colspan="1">Bldp</th> </tr> </thead> <tbody> <?php foreach($data->aaData as $row) { echo '<tr>'; echo '<td class="table-secondary">'.$row[0].'</td>'; echo '<td>'.substr($row[1],0,8).'..</td>'; echo '<td>'.$row[2].'</td>'; if($row[3] > 0) echo '<td class="text-success">'.$row[3].'</td>'; else echo '<td class="text-danger">'.$row[3].'</td>'; if($row[4] > 0) echo '<td class="text-success">'.$row[4].'</td>'; else echo '<td class="text-danger">'.$row[4].'</td>'; echo '<td>'.$row[5].'</td>'; if($row[6] > 0) echo '<td class="text-success">'.$row[6].'</td>'; else echo '<td class="text-danger">'.$row[6].'</td>'; if($row[7] > 0) echo '<td class="text-success">'.$row[7].'</td>'; else echo '<td class="text-danger">'.$row[7].'</td>'; echo '<td>'.$row[8].'</td>'; if($row[9] == "SB") echo '<td style="background-color: #FF5D5D;">'.$row[9].'</td>'; else if($row[9] == "LU") echo '<td style="background-color: #FF8C8C;">'.$row[9].'</td>'; else if($row[9] == "LB") echo '<td style="background-color: #4E944F;">'.$row[9].'</td>'; else if($row[9] == "SC") echo '<td style="background-color: #B4E197;">'.$row[9].'</td>'; else echo '<td class="text-danger">'.$row[9].'</td>'; echo '<td>'.$row[10].'</td>'; if($row[11] > 0) echo '<td class="text-success">'.$row[11].'</td>'; else echo '<td class="text-danger">'.$row[11].'</td>'; if($row[12] > 0) echo '<td class="text-success">'.$row[12].'</td>'; else echo '<td class="text-danger">'.$row[12].'</td>'; if($row[13] > 0) echo '<td class="text-success">'.$row[13].'</td>'; else echo '<td class="text-danger">'.$row[13].'</td>'; if($row[14] > 0) echo '<td class="text-success">'.$row[14].'</td>'; else echo '<td class="text-danger">'.$row[14].'</td>'; if($row[15] == "SB") echo '<td style="background-color: #FF5D5D;">'.$row[15].'</td>'; else if($row[15] == "LU") echo '<td style="background-color: #FF8C8C;">'.$row[15].'</td>'; else if($row[15] == "LB") echo '<td style="background-color: #4E944F;">'.$row[15].'</td>'; else if($row[15] == "SC") echo '<td style="background-color: #B4E197;">'.$row[15].'</td>'; else echo '<td class="text-danger">'.$row[15].'</td>'; echo '<td>'.$row[16].'</td>'; if($row[17] > 0) echo '<td class="text-success">'.$row[17].'</td>'; else echo '<td class="text-danger">'.$row[17].'</td>'; if($row[18] > 0) echo '<td class="text-success">'.$row[18].'</td>'; else echo '<td class="text-danger">'.$row[18].'</td>'; if($row[19] > 0) echo '<td class="text-success">'.$row[19].'</td>'; else echo '<td class="text-danger">'.$row[19].'</td>'; if($row[20] > 0) echo '<td class="text-success">'.$row[20].'</td>'; else echo '<td class="text-danger">'.$row[20].'</td>'; if($row[21] == "SB") echo '<td style="background-color: #FF5D5D;">'.$row[21].'</td>'; else if($row[21] == "LU") echo '<td style="background-color: #FF8C8C;">'.$row[21].'</td>'; else if($row[21] == "LB") echo '<td style="background-color: #4E944F;">'.$row[21].'</td>'; else if($row[21] == "SC") echo '<td style="background-color: #B4E197;">'.$row[21].'</td>'; else echo '<td class="text-danger">'.$row[21].'</td>'; echo '<td>'.$row[22].'</td>'; if($row[23] > 0) echo '<td class="text-success">'.$row[23].'</td>'; else echo '<td class="text-danger">'.$row[23].'</td>'; if($row[24] > 0) echo '<td class="text-success">'.$row[24].'</td>'; else echo '<td class="text-danger">'.$row[24].'</td>'; if($row[25] > 0) echo '<td class="text-success">'.$row[25].'</td>'; else echo '<td class="text-danger">'.$row[25].'</td>'; if($row[26] > 0) echo '<td class="text-success">'.$row[26].'</td>'; else echo '<td class="text-danger">'.$row[26].'</td>'; if($row[27] == "SB") echo '<td style="background-color: #FF5D5D;">'.$row[27].'</td>'; else if($row[27] == "LU") echo '<td style="background-color: #FF8C8C;">'.$row[27].'</td>'; else if($row[27] == "LB") echo '<td style="background-color: #4E944F;">'.$row[27].'</td>'; else if($row[27] == "SC") echo '<td style="background-color: #B4E197;">'.$row[27].'</td>'; else echo '<td class="text-danger">'.$row[27].'</td>'; echo '</tr>'; } ?> </tbody> </table> </body> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" crossorigin="anonymous"></script> <html>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings