mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
455 B
31 lines
455 B
import { DataSource, Type } from '@prisma/client';
|
|
import { IsISO8601, IsNumber, IsString } from 'class-validator';
|
|
|
|
export class CreateOrderDto {
|
|
@IsString()
|
|
accountId: string;
|
|
|
|
@IsString()
|
|
currency: string;
|
|
|
|
@IsString()
|
|
dataSource: DataSource;
|
|
|
|
@IsISO8601()
|
|
date: string;
|
|
|
|
@IsNumber()
|
|
fee: number;
|
|
|
|
@IsNumber()
|
|
quantity: number;
|
|
|
|
@IsString()
|
|
symbol: string;
|
|
|
|
@IsString()
|
|
type: Type;
|
|
|
|
@IsNumber()
|
|
unitPrice: number;
|
|
}
|
|
|