File

src/orderbook/dto/create-order.dto.ts

Index

Properties

Properties

amount
Type : number
Decorators :
@ApiProperty()
@IsNumber()
instrumentId
Type : string
Decorators :
@ApiProperty()
@IsString()
investorId
Type : string
Decorators :
@ApiProperty()
@IsOptional()
@IsString()
import { ApiProperty } from "@nestjs/swagger";
import { IsNumber, IsOptional, IsString } from "class-validator";

export class OrderDto {
  @ApiProperty()
  @IsNumber()
  amount: number;

  @ApiProperty()
  @IsOptional()
  @IsString()
  investorId: string;

  @ApiProperty()
  @IsString()
  instrumentId: string;
}

results matching ""

    No results matching ""