我已遵循说明这里,使用确切的示例,在 GnuCash 中自动更新股票价格。当我单击时,price editor -> Get Quotes
它会返回警告Unable to retrieve quotes for these items: NS:HDIL.NS
(我也尝试了另一个)。
我gnc-fq-update
按照 GnuCash 邮件列表中的说明进行安装这里。当我按照 GnuCash wiki for CPAN 中的说明在终端中输入时,cpan -D Finance::Quote
终端返回
Going to read '/home/anthony/.cpan/Metadata'
Database was generated on Wed, 14 May 2014 02:06:11 GMT
Finance::Quote
-------------------------------------------------------------------------
(no description)
E/EC/ECOCODE/Finance-Quote-1.31.tar.gz
/usr/local/share/perl/5.14.2/Finance/Quote.pm
Installed: 1.31
CPAN: 1.31 up to date
Erik Colson (ECOCODE)
[email protected]
答案1
问题出在我试图检索的特定股票 HDIL.NS 上。打开终端并尝试 GNUcash CPAN wiki 中列出的一些命令这里表明我的安装没有问题。例如,在终端中使用 yahoo 查找亚马逊股价效果很好
$ gnc-fq-dump yahoo AMZN
Finance::Quote fields Gnucash uses:
symbol: AMZN <=== required
date: 05/19/2014 <=== required
currency: USD <=== required
last: 296.755 <=\
nav: <=== one of these
price: 296.755 <=/
timezone: <=== optional
一切都很好。但 HDIL.NS 也一样,找不到它(至少使用 yahoo 找不到)
$ gnc-fq-dump yahoo HDIL.NS
Finance::Quote fields Gnucash uses:
symbol: HDIL.NS <=== required
date: ** missing ** <=== required
currency: ** missing ** <=== required
last: 0.00 <=\
nav: <=== one of these
price: <=/
timezone: <=== optional
** This stock quote cannot be used by gnucash!!
使用 yahoo 的替代品可能会解决问题,该命令gnc-fq-check
显示 yahoo 的替代品(我没有费心去检查和寻找一个)
$ gnc-fq-check
("1.31" "cse" "india" "vwd" "yahoo_nz" "ukfunds" "australia" "amfiindia" "usfedbonds" "bitcoin_gbp" "canada" "yahoo" "bitcoin_aud" "adig" "bux" "bitcoin_eur" "aiahk" "mtgox_sek" "bsero" "mtgox_hkd" "bitcoin_pln" "yahoo_australia" "unionfunds" "lerevenu" "asia" "tsx" "sixfunds" "indiamutual" "bse" "bitcoin_nzd" "hungary" "mtgox_gbp" "known_currencies" "mtgox_chf" "tnetuk" "fidelity_direct" "goldmoney" "tdwaterhouse" "trustnet" "mtgox_thb" "ftportfolios_direct" "cominvest" "morningstar" "ftportfolios" "mtgox_usd" "ind" "tdefunds" "bitcoin_rub" "bitcoin_nok" "mstaruk" "hu" "za" "bitcoin_usd" "mtgox_eur" "fundlibrary" "stockhousecanada_fund" "mtgox_pln" "yahoo_europe" "mtgox_sgd" "platinum" "mtgox_nok" "bitcoin_hkd" "maninv" "tsp" "financecanada" "usa" "troweprice" "france" "nasdaq" "bmonesbittburns" "bitcoin_thb" "mtgox_cny" "yahoo_asia" "mtgox_cad" "troweprice_direct" "tiaacref" "seb_funds" "bitcoin_jpy" "bitcoin_cny" "mtgox_aud" "ftfunds" "yahoo_brasil" "greece" "fidelity" "mtgox_nzd" "fetch_live_currencies" "romania" "dwsfunds" "finland" "hex" "brasil" "asegr" "deka" "nyse" "canadamutual" "asx" "mtgox_jpy" "mtgox_rub" "yahoo_json" "finanzpartner" "za_unittrusts" "fool" "citywire" "bitcoin_sek" "bitcoin_sgd" "uk_unit_trusts" "dutch" "sixshares" "nzx" "bitcoin_cad" "bitcoin_dkk" "aex" "nz" "bitcoin_chf" "vanguard" "europe" "bourso" "morningstarjp" "mtgox_dkk")