crypto_quant/sql/query/sql_playground.sql

45 lines
1.3 KiB
MySQL
Raw Normal View History

2025-08-21 07:19:41 +00:00
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;
2025-08-07 10:09:51 +00:00
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
2025-08-21 07:19:41 +00:00
WHERE symbol='XCH-USDT' and bar='5m' and window_size=120# and low_10_low=1
order by timestamp desc;
2025-08-04 14:36:25 +00:00
2025-08-05 09:03:59 +00:00
select * from crypto_huge_volume
2025-08-21 07:19:41 +00:00
WHERE symbol='BTC-USDT' and bar='5m' #and date_time > '2025-08-04 15:00:00'
order by timestamp DESC;
2025-08-04 14:36:25 +00:00
select * from crypto_trade_data
2025-08-01 08:18:36 +00:00
where symbol='XCH-USDT'
order by ts desc;
select count(1) from crypto_trade_data;
select * from crypto_huge_volume
2025-08-01 08:18:36 +00:00
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;
2025-08-21 07:19:41 +00:00
SHOW VARIABLES LIKE 'max_connections';