@ -1,6 +1,7 @@
import { Transform, TransformFnParams } from 'class-transformer';
import {
IsBoolean,
IsISO4217CurrencyCode,
IsNumber,
IsOptional,
IsString,
@ -19,7 +20,7 @@ export class CreateAccountDto {
)
comment?: string;
@IsString()
@IsISO4217CurrencyCode()
currency: string;
@IsOptional()
@ -19,7 +20,7 @@ export class UpdateAccountDto {
@ -2,6 +2,7 @@ import { AssetClass, AssetSubClass, Prisma } from '@prisma/client';
IsArray,
IsEnum,
IsObject,
IsString
@ -24,7 +25,7 @@ export class UpdateAssetProfileDto {
countries?: Prisma.InputJsonArray;
currency?: string;
@ -10,6 +10,7 @@ import {
IsISO8601,
@ -38,7 +39,7 @@ export class CreateOrderDto {
@ -9,6 +9,7 @@ import { Transform, TransformFnParams } from 'class-transformer';
@ -37,7 +38,7 @@ export class UpdateOrderDto {
@ -7,6 +7,7 @@ import type {
IsIn,
@ -19,8 +20,8 @@ export class UpdateUserSettingDto {
annualInterestRate?: number;
baseCurrency?: string;