ghostfolio/apps/api/src/app/order/update-order.dto.ts

35 lines
484 B
TypeScript
Raw Normal View History

import { DataSource, Type } from '@prisma/client';
import { IsISO8601, IsNumber, IsString } from 'class-validator';
2021-04-13 21:53:58 +02:00
export class UpdateOrderDto {
@IsString()
accountId: string;
2021-04-13 21:53:58 +02:00
@IsString()
currency: string;
2021-04-13 21:53:58 +02:00
@IsString()
dataSource: DataSource;
2021-04-13 21:53:58 +02:00
@IsISO8601()
date: string;
@IsNumber()
fee: number;
@IsString()
id: string;
@IsNumber()
quantity: number;
@IsString()
symbol: string;
@IsString()
type: Type;
@IsNumber()
unitPrice: number;
}