|
@ -28,6 +28,13 @@ export class RakutenRapidApiService implements DataProviderInterface { |
|
|
private readonly configurationService: ConfigurationService |
|
|
private readonly configurationService: ConfigurationService |
|
|
) {} |
|
|
) {} |
|
|
|
|
|
|
|
|
|
|
|
public canHandle(symbol: string) { |
|
|
|
|
|
return ( |
|
|
|
|
|
isRakutenRapidApiSymbol(symbol) && |
|
|
|
|
|
this.configurationService.get('RAKUTEN_RAPID_API_KEY') |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public async get( |
|
|
public async get( |
|
|
aSymbols: string[] |
|
|
aSymbols: string[] |
|
|
): Promise<{ [symbol: string]: IDataProviderResponse }> { |
|
|
): Promise<{ [symbol: string]: IDataProviderResponse }> { |
|
@ -58,13 +65,6 @@ export class RakutenRapidApiService implements DataProviderInterface { |
|
|
return {}; |
|
|
return {}; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public hasHistoricalData(symbol: string) { |
|
|
|
|
|
return ( |
|
|
|
|
|
isRakutenRapidApiSymbol(symbol) && |
|
|
|
|
|
this.configurationService.get('RAKUTEN_RAPID_API_KEY') |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public async getHistorical( |
|
|
public async getHistorical( |
|
|
aSymbols: string[], |
|
|
aSymbols: string[], |
|
|
aGranularity: Granularity = 'day', |
|
|
aGranularity: Granularity = 'day', |
|
|