crypto_quant/sql/query/sql_playground.sql

20 lines
575 B
MySQL
Raw Normal View History

2025-07-28 04:29:31 +00:00
select * from crypto_market_data
WHERE symbol='XCH-USDT' and bar='5m' #and date_time > '2025-07-26'
order by timestamp desc;
select * from crypto_trade_data
where date_time > '2025-05-03'
order by ts, tradeId asc;
select * from crypto_huge_volume
WHERE symbol='XCH-USDT' and bar='5m' and date_time > '2025-07-26'
2025-07-28 04:29:31 +00:00
order by timestamp desc;
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;