Interest in the denomination of the security

Can anyone think of a good way of entering an interest amount as the security (as opposed to getting fiat interest)

I have a “gold account” with a bank, that pays interest on gold. The gold held in account is 1000/1000 and I’ve created an instrument for this called A02 and bulk import historical quotes something like once a month.

The unit prices are “per gram of gold” so if I’m holding “1000 units” here, it means I got 1000 grams of gold. I could not find a way to enter an interest (or dividend) per unit. lets say at the end of the month I want to add 1gr of gold as interest (or dividend)

The only alternative I’ve come up with is: “pay interest at the fiat equivalent of the gold paid, and create a faux buy transaction in the gold account” this approach messes up all gain calculations.

anyone has any other ideas?

This is the only feasible way within PP.