@@ -501,9 +501,7 @@ <h6><i class="fas fa-shield-alt"></i> Security Information</h6>
501501 document . getElementById ( 'assetSelect' ) . addEventListener ( 'change' , updateFileSelection ) ;
502502 document . getElementById ( 'timeframeSelect' ) . addEventListener ( 'change' , function ( ) {
503503 updateFileSelection ( ) ;
504- if ( document . getElementById ( 'dataSource' ) . value === 'live' ) {
505- updateTimeframeLimits ( ) ;
506- }
504+ updateTimeframeLimits ( ) ;
507505 } ) ;
508506
509507 // Date validation listeners
@@ -526,17 +524,7 @@ <h6><i class="fas fa-shield-alt"></i> Security Information</h6>
526524 checkApiKeyStatus ( ) ;
527525 } ) ;
528526
529- function updateDataSource ( ) {
530- const dataSource = document . getElementById ( 'dataSource' ) . value ;
531- const dateRangeDiv = document . getElementById ( 'dateRangeDiv' ) ;
532-
533- if ( dataSource === 'live' ) {
534- dateRangeDiv . style . display = 'block' ;
535- } else {
536- dateRangeDiv . style . display = 'none' ;
537- }
538- }
539-
527+
540528 function updateFileSelection ( ) {
541529 const asset = document . getElementById ( 'assetSelect' ) . value ;
542530 const timeframe = document . getElementById ( 'timeframeSelect' ) . value ;
@@ -592,7 +580,7 @@ <h6><i class="fas fa-shield-alt"></i> Security Information</h6>
592580 var errorBar = document . getElementById ( 'errorBar' ) ;
593581 if ( errorBar ) errorBar . style . display = 'none' ;
594582
595- const dataSource = document . getElementById ( 'dataSource' ) . value ;
583+ const dataSource = 'live' ; // Always use live data
596584 let asset = document . getElementById ( 'assetSelect' ) . value ;
597585 const timeframe = document . getElementById ( 'timeframeSelect' ) . value ;
598586
0 commit comments