File

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

Index

Properties

Properties

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

export class OrderSettleDto {
  @ApiProperty()
  @IsString()
  instrumentId: string;

  @ApiProperty()
  @IsNumber()
  percentageToSettle: number;

  @ApiProperty()
  @IsOptional()
  @IsString()
  orderId: string;
}

results matching ""

    No results matching ""