[GNC] finance quote - % not recognised as a currency.

Public Address public.address at hotmail.co.uk
Sat Nov 8 09:47:00 EST 2025


Hi I am trying to use the price database to get quotes for UK Gilts (UK Treasuries).  They are bonds and are expressed in %.

I have found some sources of quotes but the currency is "%"

C:\Program Files (x86)\gnucash\bin>gnucash-cli -V --quotes dump aex GB00BPCJD997
GB00BPCJD997:
    currency => %
        last => 77.97
        high => 77.97
        date => 11/07/2025
     isodate => 2025-11-07
        isin => GB00BPCJD997
        open => 77.90
         low => 77.90
      volume => 29000
     success => 1
        name => UNITED KINGDOM FX 3.75% OCT53 GBP

GNU cash then comes back with an error: returned a quote with a currency GNUCash doesn't know about.

[cid:f1fa3586-5f51-4ad7-98f5-7852baf17b66]

yahoo_json gives one gilt as currency = GBP which is fine but yahoo has very limited coverage.  Can gnucash be updated to recognise & as a "currency" please?

C:\Program Files (x86)\gnucash\bin>gnucash-cli -V --quotes dump yahoo_json GB00BPCJD997.sg
GB00BPCJD997.sg:
      volume => 0
    currency => GBP
         low => 78.95
        name => GB00BPCJD997.sg ()
      symbol => GB00BPCJD997.sg
     isodate => 2025-10-29
     success => 1
        high => 79.14
        type => EQUITY
          pe => null
        open => 78.96
    exchange => Stuttgart
  year_range =>        78.95 - 79.14
      method => yahoo_json
       close => 78.9
        last => 79.067
        date => 10/29/2025
         eps => null
   div_yield => 0

Thanks


Chi-pa

Version: 5.12
Build ID: 5.12+(2025-06-28)
Finance::Quote: 1.61
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 12282 bytes
Desc: image.png
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20251108/18ad45e3/attachment-0001.png>


More information about the gnucash-user mailing list