Skip to content

Commit

Permalink
Set unitprice to 1 for dividend
Browse files Browse the repository at this point in the history
  • Loading branch information
dickwolff committed Jan 19, 2025
1 parent 9f3108a commit 8279931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converters/cointrackingConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class CointrackingConverter extends AbstractConverter {
fee: fee,
quantity: quantity,
type: GhostfolioOrderType[action],
unitPrice: unitPrice,
unitPrice: action === "dividend" ? 1 : unitPrice,
currency: security.currency,
dataSource: "YAHOO",
date: dayjs(record.date).format("YYYY-MM-DDTHH:mm:ssZ"),
Expand Down

0 comments on commit 8279931

Please sign in to comment.