Add Grafana

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-01-25 17:19:38 +00:00
parent bcac24bc58
commit 5f458d9ea9
5 changed files with 60 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
SELECT $__timeInterval(time),
any(open) as open,
max(high) as high,
min(low) as low,
anyLast(close) as close,
sum(volume) as volume
FROM bars FINAL
WHERE $__timeFilter(time)
AND symbol = '${bars}'
GROUP BY time;
SELECT time_created AS time,
headline
FROM news FINAL
WHERE $__timeFilter(time)
AND hasAny(symbols, [${news}])
ORDER BY time ASC;