fix: query error in /coingecko/tickers
This commit is contained in:
parent
6e16ef8e04
commit
34117ca95e
|
@ -279,8 +279,8 @@ pub async fn fetch_coingecko_24h_volume(
|
||||||
let stmt = client
|
let stmt = client
|
||||||
.prepare(
|
.prepare(
|
||||||
r#"select market as "address!",
|
r#"select market as "address!",
|
||||||
sum(native_qty_paid) as "raw_quote_size!",
|
sum(native_qty_received) as "raw_base_size!",
|
||||||
sum(native_qty_received) as "raw_base_size!"
|
sum(native_qty_paid) as "raw_quote_size!"
|
||||||
from fills
|
from fills
|
||||||
where "time" >= current_timestamp - interval '1 day'
|
where "time" >= current_timestamp - interval '1 day'
|
||||||
and bid = true
|
and bid = true
|
||||||
|
|
Loading…
Reference in New Issue