Feature/add support for dividends in Ghostfolio data provider (#4081)
* Add support for dividendspull/4086/head
parent
c6525ec0f4
commit
2067e8ea40
@ -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