mirror of https://github.com/ghostfolio/ghostfolio
Thomas Kaul
2 months ago
committed by
GitHub
9 changed files with 201 additions and 4 deletions
@ -0,0 +1,15 @@ |
|||
import { Granularity } from '@ghostfolio/common/types'; |
|||
|
|||
import { IsIn, IsISO8601, IsOptional } from 'class-validator'; |
|||
|
|||
export class GetDividendsDto { |
|||
@IsISO8601() |
|||
from: string; |
|||
|
|||
@IsIn(['day', 'month'] as Granularity[]) |
|||
@IsOptional() |
|||
granularity: Granularity; |
|||
|
|||
@IsISO8601() |
|||
to: string; |
|||
} |
@ -0,0 +1,7 @@ |
|||
import { IDataProviderHistoricalResponse } from '@ghostfolio/api/services/interfaces/interfaces'; |
|||
|
|||
export interface DividendsResponse { |
|||
dividends: { |
|||
[date: string]: IDataProviderHistoricalResponse; |
|||
}; |
|||
} |
Loading…
Reference in new issue