You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
352 B

import { IsAfter1970Constraint } from '@ghostfolio/common/validator-constraints/is-after-1970';
import { IsISO8601, IsNumber, Min, Validate } from 'class-validator';
export class MarketDataDto {
@IsISO8601({ strict: true, strictSeparator: true })
@Validate(IsAfter1970Constraint)
date: string;
@IsNumber()
@Min(0)
marketPrice: number;
}