fix template again
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user