Browse Source

filter list of orders only for relevant orders

pull/260/head
Valentin Zickner 4 years ago
parent
commit
47ba3d724a
  1. 4
      apps/api/src/app/portfolio/portfolio.service.ts

4
apps/api/src/app/portfolio/portfolio.service.ts

@ -258,7 +258,9 @@ export class PortfolioService {
): Promise<PortfolioPositionDetail> {
const userId = await this.getUserId(aImpersonationId);
const orders = await this.getOrders(userId);
const orders = (await this.getOrders(userId)).filter(
(order) => order.symbol === aSymbol
);
if (orders.length <= 0) {
return {

Loading…
Cancel
Save