mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-09 06:00:12 +02:00
22 lines
441 B
TypeScript
22 lines
441 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsNumber, IsPositive, IsString } from 'class-validator';
|
|
export class OfferDto {
|
|
@ApiProperty({
|
|
type: String,
|
|
description: 'Cryptocurrency UUID',
|
|
example: '12121-DSZD-E221212-2121221',
|
|
})
|
|
@IsString()
|
|
id_crypto: string;
|
|
|
|
@ApiProperty({
|
|
type: 'number',
|
|
|
|
description: 'Amount traded ',
|
|
example: 21,
|
|
})
|
|
@IsNumber()
|
|
@IsPositive()
|
|
amount: number;
|
|
}
|