mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* Import historical data for an asset * Update changelog --------- Co-authored-by: Thomas <4159106+dtslvr@users.noreply.github.com>pull/2488/head
Kevin
1 year ago
committed by
GitHub
9 changed files with 136 additions and 3 deletions
@ -0,0 +1,11 @@ |
|||
import { Type } from 'class-transformer'; |
|||
import { ArrayNotEmpty, IsArray, isNotEmptyObject } from 'class-validator'; |
|||
|
|||
import { UpdateMarketDataDto } from './update-market-data.dto'; |
|||
|
|||
export class UpdateBulkMarketDataDto { |
|||
@ArrayNotEmpty() |
|||
@IsArray() |
|||
@Type(() => UpdateMarketDataDto) |
|||
marketData: UpdateMarketDataDto[]; |
|||
} |
@ -1,6 +1,10 @@ |
|||
import { IsNumber } from 'class-validator'; |
|||
import { IsDate, IsNumber, IsOptional } from 'class-validator'; |
|||
|
|||
export class UpdateMarketDataDto { |
|||
@IsDate() |
|||
@IsOptional() |
|||
date?: Date; |
|||
|
|||
@IsNumber() |
|||
marketPrice: number; |
|||
} |
|||
|
Loading…
Reference in new issue