|
|
|
@ -9,7 +9,6 @@ import { PropertyService } from '@ghostfolio/api/services/property/property.serv |
|
|
|
import { |
|
|
|
DEFAULT_CURRENCY, |
|
|
|
DERIVED_CURRENCIES, |
|
|
|
ghostfolioPrefix, |
|
|
|
PROPERTY_API_KEY_GHOSTFOLIO, |
|
|
|
PROPERTY_DATA_SOURCE_MAPPING |
|
|
|
} from '@ghostfolio/common/config'; |
|
|
|
@ -22,7 +21,6 @@ import { |
|
|
|
getStartOfUtcDate, |
|
|
|
isCurrency, |
|
|
|
isDerivedCurrency, |
|
|
|
isValidCustomAssetProfileSymbol, |
|
|
|
isValidSearchQuery |
|
|
|
} from '@ghostfolio/common/helper'; |
|
|
|
import { |
|
|
|
@ -268,15 +266,6 @@ export class DataProviderService implements OnModuleInit { |
|
|
|
}); |
|
|
|
|
|
|
|
if (!assetProfiles[assetProfileIdentifier]) { |
|
|
|
if ( |
|
|
|
dataSource === DataSource.MANUAL && |
|
|
|
!isValidCustomAssetProfileSymbol(symbol) |
|
|
|
) { |
|
|
|
throw new Error( |
|
|
|
`${activityPath}.symbol ("${symbol}") must be a UUID or start with the prefix "${ghostfolioPrefix}_" for the data source ("${DataSource.MANUAL}")` |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
if ( |
|
|
|
(dataSource === DataSource.MANUAL && type === 'BUY') || |
|
|
|
['FEE', 'INTEREST', 'LIABILITY'].includes(type) |
|
|
|
|