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

35 lines
508 B
TypeScript
Raw Normal View History

import { Currency, DataSource, Type } from '@prisma/client';
2021-04-13 21:53:58 +02:00
import { IsISO8601, IsNumber, IsString, ValidateIf } from 'class-validator';
export class UpdateOrderDto {
@IsString()
accountId: string;
2021-04-13 21:53:58 +02:00
@IsString()
currency: Currency;
@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;
}