ghostfolio/apps/api/src/app/order/create-order.dto.ts
Thomas 2c19d8c8e7
Feature/add balance to account ()
* Add balance attribute and calculate total balance

* Update changelog
2021-07-07 21:23:36 +02:00

32 lines
467 B
TypeScript

import { Currency, DataSource, Type } from '@prisma/client';
import { IsISO8601, IsNumber, IsString } from 'class-validator';
export class CreateOrderDto {
@IsString()
accountId: string;
@IsString()
currency: Currency;
@IsString()
dataSource: DataSource;
@IsISO8601()
date: string;
@IsNumber()
fee: number;
@IsNumber()
quantity: number;
@IsString()
symbol: string;
@IsString()
type: Type;
@IsNumber()
unitPrice: number;
}