Skip to content

Commit

Permalink
little cleanup (#2115)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulZhemanov authored Nov 22, 2024
1 parent fb5fafa commit cce6d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dexs/spark/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const fetchTradeVolume = ({ startTimestamp, endTimestamp }: FetchOptions) =>
},
body: JSON.stringify({
"sqlQuery": {
"sql": `SELECT tradeVolume, timestamp FROM DailyVolume WHERE timestamp >= ${startTimestamp} AND timestamp <= ${endTimestamp} ORDER BY timestamp DESC LIMIT 1`
"sql": `SELECT volume, timestamp FROM DailyVolume_raw WHERE timestamp >= ${startTimestamp} AND timestamp <= ${endTimestamp} ORDER BY timestamp DESC LIMIT 1`
}
}),
})
Expand All @@ -31,7 +31,7 @@ const fetchTradeVolume = ({ startTimestamp, endTimestamp }: FetchOptions) =>
if (rows.length === 0)
throw new Error('No trade volume data available.');

const dailyVolume = rows[0]?.tradeVolume;
const dailyVolume = rows[0]?.volume;

return {
dailyVolume,
Expand Down

0 comments on commit cce6d32

Please sign in to comment.