`activities.${index}.symbol ("${symbol}") is not valid for the specified data source ("${dataSource}")`
);
}
constassetProfile=(
awaitthis.dataProviderService.getAssetProfiles([
{dataSource,symbol}
])
)?.[symbol];
if(
assetProfile.currency!==currency&&
!this.exchangeRateDataService.hasCurrencyPair(
currency,
assetProfile.currency
)
){
thrownewError(
`activities.${index}.currency ("${currency}") does not match with "${assetProfile.currency}" and no exchange rate is available from "${currency}" to "${assetProfile.currency}"`
);
}
if(!assetProfile?.name){
thrownewError(
`activities.${index}.symbol ("${symbol}") is not valid for the specified data source ("${dataSource}")`
`activities.${index}.currency ("${currency}") does not match with "${assetProfile.currency}" and no exchange rate is available from "${currency}" to "${assetProfile.currency}"`