[GNC] Feature request: Stock currency setting

John Ralls jralls at ceridwen.us
Sat Oct 27 11:47:38 EDT 2018



> On Oct 27, 2018, at 5:30 AM, rsbrux <rsbrux at yahoo.com> wrote:
> 
>>> 
> You can just move the account, but the transaction currency is immutable so you will have to delete and re-create the transaction.
> 
> As for adding a trading currency to the security editor, it’s possible but the code for creating transaction currency is kind of splattered around (register, transfer dialog, scheduled transactions, importers, maybe more) so getting it right would be a bit of work.
> <<
> 
> Thanks for the response.  To get the desired results, I found it necessary to delete the account I had created for transactions in that security and then recreate each of the transactions using the "orphaned" transactions as a model.  If currency is a property of a transaction, would it be easier to provide a way to change a transaction's currency than that of a security?  That would have at least made it possible for me to reuse the previously entered transactions, by changing their currency and assigning them to the new account.  It isn't even clear to me that currency *is* a security property.  In the price editor I found prices for the security in question in both CHF and USD.
> Thanks for your support!

The transaction currency is the one used to represent the value of each split (the split’s amount is in the split account’s currency). It’s the currency associated with the account in which you created the transaction. 

The security’s currency is, as I said earlier, that of the nearest currency-denominated ancestor account. If you use online quote retrieval it should match the currency in which the quotes are denominated to simplify calculating the value of the security in your home currency. The prices you found were probably from creating transactions on the security in the wrong currency: Securities exchanges operate in only one currency and securities that are listed on multiple exchanges have a different symbol for each (e.g. Royal Dutch Shell is listed on EuroNext and the LSE, trading as RDSA and RDSB respectively; there are American Depository Receipts traded on the NYSE as well with tickers RDS.A and RDS.B).

Regards,
John Ralls



More information about the gnucash-user mailing list