select * from crypto_market_monitor
order by date_time desc;

select symbol, bar, date_time, close, 
pct_chg, kdj_k, kdj_d, kdj_k, kdj_pattern,
rsi_14, rsi_signal,
boll_upper, boll_middle, boll_lower, boll_pattern, boll_signal
from crypto_market_data
WHERE close > boll_upper
order by timestamp desc;

select symbol, bar, window_size, date_time, close, 
volume, volume_ratio, huge_volume, 
close_20_low, low_20_low, close_10_low, low_10_low,
close_80_high, close_90_high, high_80_high, high_90_high 
from crypto_huge_volume
WHERE symbol='XCH-USDT' and bar='5m' and window_size=120# and low_10_low=1
order by timestamp desc;

select * from crypto_huge_volume
WHERE symbol='BTC-USDT' and bar='5m' #and date_time > '2025-08-04 15:00:00'
order by timestamp DESC;


select * from crypto_trade_data
where symbol='XCH-USDT'
order by ts desc;

select count(1) from crypto_trade_data;

select * from crypto_huge_volume
WHERE symbol='XCH-USDT' and bar='5m' and window_size = 80 and date_time > '2025-07-26'
order by timestamp;

select * from crypto_huge_volume
WHERE symbol='XCH-USDT-SWAP' and bar='5m' and date_time > '2025-07-26'
order by timestamp desc;

select * from crypto_huge_volume
WHERE symbol='BTC-USDT' and bar='5m' 
order by timestamp desc
limit 10;


SHOW VARIABLES LIKE 'max_connections';