Spaces:
Running
Running
Bibhu Mishra
Add GitHub Actions CI/CD, HF Space deployment, market hours guard, and static serving
abc493d | import { Controller, Get, Query, UseGuards } from '@nestjs/common'; | |
| import { JwtAuthGuard } from '../auth/jwt-auth.guard'; | |
| import { TransactionsService } from './transactions.service'; | |
| ('transactions') | |
| (JwtAuthGuard) | |
| export class TransactionsController { | |
| constructor(private svc: TransactionsService) {} | |
| () | |
| findAll( | |
| ('symbol') symbol?: string, | |
| ('action') action?: string, | |
| ('from') from?: string, | |
| ('to') to?: string, | |
| ('strategy_id') strategy_id?: string, | |
| ('pnl') pnl?: 'gain' | 'loss' | 'all', | |
| ) { | |
| return this.svc.findAll({ symbol, action, from, to, strategy_id, pnl }); | |
| } | |
| ('summary') | |
| summary() { return this.svc.summary(); } | |
| ('market-prices') | |
| marketPrices(('symbols') symbols: string) { | |
| const list = symbols ? symbols.split(',').filter(Boolean) : []; | |
| return this.svc.getMarketPrices(list); | |
| } | |
| } | |