'.h($title).'

'.h($intro).'

'; $from=$_GET['from']??date('Y-m-d',strtotime('-30 days')); $to=$_GET['to']??date('Y-m-d'); echo '
' .'
' .'
' .'
'; $shown=0; foreach($codes as $code){ $s=stream_by_code($code); if(!$s){ echo '

'.h($code).'

Stream not configured yet; accounted for in schema.
'; continue; } if(!visible($s)){ echo '

'.h($s['label']).'

Restricted stream: '.h($s['embargo_note']?:'available via keyed API or by agreement').'.
'; continue; } $shown++; $rows=series($s,$from.' 00:00:00',$to.' 23:59:59'); $last=latest($s); echo '

'.h($s['label']).' '.mode_badge($s).'

'; echo '
'.inst_status_badge($s['inst_status']).' · '.h($s['inst_name']).(function_exists('code_link')&&code_link('x')!==''?' · code: '.code_link('pages/'.$slug.'.php',null,'page').' · '.code_link('inc/streampage.php','render_stream_page','renderer').' · '.code_link('inc/helpers.php','series','series'):'').'
'; if($last) echo '
'.h(number_format((float)$last['value'],2)).''.h($s['unit']).'
latest · '.h($last['ts']).'
'; echo '
$s['unit'],'series'=>[['label'=>$s['label'],'slot'=>(int)$s['series_slot'],'data'=>array_map(fn($r)=>[substr($r['ts'],0,16),(float)$r['value']],$rows)]]])).'\'>
'; echo instrument_card($s); echo '
'; } if(isset($opts['note'])) echo '

'.h($opts['note']).'

'; page_footer(); }