fix: query error in /coingecko/tickers

This commit is contained in:
dboures 2023-05-20 13:59:56 -05:00
parent 6e16ef8e04
commit 34117ca95e
No known key found for this signature in database
GPG Key ID: AB3790129D478852
1 changed files with 2 additions and 2 deletions

View File

@ -279,8 +279,8 @@ pub async fn fetch_coingecko_24h_volume(
let stmt = client
.prepare(
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
where "time" >= current_timestamp - interval '1 day'
and bid = true