`activities.${index}.symbol ("${symbol}") is not valid for the specified data source ("${dataSource}")`
);
}
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.currency!==currency){
thrownewError(
`activities.${index}.currency ("${currency}") does not match with currency of ${assetProfile.symbol} ("${assetProfile.currency}")`