Spaces:
Running
Running
Bibhu Mishra
Add GitHub Actions CI/CD, HF Space deployment, market hours guard, and static serving
abc493d | import { Column, CreateDateColumn, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm'; | |
| import { Transaction } from './transaction.entity'; | |
| ('positions') | |
| export class Position { | |
| () id: number; | |
| () symbol: string; | |
| ({ nullable: true }) strategy_id: number; | |
| ({ nullable: true }) analyst_report_id: number; | |
| ('real') entry_price: number; | |
| () quantity: number; | |
| ('real') cost_basis: number; | |
| ('real') stop_loss_price: number; | |
| ('real') exit_target_price: number; | |
| ({ default: 'open' }) status: string; | |
| () opened_at: Date; | |
| ({ nullable: true }) closed_at: Date; | |
| ({ nullable: true }) close_reason: string; | |
| (() => Transaction, (t) => t.position) transactions: Transaction[]; | |
| } | |