Refactoring

pull/239/head
Thomas 3 years ago
parent 47d71405e1
commit a90c314e30

@ -1,6 +1,6 @@
import { GetValueObject } from '@ghostfolio/api/app/core/get-value-object.interface';
import { GetValueParams } from '@ghostfolio/api/app/core/get-value-params.interface';
import { GetValuesParams } from '@ghostfolio/api/app/core/get-values-params.interface';
import { GetValueObject } from '@ghostfolio/api/app/core/interfaces/get-value-object.interface';
import { GetValueParams } from '@ghostfolio/api/app/core/interfaces/get-value-params.interface';
import { GetValuesParams } from '@ghostfolio/api/app/core/interfaces/get-values-params.interface';
import { DataProviderService } from '@ghostfolio/api/services/data-provider.service';
import { ExchangeRateDataService } from '@ghostfolio/api/services/exchange-rate-data.service';
import { resetHours } from '@ghostfolio/common/helper';

@ -1,4 +1,4 @@
import { DateQuery } from '@ghostfolio/api/app/core/date-query.interface';
import { DateQuery } from '@ghostfolio/api/app/core/interfaces/date-query.interface';
import { Currency } from '@prisma/client';
export interface GetValuesParams {

@ -1,6 +1,6 @@
export type Accuracy = 'year' | 'month' | 'day';
export interface TimelineSpecification {
start: string;
accuracy: Accuracy;
start: string;
}

@ -1,4 +1,4 @@
import { TransactionPointSymbol } from '@ghostfolio/api/app/core/transaction-point-symbol';
import { TransactionPointSymbol } from '@ghostfolio/api/app/core/interfaces/transaction-point-symbol.interface';
export interface TransactionPoint {
date: string;

@ -2,7 +2,7 @@ import { PrismaService } from '@ghostfolio/api/services/prisma.service';
import { resetHours } from '@ghostfolio/common/helper';
import { Injectable } from '@nestjs/common';
import { MarketData } from '@prisma/client';
import { DateQuery } from './date-query.interface';
import { DateQuery } from './interfaces/date-query.interface';
@Injectable()
export class MarketDataService {

@ -1,11 +1,11 @@
import { CurrentRateService } from '@ghostfolio/api/app/core/current-rate.service';
import { GetValueParams } from '@ghostfolio/api/app/core/get-value-params.interface';
import { GetValuesParams } from '@ghostfolio/api/app/core/get-values-params.interface';
import { GetValueParams } from '@ghostfolio/api/app/core/interfaces/get-value-params.interface';
import { GetValuesParams } from '@ghostfolio/api/app/core/interfaces/get-values-params.interface';
import { PortfolioCalculator } from '@ghostfolio/api/app/core/portfolio-calculator';
import { PortfolioOrder } from '@ghostfolio/api/app/core/portfolio-order';
import { TimelinePeriod } from '@ghostfolio/api/app/core/timeline-period';
import { TimelineSpecification } from '@ghostfolio/api/app/core/timeline-specification';
import { TransactionPoint } from '@ghostfolio/api/app/core/transaction-point';
import { PortfolioOrder } from '@ghostfolio/api/app/core/interfaces/portfolio-order.interface';
import { TimelinePeriod } from '@ghostfolio/api/app/core/interfaces/timeline-period.interface';
import { TimelineSpecification } from '@ghostfolio/api/app/core/interfaces/timeline-specification.interface';
import { TransactionPoint } from '@ghostfolio/api/app/core/interfaces/transaction-point.interface';
import { OrderType } from '@ghostfolio/api/models/order-type';
import { resetHours } from '@ghostfolio/common/helper';
import { Currency } from '@prisma/client';

@ -1,13 +1,13 @@
import { CurrentRateService } from '@ghostfolio/api/app/core/current-rate.service';
import { GetValueObject } from '@ghostfolio/api/app/core/get-value-object.interface';
import { PortfolioOrder } from '@ghostfolio/api/app/core/portfolio-order';
import { TimelinePeriod } from '@ghostfolio/api/app/core/timeline-period';
import { GetValueObject } from '@ghostfolio/api/app/core/interfaces/get-value-object.interface';
import { PortfolioOrder } from '@ghostfolio/api/app/core/interfaces/portfolio-order.interface';
import { TimelinePeriod } from '@ghostfolio/api/app/core/interfaces/timeline-period.interface';
import {
Accuracy,
TimelineSpecification
} from '@ghostfolio/api/app/core/timeline-specification';
import { TransactionPoint } from '@ghostfolio/api/app/core/transaction-point';
import { TransactionPointSymbol } from '@ghostfolio/api/app/core/transaction-point-symbol';
} from '@ghostfolio/api/app/core/interfaces/timeline-specification.interface';
import { TransactionPoint } from '@ghostfolio/api/app/core/interfaces/transaction-point.interface';
import { TransactionPointSymbol } from '@ghostfolio/api/app/core/interfaces/transaction-point-symbol.interface';
import { OrderType } from '@ghostfolio/api/models/order-type';
import { DATE_FORMAT, parseDate, resetHours } from '@ghostfolio/common/helper';
import { TimelinePosition } from '@ghostfolio/common/interfaces';

@ -1,8 +1,8 @@
import { AccountService } from '@ghostfolio/api/app/account/account.service';
import { CurrentRateService } from '@ghostfolio/api/app/core/current-rate.service';
import { PortfolioCalculator } from '@ghostfolio/api/app/core/portfolio-calculator';
import { PortfolioOrder } from '@ghostfolio/api/app/core/portfolio-order';
import { TimelineSpecification } from '@ghostfolio/api/app/core/timeline-specification';
import { PortfolioOrder } from '@ghostfolio/api/app/core/interfaces/portfolio-order.interface';
import { TimelineSpecification } from '@ghostfolio/api/app/core/interfaces/timeline-specification.interface';
import { OrderService } from '@ghostfolio/api/app/order/order.service';
import { RedisCacheService } from '@ghostfolio/api/app/redis-cache/redis-cache.service';
import { UserService } from '@ghostfolio/api/app/user/user.service';

Loading…
Cancel
Save