diff --git a/src/controllers/stats.controller.ts b/src/controllers/stats.controller.ts index b929e01..3f7ea87 100644 --- a/src/controllers/stats.controller.ts +++ b/src/controllers/stats.controller.ts @@ -91,6 +91,9 @@ class StatsController { as: 'buy_orders', attributes: ['amount'], required: true, + where: { + status: 'confirmed', + }, }, ], order: [['timestamp', 'ASC']], @@ -209,6 +212,9 @@ class StatsController { as: 'buy_orders', attributes: ['amount'], required: true, + where: { + status: 'confirmed', + }, }, ], order: [['timestamp', 'ASC']],