mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
							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