Spaces:
Sleeping
Sleeping
Bibhu Mishra
Claude Sonnet 4.6
Add GitHub Actions CI/CD, HF Space deployment, market hours guard, and static serving
abc493d Download api/src/dashboard/dashboard.controller.ts from mishrabp/stockadvisor: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/spaces/mishrabp/stockadvisor/resolve/main/api/src/dashboard/dashboard.controller.ts
- Command line
-
hf download hf://spaces/mishrabp/stockadvisor/api/src/dashboard/dashboard.controller.ts
-
curl -L -o dashboard.controller.ts https://huggingface.co/spaces/mishrabp/stockadvisor/resolve/main/api/src/dashboard/dashboard.controller.ts
721 Bytes
| import { Controller, Get, UseGuards } from '@nestjs/common'; | |
| import { JwtAuthGuard } from '../auth/jwt-auth.guard'; | |
| import { DashboardService } from './dashboard.service'; | |
| ('dashboard') | |
| (JwtAuthGuard) | |
| export class DashboardController { | |
| constructor(private svc: DashboardService) {} | |
| ('monthly-pnl') monthlyPnl() { return this.svc.monthlyPnl(); } | |
| ('portfolio-value') portfolioHistory() { return this.svc.portfolioHistory(); } | |
| ('win-rate') winRate() { return this.svc.winRate(); } | |
| ('sector-breakdown') sectorBreakdown() { return this.svc.sectorBreakdown(); } | |
| ('agent-status') agentStatus() { return this.svc.agentStatus(); } | |
| } | |