12.3. Recording and Updating Currency Exchange Rates

GnuCash allows you to update the Currency Exchange Rates both manually and automatically. This process is essentially the same as setting share prices for investments (see Sezione 9.6, «Impostare il prezzo delle quote»). In the following two sections we will work through both methods.

Prima di iniziare, è bene dare uno sguardo alla struttura dei conti

Impostazione iniziale di un conto bancario con valute multiple

Initial set up of 3 bank accounts with different currencies.

As you see, the overall balances do not yet reflect any value for EUR or HKD holdings. Adding currency exchange rates will fix this.

12.3.1. Aggiornare manualmente i tassi di cambio

Aprire leditor prezzi andando in StrumentiEditor prezzi.

Finestra delleditor prezzi

Finestra delleditor prezzi.

Click on the Add button to add a new currency exchange rate. A window will appear in which you can set up a new exchange rate. This window should appear like this:

Set up Euro Exchange Rate

Finestra delleditor prezzi

Set the Namespace to Currency and the Security to EUR (Euro). Then set the exchange rate between the selected security and the selected currency. The price box defines how many units of currency are required to purchase one unit of the security. In this case, how many dollars it will take to purchase on Euro. In this example, you will set the exchange rate to 1 EUR for 1 USD.

Finestra delleditor prezzi

La Finestra delleditor prezzi dopo aver impostato il tasso di cambio tra Euro e dollaro USA

Struttura dei conti

Struttura dei conti dopo aver impostato il tasso di cambio tra Euro e dollaro USA.

Si osservi che poiché non è stato impostato il tasso di cambio per HKD, non converte lHKD in EUR. Questo verrà aggiunto nella sezione successiva.

12.3.2. Aggiornare automaticamente i tassi di cambio

In the previous section you saw how to manually define a new currency exchange rate, but GnuCash includes an automatic price update feature, which will now be described.

Aprire leditor prezzi andando in StrumentiEditor prezzi.

Finestra delleditor prezzi

Finestra delleditor prezzi prima di ottenere le quotazioni online.

Premere il pulsante Ricevi quotazioni per caricare automaticamente i vari tassi di cambio di cui si ha bisogno.

Nota

Se il pulsante Ricevi quotazioni è disabilitato, significa che il modulo di Perl Finance::Quote non è installato. Per informazioni su come installarlo, consultare Sezione 9.6.3, «Configurazione per la ricezione automatica delle quotazioni»

Finestra delleditor prezzi

Finestra delleditor prezzi dopo aver ottenuto le quotazioni online.

GnuCash downloads exchange rates for all currencies that are in use in your various accounts. This will happen every time you click on Get Quotes or request GnuCash to download quotes as per Sezione 9.6.3, «Configurazione per la ricezione automatica delle quotazioni»

Now when you check the main Chart of Accounts you will see that GnuCash has automatically converted the HKD amount to USD amount on the parent accounts that are in USD, as well as on the Total (USD) column. Also the Euro accounts have been been updated with the latest exchange rate.

Finestra delleditor prezzi

Struttura dei conti dopo aver ottenuto le quotazioni online.

12.3.3. Come disabilitare il recupero della valuta

Ogni volta che si crea un conto che utilizza una valuta diversa da quella predefinita, verrà automaticamente abilitata la ricezione delle quotazioni online per quella stessa valuta. Comunque, se in seguito il conto viene cancellato, non disabiliterà automaticamente la ricezione delle quotazioni.

Quando sarà stato cancellato anche lultimo conto con una particolare valuta e non si vorrà ricevere più gli aggiornamenti sulla valuta, procedere nel seguente modo:

  • aprire la finestra dei titoli selezionando StrumentiEditor titoli.

  • assicurarsi che sia attivata lopzione visualizza le valute Nazionali;

  • espandere la riga denominata CURRENCY;

  • fare doppio clic sulla valuta per cui si desidera disabilitare la ricezione delle quotazioni;

  • Deselect the Get Online Quotes box and click OK.