Skip to content

Commit

Permalink
change fade rate view name
Browse files Browse the repository at this point in the history
  • Loading branch information
ConjunctiveNormalForm committed Oct 19, 2023
1 parent ffddba0 commit 7c6a332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/repositories/fades-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class FadesRepository extends BaseRedshiftRepository {
}

const CREATE_VIEW_SQL = `
CREATE OR REPLACE VIEW rfqOrders
CREATE OR REPLACE VIEW rfqOrdersTimestamp
AS (
WITH latestOrders AS (
SELECT * FROM (
Expand Down Expand Up @@ -89,7 +89,7 @@ WITH ORDERS_CTE AS (
rfqFiller,
COUNT(*) AS totalQuotes,
SUM(CASE WHEN (decayStartTime < fillTimestamp) THEN 1 ELSE 0 END) AS fadedQuotes
FROM rfqOrders
FROM rfqOrdersTimestamp
GROUP BY rfqFiller
)
SELECT
Expand Down

0 comments on commit 7c6a332

Please sign in to comment.