mirror of https://github.com/ghostfolio/ghostfolio
5 changed files with 23 additions and 4 deletions
@ -0,0 +1,10 @@ |
|||||
|
import { CreateAccountDto } from '@ghostfolio/api/app/account/create-account.dto'; |
||||
|
import { AccountBalance } from '@ghostfolio/common/interfaces'; |
||||
|
|
||||
|
import { IsArray, IsOptional } from 'class-validator'; |
||||
|
|
||||
|
export class CreateAccountWithBalancesDto extends CreateAccountDto { |
||||
|
@IsArray() |
||||
|
@IsOptional() |
||||
|
balances?: AccountBalance; |
||||
|
} |
@ -0,0 +1,4 @@ |
|||||
|
export interface AccountBalance { |
||||
|
date: string; |
||||
|
value: number; |
||||
|
} |
Loading…
Reference in new issue