fix template again

This commit is contained in:
Dobromir Popov
2025-10-24 23:26:59 +03:00
parent e9edf2c5f2
commit 86a579bea9
3 changed files with 238 additions and 5 deletions

View File

@@ -59,6 +59,7 @@
{% block extra_js %}
<script>
// Initialize application state
// IMPORTANT!!! DO NOT CHANGE {{ x }} to { { x } }
window.appState = {
currentSymbol: '{{ current_symbol }}',
currentTimeframes: {{ timeframes | tojson }},
@@ -97,7 +98,7 @@
function loadInitialData() {
console.log('Loading initial chart data...');
// Fetch initial chart data
// Fetch initial chart data with 2000 candles for training
fetch('/api/chart-data', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
@@ -105,7 +106,8 @@
symbol: appState.currentSymbol,
timeframes: appState.currentTimeframes,
start_time: null,
end_time: null
end_time: null,
limit: 2000 // Load 2000 candles initially for training
})
})
.then(response => {