mirror of https://github.com/ghostfolio/ghostfolio
5 changed files with 51 additions and 23 deletions
@ -1,10 +1,11 @@ |
|||
import { AccountBalanceService } from '@ghostfolio/api/services/account-balance/account-balance.service'; |
|||
import { ExchangeRateDataModule } from '@ghostfolio/api/services/exchange-rate-data/exchange-rate-data.module'; |
|||
import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; |
|||
import { Module } from '@nestjs/common'; |
|||
|
|||
@Module({ |
|||
exports: [AccountBalanceService], |
|||
imports: [PrismaModule], |
|||
imports: [ExchangeRateDataModule, PrismaModule], |
|||
providers: [AccountBalanceService] |
|||
}) |
|||
export class AccountBalanceModule {} |
|||
|
@ -1,5 +1,7 @@ |
|||
import { AccountBalance } from '@prisma/client'; |
|||
|
|||
export interface AccountBalancesResponse { |
|||
balances: Pick<AccountBalance, 'date' | 'id' | 'value'>[]; |
|||
balances: (Pick<AccountBalance, 'date' | 'id' | 'value'> & { |
|||
valueInBaseCurrency: number; |
|||
})[]; |
|||
} |
|||
|
Loading…
Reference in new issue