Sebastián Torrealba
03/22/2022, 7:24 PMNicolas Hourcard
03/23/2022, 5:55 PMNick Guber
03/24/2022, 6:19 AMSELECT time_bucket('1 day', time) AS day,
first(price, time) AS open,
last(price, time) AS close,
max(price) AS high,
min(price) AS low,
sum(volume) AS volume
FROM prices
WHERE asset_code = 'TIMS'
AND time > NOW() - interval '30d'
GROUP BY day
ORDER BY day ASC;
Nick Guber
03/24/2022, 6:19 AMNick Guber
03/28/2022, 2:15 PMAndrey Pechkurov
03/28/2022, 6:29 PMhttps://youtu.be/KACcvfsy21Q▾
Nicolas Hourcard
03/29/2022, 8:00 AMWalter Z
03/30/2022, 9:04 AMWalter Z
03/30/2022, 9:30 AMNewskooler
04/08/2022, 1:09 PMNicolas Hourcard
04/13/2022, 5:23 PMSebastián Torrealba
04/13/2022, 9:00 PMSebastián Torrealba
04/13/2022, 9:00 PMPei
04/14/2022, 10:54 AMSebastián Torrealba
04/28/2022, 4:16 PMNicolas Hourcard
05/27/2022, 3:48 PMNicolas Hourcard
06/17/2022, 3:20 PMSuper Richman
06/21/2022, 11:32 AMSELECT price,price[-1] FROM cost
is that possible?Super Richman
06/28/2022, 12:09 PMSELECT (H-(avg(H))) FROM 'Seven'
H is float
Invalid column: HKevin Grüneberg
07/18/2022, 11:40 AMGrant Wittenberg
08/12/2022, 2:59 AMMichal Zeman
08/16/2022, 11:58 AMShriram Sunder
08/16/2022, 8:55 PMpanic: table name already provided: invalid message
This is the code that does the insertion... am I doing anything wrong? It works exactly as expected when I used the exact same code for another table to insert all the tickers info.
sender, _ := QDBConnectILP(ctx)
defer sender.Close()
// For each of these results, push!
for _, agg := range aggBar.Results {
err := sender.Table("aggs").
Symbol("ticker", aggBar.Ticker).
StringColumn("timespan", timespan).
Int64Column("multiplier", int64(multiplier)).
Float64Column("timestamp", agg.T).
Float64Column("open", agg.O).
Float64Column("high", agg.H).
Float64Column("low", agg.L).
Float64Column("close", agg.C).
Float64Column("volume", agg.V).
Float64Column("vw", agg.Vw).
Float64Column("n", float64(agg.N)).
At(ctx, time.Now().UnixNano())
CheckErr(err)
}
// Make sure that the messages are sent over the network.
err = sender.Flush(ctx)
CheckErr(err)
Sebastián Torrealba
08/22/2022, 6:40 PMmemphis
08/23/2022, 11:31 AMR D
08/25/2022, 5:04 AMJone Qiang
08/27/2022, 1:27 PMJone Qiang
08/31/2022, 3:54 AMKevin
09/04/2022, 1:09 AMNicolas Hourcard
09/04/2022, 9:41 AMNicolas Hourcard
09/04/2022, 9:41 AM