feat: Implement BolsaLocalWidget and configure API CORS
This commit is contained in:
		
							
								
								
									
										37
									
								
								frontend/src/models/mercadoModels.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								frontend/src/models/mercadoModels.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| // Nombres de propiedad en minúscula (camelCase) para seguir la convención de JavaScript/JSON | ||||
| // La deserialización de JSON se encargará de mapearlos automáticamente. | ||||
|  | ||||
| export interface CotizacionGanado { | ||||
|   id: number; | ||||
|   categoria: string; | ||||
|   especificaciones: string; | ||||
|   maximo: number; | ||||
|   minimo: number; | ||||
|   promedio: number; | ||||
|   mediano: number; | ||||
|   cabezas: number; | ||||
|   kilosTotales: number; | ||||
|   kilosPorCabeza: number; | ||||
|   importeTotal: number; | ||||
|   fechaRegistro: string; | ||||
| } | ||||
|  | ||||
| export interface CotizacionGrano { | ||||
|   id: number; | ||||
|   nombre: string; | ||||
|   precio: number; | ||||
|   variacionPrecio: number; | ||||
|   fechaOperacion: string; | ||||
|   fechaRegistro: string; | ||||
| } | ||||
|  | ||||
| export interface CotizacionBolsa { | ||||
|   id: number; | ||||
|   ticker: string; | ||||
|   mercado: string; | ||||
|   precioActual: number; | ||||
|   apertura: number; | ||||
|   cierreAnterior: number; | ||||
|   porcentajeCambio: number; | ||||
|   fechaRegistro: string; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user