feat: add Hurst Bands, strategy panel, signal markers and multiple UI enhancements

This commit is contained in:
BTC Bot
2026-03-04 19:41:16 +01:00
parent 5632a465d1
commit 7666f970c0
30 changed files with 6671 additions and 373 deletions

42
check_db.py Normal file
View File

@ -0,0 +1,42 @@
import asyncio
import os
from datetime import datetime
import asyncpg
DB_HOST = os.getenv('DB_HOST', 'localhost')
DB_PORT = int(os.getenv('DB_PORT', 5432))
DB_NAME = os.getenv('DB_NAME', 'btc_data')
DB_USER = os.getenv('DB_USER', 'btc_bot')
DB_PASSWORD = os.getenv('DB_PASSWORD', '')
async def check_data():
conn = await asyncpg.connect(
host=DB_HOST,
port=DB_PORT,
database=DB_NAME,
user=DB_USER,
password=DB_PASSWORD
)
try:
print("Checking candle counts...")
rows = await conn.fetch("""
SELECT interval, COUNT(*), MIN(time), MAX(time)
FROM candles
GROUP BY interval
ORDER BY interval
""")
for row in rows:
print(f"Interval: {row['interval']}")
print(f" Count: {row['count']}")
print(f" Min Time: {row['min']}")
print(f" Max Time: {row['max']}")
print("-" * 20)
finally:
await conn.close()
if __name__ == "__main__":
asyncio.run(check_data())