Skip to content

Commit

Permalink
Whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dickwolff authored Jul 9, 2024
1 parent 45a9f37 commit 8b1ef2c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/converters/investimentalConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import customParseFormat from "dayjs/plugin/customParseFormat";
import { GhostfolioOrderType } from "../models/ghostfolioOrderType";
import { GhostfolioActivity } from "../models/ghostfolioActivity";


export class InvestimentalConverter extends AbstractConverter {

constructor(securityService: SecurityService) {
Expand Down Expand Up @@ -160,11 +159,11 @@ export class InvestimentalConverter extends AbstractConverter {
let newlyExecutedVolume = remainingVolume - record.volume;
if (record.status === "Inactive") {
newlyExecutedVolume = record.volume;
}
}
executedVolume += newlyExecutedVolume;
totalValue += newlyExecutedVolume * (record.price || lastPrice);

totalValue += newlyExecutedVolume * (record.price || lastPrice);
}

lastFee = record.fee || lastFee;
lastPrice = record.price || lastPrice;
remainingVolume = record.volume;
Expand Down Expand Up @@ -207,6 +206,4 @@ export class InvestimentalConverter extends AbstractConverter {
const match = accountName.match(/\[(\w+)\]/);
return match ? match[1] : null;
}


}
}

0 comments on commit 8b1ef2c

Please sign in to comment.