Merge branch 'maint' into unstable

This commit is contained in:
fell 2018-03-10 11:06:59 +01:00
commit fdfa6f528c
15 changed files with 531 additions and 509 deletions

View File

@ -134,8 +134,8 @@ gnc\-fq\-dump \- Print out data from the F::Q module
.SH "SYNOPSIS" .SH "SYNOPSIS"
.IX Header "SYNOPSIS" .IX Header "SYNOPSIS"
.Vb 5 .Vb 5
\& gnc\-fq\-dump yahoo CSCO JNPR \& gnc\-fq\-dump alphavantage CSCO JNPR
\& gnc\-fq\-dump yahoo BAESY.PK \& gnc\-fq\-dump alphavantage BAESY.PK
\& gnc\-fq\-dump europe 48406.PA 13000.PA \& gnc\-fq\-dump europe 48406.PA 13000.PA
\& gnc\-fq\-dump vwd 632034 \& gnc\-fq\-dump vwd 632034
\& gnc\-fq\-dump ftportfolios FKYGTX \& gnc\-fq\-dump ftportfolios FKYGTX

View File

@ -418,7 +418,7 @@ gnc_tree_view_commodity_new (QofBook *book,
col = gnc_tree_view_add_text_column ( col = gnc_tree_view_add_text_column (
/* Translators: Again replace CUSIP by the name of your /* Translators: Again replace CUSIP by the name of your
National Securities Identifying Number. */ National Securities Identifying Number. */
view, _("ISIN/CUSIP"), "cusip_code", NULL, "QWERTYUIOP", view, _("ISIN/CUSIP"), "cusip_code", NULL, "US1234567890",
GNC_TREE_MODEL_COMMODITY_COL_CUSIP, GNC_TREE_MODEL_COMMODITY_COL_CUSIP,
GNC_TREE_MODEL_COMMODITY_COL_VISIBILITY, GNC_TREE_MODEL_COMMODITY_COL_VISIBILITY,
sort_by_commodity_string); sort_by_commodity_string);

View File

@ -118,7 +118,7 @@ fetch stock price data off the Internet and insert it into the GnuCash
Engine. This module requires the functionality of the Finance::Quote Engine. This module requires the functionality of the Finance::Quote
module available from CPAN. The Finance::Quote module can fetch module available from CPAN. The Finance::Quote module can fetch
price quotes from many different sources including Alphavantage price quotes from many different sources including Alphavantage
and several international exchanges. and several international exchanges and fund companies.
The Finance::Quote module also supports fetching currency exchange The Finance::Quote module also supports fetching currency exchange
rates. GnuCash will be extended to allow the fetching and use of rates. GnuCash will be extended to allow the fetching and use of

View File

@ -150,20 +150,23 @@ struct gnc_quote_source_s
gboolean supported; gboolean supported;
QuoteSourceType type; QuoteSourceType type;
gint index; gint index;
char *user_name; /* User friendly name */ char *user_name; /* User friendly name incl. region code*/
char *old_internal_name; /* Name used internally (deprecated) */ char *old_internal_name; /* Name used internally (deprecated) */
char *internal_name; /* Name used internally and by finance::quote. */ char *internal_name; /* Name used internally and by finance::quote. */
}; };
/* To update the following lists search the FQ modules for their 'method's
* because most of them have more than one.
*/
static gnc_quote_source currency_quote_source = static gnc_quote_source currency_quote_source =
{ TRUE, 0, 0, "Currency", "CURRENCY", "currency" }; { TRUE, 0, 0, "Currency", "CURRENCY", "currency" };
static gnc_quote_source single_quote_sources[] = static gnc_quote_source single_quote_sources[] =
{ {
{ FALSE, 0, 0, "Alphavantage USA", "ALPHAVANTAGE", "alphavantage" }, { FALSE, 0, 0, "Alphavantage, US", "ALPHAVANTAGE", "alphavantage" },
{ FALSE, 0, 0, "Amsterdam Euronext eXchange, NL", "AEX", "aex" }, { FALSE, 0, 0, "Amsterdam Euronext eXchange, NL", "AEX", "aex" },
{ FALSE, 0, 0, "American International Assurance, HK", "AIAHK", "aiahk" }, { FALSE, 0, 0, "American International Assurance, HK", "AIAHK", "aiahk" },
{ FALSE, 0, 0, "Association of Mutual Funds in India", "AMFIINDIA", "amfiindia" }, { FALSE, 0, 0, "Association of Mutual Funds in India", "AMFIINDIA", "amfiindia" },
{ FALSE, 0, 0, "Athens Stock Exchange, GR", "ASEGR", "asegr" }, { FALSE, 0, 0, "Athens Stock Exchange, GR", "ASEGR", "asegr" },
{ FALSE, 0, 0, "Australian Stock Exchange, AU", "ASX", "asx" }, { FALSE, 0, 0, "Australian Stock Exchange, AU", "ASX", "asx" },
{ FALSE, 0, 0, "BAMOSZ funds, HU", "BAMOSZ", "bamosz" }, { FALSE, 0, 0, "BAMOSZ funds, HU", "BAMOSZ", "bamosz" },
@ -178,8 +181,8 @@ static gnc_quote_source single_quote_sources[] =
{ FALSE, 0, 0, "Dutch", "DUTCH", "dutch" }, { FALSE, 0, 0, "Dutch", "DUTCH", "dutch" },
{ FALSE, 0, 0, "DWS, DE", "DWS", "dwsfunds" }, { FALSE, 0, 0, "DWS, DE", "DWS", "dwsfunds" },
{ FALSE, 0, 0, "Equinox Unit Trusts, ZA", "ZA_unittrusts", "za_unittrusts" }, { FALSE, 0, 0, "Equinox Unit Trusts, ZA", "ZA_unittrusts", "za_unittrusts" },
{ FALSE, 0, 0, "Fidelity", "FIDELITY", "fidelity" },
{ FALSE, 0, 0, "Fidelity Direct", "FIDELITY_DIRECT", "fidelity_direct" }, { FALSE, 0, 0, "Fidelity Direct", "FIDELITY_DIRECT", "fidelity_direct" },
{ FALSE, 0, 0, "Fidelity Fixed", "FIDELITY_DIRECT", "fidelityfixed" },
{ FALSE, 0, 0, "Finance Canada", "FINANCECANADA", "financecanada" }, { FALSE, 0, 0, "Finance Canada", "FINANCECANADA", "financecanada" },
{ FALSE, 0, 0, "Financial Times Funds service, GB", "FTFUNDS", "ftfunds" }, { FALSE, 0, 0, "Financial Times Funds service, GB", "FTFUNDS", "ftfunds" },
{ FALSE, 0, 0, "Finanzpartner, DE", "FINANZPARTNER", "finanzpartner" }, { FALSE, 0, 0, "Finanzpartner, DE", "FINANZPARTNER", "finanzpartner" },
@ -205,7 +208,7 @@ static gnc_quote_source single_quote_sources[] =
{ FALSE, 0, 0, "Skandinaviska Enskilda Banken, SE", "SEB_FUNDS", "seb_funds" }, { FALSE, 0, 0, "Skandinaviska Enskilda Banken, SE", "SEB_FUNDS", "seb_funds" },
{ FALSE, 0, 0, "Sharenet, ZA", "ZA", "za" }, { FALSE, 0, 0, "Sharenet, ZA", "ZA", "za" },
{ FALSE, 0, 0, "StockHouse Canada", "STOCKHOUSE_FUND", "stockhousecanada_fund" }, { FALSE, 0, 0, "StockHouse Canada", "STOCKHOUSE_FUND", "stockhousecanada_fund" },
{ FALSE, 0, 0, "TD Waterhouse Canada", "TDWATERHOUSE", "tdwaterhouse" }, { FALSE, 0, 0, "TD Waterhouse Funds, CA", "TDWATERHOUSE", "tdwaterhouse" },
{ FALSE, 0, 0, "TD Efunds, CA", "TDEFUNDS", "tdefunds" }, { FALSE, 0, 0, "TD Efunds, CA", "TDEFUNDS", "tdefunds" },
{ FALSE, 0, 0, "TIAA-CREF, US", "TIAACREF", "tiaacref" }, { FALSE, 0, 0, "TIAA-CREF, US", "TIAACREF", "tiaacref" },
{ FALSE, 0, 0, "Toronto Stock eXchange, CA", "TSX", "tsx" }, { FALSE, 0, 0, "Toronto Stock eXchange, CA", "TSX", "tsx" },
@ -217,15 +220,34 @@ static gnc_quote_source single_quote_sources[] =
{ FALSE, 0, 0, "Union Investment, DE", "UNIONFUNDS", "unionfunds" }, { FALSE, 0, 0, "Union Investment, DE", "UNIONFUNDS", "unionfunds" },
{ FALSE, 0, 0, "US Treasury Bonds", "usfedbonds", "usfedbonds" }, { FALSE, 0, 0, "US Treasury Bonds", "usfedbonds", "usfedbonds" },
{ FALSE, 0, 0, "US Govt. Thrift Savings Plan", "TSP", "tsp" }, { FALSE, 0, 0, "US Govt. Thrift Savings Plan", "TSP", "tsp" },
{ FALSE, 0, 0, "Vanguard", "VANGUARD", "vanguard" }, /* No module seen in F::Q 1.17. */ { FALSE, 0, 0, "Vanguard", "VANGUARD", "vanguard" }, /* Method of Alphavantage */
{ FALSE, 0, 0, "VWD, DE (unmaintained)", "VWD", "vwd" }, { FALSE, 0, 0, "VWD, DE (unmaintained)", "VWD", "vwd" },
{ FALSE, 0, 0, "Yahoo as JSON", "YAHOO_JSON", "yahoo_json" }, { FALSE, 0, 0, "Yahoo as JSON", "YAHOO_JSON", "yahoo_json" },
{ FALSE, 0, 0, "Yahoo as YQL", "YAHOO_YQL", "yahoo_yql" },
}; };
static gnc_quote_source multiple_quote_sources[] = static gnc_quote_source multiple_quote_sources[] =
{ {
{ FALSE, 0, 0, "Europe (Athens, Boursorama, Bucharest)", "EUROPE", "europe" }, { FALSE, 0, 0, "Australia (ASX, ...)", "AUSTRALIA", "australia" },
{ FALSE, 0, 0, "France (Boursorama, LeRevenue)", "FRANCE", "france" }, { FALSE, 0, 0, "Canada (Alphavantage, TSX, ...)", "CANADA", "canada" },
{ FALSE, 0, 0, "Canada Mutual (Fund Library, StockHouse, ...)", "CANADAMUTUAL", "canadamutual" },
{ FALSE, 0, 0, "Dutch (AEX, ...)", "DUTCH", "dutch" },
{ FALSE, 0, 0, "Europe (asegr,.bsero, hex ...)", "EUROPE", "europe" },
{ FALSE, 0, 0, "Greece (ASE, ...)", "GREECE", "greece" },
{ FALSE, 0, 0, "Hungary (Bamosz, BET, ...)", "HU", "hu" },
{ FALSE, 0, 0, "India Mutual (AMFI, ...)", "INDIAMUTUAL", "indiamutual" },
{ FALSE, 0, 0, "Fidelity (Fidelity, ...)", "FIDELITY", "fidelity" },
{ FALSE, 0, 0, "Finland (HEX, ...)", "FINLAND", "finland" },
{ FALSE, 0, 0, "First Trust (First Trust, ...)", "FTPORTFOLIOS", "ftportfolios" },
{ FALSE, 0, 0, "France (bourso, ĺerevenu, ...)", "FRANCE", "france" },
{ FALSE, 0, 0, "Nasdaq (alphavantage, fool, ...)", "NASDAQ", "nasdaq" },
{ FALSE, 0, 0, "New Zealand (NZX, ...)", "NZ", "nz" },
{ FALSE, 0, 0, "NYSE (alphavantage, fool, ...)", "NYSE", "nyse" },
{ FALSE, 0, 0, "South Africa (Sharenet, ...)", "ZA", "za" },
{ FALSE, 0, 0, "Romania (BSE-RO, ...)", "romania", "romania" },
{ FALSE, 0, 0, "T. Rowe Price", "TRPRICE", "troweprice" },
{ FALSE, 0, 0, "U.K. Funds (citywire, FTfunds, MStar, tnetuk, ...)", "ukfunds", "ukfunds" }, { FALSE, 0, 0, "U.K. Funds (citywire, FTfunds, MStar, tnetuk, ...)", "ukfunds", "ukfunds" },
{ FALSE, 0, 0, "U.K. Unit Trusts (trustnet, ...)", "UKUNITTRUSTS", "uk_unit_trusts" },
{ FALSE, 0, 0, "USA (Alphavantage, Fool, ...)", "USA", "usa" },
}; };
static const int num_single_quote_sources = static const int num_single_quote_sources =