New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use SIX module from GnuCash #380
Comments
The SIX.pm module has probably not been working for a long time. Not sure if this will get addressed or if the module will get dropped. Sorry. |
What else needs to be done? Adding the 3 lines from above the module works for me. Should I create a PR? Why drop a working module? |
Pre-release v1.60_01 pushed to CPAN. |
bpschuck
added a commit
that referenced
this issue
Apr 19, 2024
Add additional URL fetch to YahooJSON.pm Also fixes SIX.pm - #380
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Today I installed v1.60 and was trying to use the SIX module to get the current price of UBSG from GnuCash.
Output of gnucash-cli (translated from German):
adding the option --verbose shows that the call is indeed returning data. just not the fields GnuCash is expecting. I have no experience with perl but with the following modifications GnuCash was updating its price db using the module:
$info{$symbol, 'symbol'} = $metarow->[$metamap{ValorSymbol}];
$info{$symbol, 'last'} = $datarow->[$datamap{ClosingPrice}] if $datarow->[$datamap{ClosingPrice}];
the last issue I noted was the returned currency, e.g. USD instead of CHF, this was solved by replacing the line
$info{$symbol, 'currency'} = $metarow->[$metamap{NominalCurrency}];
with
$info{$symbol, 'currency'} = $metarow->[$metamap{TradingBaseCurrency}];
To investigate the valorid was returned as well (line 62):
$info{$symbol, 'valor'} = $valorid;
With these modifications all the shares and ETFs I am interested in return the expected quotes. - Thanks for all the work creating and maintaining Finance-Quote!
The text was updated successfully, but these errors were encountered: