Feature: v0.32 - Auto-load 1-Day chart on page load (loadChart 24 hours default)
This commit is contained in:
parent
b3b5c61a58
commit
32ed8cac6d
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
"""Trading Bot Dashboard v0.32 - Add USD values to Holdings display"""
|
"""Trading Bot Dashboard v0.32 - Auto-load 1-Day chart on page load"""
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from fastapi.responses import HTMLResponse
|
from fastapi.responses import HTMLResponse
|
||||||
from binance.client import Client
|
from binance.client import Client
|
||||||
|
|
@ -315,6 +315,7 @@ async function loadChart(hours, e) {
|
||||||
|
|
||||||
setInterval(updatePortfolio, 10000);
|
setInterval(updatePortfolio, 10000);
|
||||||
updatePortfolio();
|
updatePortfolio();
|
||||||
|
loadChart(24, null);
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>"""
|
</html>"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue