-
Notifications
You must be signed in to change notification settings - Fork 61
Issue #61 — Bulk market operations (admin) #458
Copy link
Copy link
Open
Description
Title: [Admin] Implement bulk market pause and cancel endpoint
Tags: backend, admin, markets, feature
Description:
Admin can pause or cancel multiple markets in a single request, used during incidents or platform maintenance.
Acceptance Criteria:
-
POST /admin/markets/bulk-pause(admin) — body:{ marketIds: number[] }(max 50). -
POST /admin/markets/bulk-cancel(admin) — body:{ marketIds: number[], reason: string }. - Each market processed independently; failures logged but do not abort others.
- Returns
{ succeeded: number[], failed: { id, reason }[] }. - Sends notification to all position holders of cancelled markets.
Files: src/routes/admin.routes.ts, src/controllers/admin.controller.ts, src/services/market.service.ts
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels