import { Router } from 'express';
import TradeDataController from '../controllers/tradeDataController';

const router = Router();
const tradeDataController = new TradeDataController();

router.get('/trades', tradeDataController.viewTrades.bind(tradeDataController));
router.get('/trades/filter', tradeDataController.filterTrades.bind(tradeDataController));
router.post('/trades/fix-import', tradeDataController.fixImport.bind(tradeDataController));
router.post('/trades/reprocess', tradeDataController.reprocessTrade.bind(tradeDataController));
router.post('/trades/normalize', tradeDataController.normalizeFormats.bind(tradeDataController));
router.delete('/trades/:id', tradeDataController.deleteTrade.bind(tradeDataController));

export default router;
