Skip to content

Commit 0c79632

Browse files
committed
Added support for CoinGecko demo API key
1 parent 7b52450 commit 0c79632

24 files changed

Lines changed: 226 additions & 61 deletions

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/Messages.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,7 @@ public class Messages extends NLS
11891189
public static String PrefCreateBackupBeforeSaving;
11901190
public static String PrefDescriptionAlphaVantage;
11911191
public static String PrefDescriptionCoingecko;
1192+
public static String PrefDescriptionCoinGeckoDemoAPIKey;
11921193
public static String PrefDescriptionDivvyDiary;
11931194
public static String PrefDescriptionEODHistoricalData;
11941195
public static String PrefDescriptionFinnhub;
@@ -1233,6 +1234,7 @@ public class Messages extends NLS
12331234
public static String PrefTitleAPIKeys;
12341235
public static String PrefTitleBackup;
12351236
public static String PrefTitleCalendar;
1237+
public static String PrefTitleDemoAPIKey;
12361238
public static String PrefTitleDivvyDiary;
12371239
public static String PrefTitleEODHistoricalData;
12381240
public static String PrefTitleFinnhub;

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/UIConstants.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ interface Preferences // NOSONAR
212212

213213
String COINGECKO_API_KEY = "COINGECKO_API_KEY"; //$NON-NLS-1$
214214

215+
String COINGECKO_DEMO_API_KEY = "COINGECKO_DEMO_API_KEY"; //$NON-NLS-1$
216+
215217
@Deprecated(since = "2025-05-09")
216218
String PORTFOLIO_REPORT_API_KEY = "PORTFOLIO_REPORT_API_KEY"; //$NON-NLS-1$ //NOSONAR
217219
@Deprecated(since = "2025-05-09")

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/addons/Preference2EnvAddon.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,12 @@ public void setEODHistoricalDataApiKey(
9494

9595
@Inject
9696
@Optional
97-
public void setCoingeckoApiKey(@Preference(value = UIConstants.Preferences.COINGECKO_API_KEY) String apiKey)
97+
public void setCoingeckoApiKey(@Preference(value = UIConstants.Preferences.COINGECKO_API_KEY) String apiKey,
98+
@Preference(value = UIConstants.Preferences.COINGECKO_DEMO_API_KEY) String demoApiKey)
9899
{
99-
Factory.getQuoteFeed(CoinGeckoQuoteFeed.class).setApiKey(apiKey);
100+
CoinGeckoQuoteFeed coingeckoFeed = Factory.getQuoteFeed(CoinGeckoQuoteFeed.class);
101+
coingeckoFeed.setApiKey(apiKey);
102+
coingeckoFeed.setDemoApiKey(demoApiKey);
100103
}
101104

102105
@Inject

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2370,7 +2370,9 @@ PrefCreateBackupBeforeSaving = Automatically create a backup copy before saving
23702370

23712371
PrefDescriptionAlphaVantage = Alpha Vantage Inc. is a provider of free APIs for realtime and historical data on stocks, physical currencies, and digital/crypto currencies.\n\nTo use Alpha Vantage, you need an API key. The free API key allows up to 5 requests per minute. Alpha Vantage offers various premium API keys for purchase that allow up to 600 requests per minute.\n\nPlease follow this link to sign up:
23722372

2373-
PrefDescriptionCoingecko = Note: Enhance your request rate limit and access longer historical data by providing a valid API key from a paid CoinGecko subscription. Test API keys do not work here.
2373+
PrefDescriptionCoinGeckoDemoAPIKey = CoinGecko states that to obtain a stable rate limit of 30 calls per minute, you should register for a demo account here:\n<a href="https://www.coingecko.com/en/api/pricing">https://www.coingecko.com/en/api/pricing</a>
2374+
2375+
PrefDescriptionCoingecko = Enhance your request rate limit and access longer historical data by providing a valid API key from a paid CoinGecko subscription.
23742376

23752377
PrefDescriptionDivvyDiary = Upload your investments automatically from Portfolio Performance to your personal account at DivvyDiary. This allows you to easily monitor your future dividend payments from your smartphone.\n\nTo do this, just follow the steps below:\n1. Create an account with DivvyDiary\n2. Generate an API key under "Settings"\n3. Store the API key in the Portfolio Performance settings
23762378

@@ -2460,6 +2462,8 @@ PrefTitleBackup = Backups
24602462

24612463
PrefTitleCalendar = Calendar
24622464

2465+
PrefTitleDemoAPIKey = Demo API Key
2466+
24632467
PrefTitleDivvyDiary = DivvyDiary
24642468

24652469
PrefTitleEODHistoricalData = EOD Historical Data

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_cs.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2354,7 +2354,9 @@ PrefCreateBackupBeforeSaving = Automatick\u00E9 vytvo\u0159en\u00ED z\u00E1lo\u0
23542354

23552355
PrefDescriptionAlphaVantage = Spole\u010Dnost Alpha Vantage Inc. je poskytovatelem bezplatn\u00FDch rozhran\u00ED API pro realtime a historick\u00E1 data o akci\u00EDch, fyzick\u00FDch m\u011Bn\u00E1ch a digit\u00E1ln\u00EDch/krypto m\u011Bn\u00E1ch.\n\nChcete-li pou\u017E\u00EDvat slu\u017Ebu Alpha Vantage, pot\u0159ebujete kl\u00ED\u010D API. Bezplatn\u00FD kl\u00ED\u010D API umo\u017E\u0148uje a\u017E 5 po\u017Eadavk\u016F za minutu. Alpha Vantage nab\u00EDz\u00ED k zakoupen\u00ED r\u016Fzn\u00E9 pr\u00E9miov\u00E9 kl\u00ED\u010De API, kter\u00E9 umo\u017E\u0148uj\u00ED a\u017E 600 po\u017Eadavk\u016F za minutu.\n\nPro registraci p\u0159ejd\u011Bte na tento odkaz:
23562356

2357-
PrefDescriptionCoingecko = Pozn\u00E1mka: Zvy\u0161te si limit rychlosti po\u017Eadavk\u016F a z\u00EDskejte p\u0159\u00EDstup k del\u0161\u00EDm historick\u00FDm dat\u016Fm poskytnut\u00EDm platn\u00E9ho kl\u00ED\u010De API z placen\u00E9ho p\u0159edplatn\u00E9ho CoinGecko. Testovac\u00ED kl\u00ED\u010De API zde nefunguj\u00ED.
2357+
PrefDescriptionCoinGeckoDemoAPIKey = CoinGecko uv\u00E1d\u00ED, \u017Ee pro z\u00EDsk\u00E1n\u00ED stabiln\u00EDho limitu 30 vol\u00E1n\u00ED za minutu je t\u0159eba se zaregistrovat pro demo \u00FA\u010Det zde:\n<a href="https://www.coingecko.com/en/api/pricing">https://www.coingecko.com/en/api/pricing</a>
2358+
2359+
PrefDescriptionCoingecko = Zvy\u0161te si limit rychlosti po\u017Eadavk\u016F a z\u00EDskejte p\u0159\u00EDstup k del\u0161\u00EDm historick\u00FDm dat\u016Fm poskytnut\u00EDm platn\u00E9ho kl\u00ED\u010De API z placen\u00E9ho p\u0159edplatn\u00E9ho CoinGecko.
23582360

23592361
PrefDescriptionDivvyDiary = Nahrajte sv\u00E9 investice automaticky z n\u00E1stroje Portfolio Performance na sv\u016Fj osobn\u00ED \u00FA\u010Det v DivvyDiary. D\u00EDky tomu m\u016F\u017Eete snadno sledovat budouc\u00ED v\u00FDplaty dividend ze sv\u00E9ho chytr\u00E9ho telefonu.\n\nChcete-li to prov\u00E9st, sta\u010D\u00ED postupovat podle n\u00ED\u017Ee uveden\u00FDch krok\u016F:\n1. Vytvo\u0159te si \u00FA\u010Det u slu\u017Eby DivvyDiary\n2. Vygenerujte si kl\u00ED\u010D API v \u010D\u00E1sti "Nastaven\u00ED".\n3. Ulo\u017Ete kl\u00ED\u010D API do nastaven\u00ED V\u00FDkonnost portfolia.
23602362

@@ -2444,6 +2446,8 @@ PrefTitleBackup = Z\u00E1lohov\u00E1n\u00ED
24442446

24452447
PrefTitleCalendar = Kalend\u00E1\u0159
24462448

2449+
PrefTitleDemoAPIKey = Uk\u00E1zkov\u00FD kl\u00ED\u010D API
2450+
24472451
PrefTitleDivvyDiary = DivvyDiary
24482452

24492453
PrefTitleEODHistoricalData = EOD Historical Data

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_da.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2359,7 +2359,9 @@ PrefCreateBackupBeforeSaving = Opret automatisk en sikkerhedskopi, f\u00F8r du g
23592359
23602360
PrefDescriptionAlphaVantage = Alpha Vantage Inc. er en udbyder af gratis API'er til realtidsdata og historiske data om aktier, fysiske valutaer og digitale/kryptovalutaer.\n\nFor at bruge Alpha Vantage skal du bruge en API-n\u00F8gle. Den gratis API-n\u00F8gle tillader op til 5 anmodninger i minuttet. Alpha Vantage tilbyder forskellige premium API-n\u00F8gler til k\u00F8b, der tillader op til 600 anmodninger i minuttet.\n\nF\u00F8lg venligst dette link for at tilmelde dig:
23612361

2362-
PrefDescriptionCoingecko = Bem\u00E6rk: For\u00F8g din gr\u00E6nse for anmodningshastighed og f\u00E5 adgang til l\u00E6ngere historiske data ved at angive en gyldig API-n\u00F8gle fra et betalt CoinGecko-abonnement. Test-API-n\u00F8gler fungerer ikke her.
2362+
PrefDescriptionCoinGeckoDemoAPIKey = CoinGecko angiver, at for at opn\u00E5 en stabil hastighedsbegr\u00E6nsning p\u00E5 30 opkald pr. minut skal du registrere dig for en demo-konto her:\n<a href="https://www.coingecko.com/en/api/pricing">https://www.coingecko.com/en/api/pricing</a>
2363+
2364+
PrefDescriptionCoingecko = For\u00F8g din gr\u00E6nse for anmodningshastighed og f\u00E5 adgang til l\u00E6ngere historiske data ved at angive en gyldig API-n\u00F8gle fra et betalt CoinGecko-abonnement.
23632365

23642366
PrefDescriptionDivvyDiary = Upload dine investeringer automatisk fra Portfolio Performance til din personlige konto hos DivvyDiary. Dette giver dig mulighed for nemt at overv\u00E5ge dine fremtidige udbyttebetalinger fra din smartphone.\n\nFor at g\u00F8re dette skal du blot f\u00F8lge nedenst\u00E5ende trin:\n1. Opret en konto hos DivvyDiary\n2. Generer en API-n\u00F8gle under "Indstillinger"\n3. Gem API-n\u00F8glen i Portfolio Performance-indstillingerne
23652367

@@ -2449,6 +2451,8 @@ PrefTitleBackup = Backupper
24492451
24502452
PrefTitleCalendar = Kalender
24512453
2454+
PrefTitleDemoAPIKey = Demo API-n\u00F8gle
2455+
24522456
PrefTitleDivvyDiary = DivvyDiary
24532457
24542458
PrefTitleEODHistoricalData = EOD Historiske data

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_de.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2361,7 +2361,9 @@ PrefCreateBackupBeforeSaving = Automatisch Sicherheitskopie vor dem Speichern er
23612361

23622362
PrefDescriptionAlphaVantage = Alpha Vantage Inc. ist ein Anbieter von kostenlosen APIs f\u00FCr Echtzeit- und historische Daten von Aktien, physischen sowie digitalen/kryptographischen W\u00E4hrungen.\n\nMit dem kostenlosen API-Schl\u00FCssel kann man bis zu 5 Anfragen pro Minute machen. Alpha Vantage verkauft verschiedene Premium API-Schl\u00FCssel, mit denen bis zu 600 Anfragen pro Minute m\u00F6glich sind.\n\nDer kostenlose API-Schl\u00FCssel ist unter diesem Link erh\u00E4ltlich:
23632363

2364-
PrefDescriptionCoingecko = Hinweis: Erh\u00F6he deine Anfragerate und greife auf l\u00E4ngere historische Daten zu, indem du einen g\u00FCltigen API-Schl\u00FCssel aus einem bezahlten CoinGecko-Abonnement angibst. Test-API-Schl\u00FCssel funktionieren hier nicht.
2364+
PrefDescriptionCoinGeckoDemoAPIKey = CoinGecko sagt, dass du dich f\u00FCr ein Demo-Konto hier anmelden solltest, um eine stabile Rate von 30 Aufrufen pro Minute zu bekommen:\n<a href="https://www.coingecko.com/en/api/pricing">https://www.coingecko.com/en/api/pricing</a>
2365+
2366+
PrefDescriptionCoingecko = Erh\u00F6he deine Anfragerate und greife auf l\u00E4ngere historische Daten zu, indem du einen g\u00FCltigen API-Schl\u00FCssel aus einem bezahlten CoinGecko-Abonnement angibst.
23652367

23662368
PrefDescriptionDivvyDiary = \u00DCbertrage deinen Aktienbestand automatisiert von Portfolio Performance in dein pers\u00F6nliches Depot bei DivvyDiary. Dadurch kannst du deine zuk\u00FCnftigen Dividendenzahlungen auch ganz einfach von dem Smartphone aus beobachten.\n\nBefolgen Sie dazu einfach die folgenden Schritte:\n1. Erstellen Sie ein Konto bei DivvyDiary.\n2. Erstelle einen API-Schl\u00FCssel unter "Einstellungen".\n3. Speichern Sie den API-Schl\u00FCssel in den Portfolio Performance-Einstellungen.
23672369

@@ -2451,6 +2453,8 @@ PrefTitleBackup = Backups
24512453

24522454
PrefTitleCalendar = Kalender
24532455

2456+
PrefTitleDemoAPIKey = Demo-API-Schl\u00FCssel
2457+
24542458
PrefTitleDivvyDiary = DivvyDiary
24552459

24562460
PrefTitleEODHistoricalData = EOD Historical Data

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_es.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2357,7 +2357,9 @@ PrefCreateBackupBeforeSaving = Hacer una copia de seguridad previa de la cartera
23572357

23582358
PrefDescriptionAlphaVantage = Alpha Vantage Inc. es un proveedor de APIs de datos en tiempo real y hist\u00F3ricos sobre acciones, divisas y criptomonedas.\n\nAlpha Vantage es gratuito, pero debe registrarse para obtener una clave de API.\n\nPor favor, siga este enlace para inscribirse:
23592359

2360-
PrefDescriptionCoingecko = Nota: para aumentar su l\u00EDmite de uso (n\u00FAmero de solicitudes) o acceder a datos hist\u00F3ricos m\u00E1s antiguos, debe proporcionar una clave API correspondiente con una suscripci\u00F3n de pago de CoinGecko (las claves \u2018Demo\u2019 no sirven).
2360+
PrefDescriptionCoinGeckoDemoAPIKey = CoinGecko afirma que para obtener un l\u00EDmite de velocidad estable de 30 llamadas por minuto, debes registrarte para obtener una cuenta demo aqu\u00ED:\n<a href="https://www.coingecko.com/en/api/pricing">https://www.coingecko.com/en/api/pricing</a>
2361+
2362+
PrefDescriptionCoingecko = Para aumentar su l\u00EDmite de uso (n\u00FAmero de solicitudes) o acceder a datos hist\u00F3ricos m\u00E1s antiguos, debe proporcionar una clave API correspondiente con una suscripci\u00F3n de pago de CoinGecko.
23612363

23622364
PrefDescriptionDivvyDiary = Cargue sus inversiones autom\u00E1ticamente desde Portfolio Performance a su cuenta personal en DivvyDiary. Esto le permitir\u00E1 controlar f\u00E1cilmente el pago de sus dividendos futuros desde su tel\u00E9fono inteligente.\n\nPara hacer esto, solo siga los pasos a continuaci\u00F3n:\n1. Cree una cuenta en DivvyDiary\n2. Genere una clave API en "Configuraci\u00F3n"\n3. Guarde la clave API en la configuraci\u00F3n de Portfolio Performance
23632365

@@ -2447,6 +2449,8 @@ PrefTitleBackup = Copias de seguridad
24472449
24482450
PrefTitleCalendar = Calendario
24492451
2452+
PrefTitleDemoAPIKey = Clave API de demostraci\u00F3n
2453+
24502454
PrefTitleDivvyDiary = DivvyDiary
24512455
24522456
PrefTitleEODHistoricalData = EOD Historical Data

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_fr.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2360,7 +2360,9 @@ PrefCreateBackupBeforeSaving = Automatiquement cr\u00E9er un fichier de restaura
23602360

23612361
PrefDescriptionAlphaVantage = Alpha Vantage Inc. est un fournisseur d'API gratuites pour les donn\u00E9es en temps r\u00E9el et historiques sur les actions, les devises physiques et les devises num\u00E9riques/crypto.\n\nPour utiliser Alpha Vantage, vous avez besoin d'une clef API. La clef API gratuite autorise jusqu'\u00E0 5 requ\u00EAtes par minute. Alpha Vantage propose diverses clefs API premium \u00E0 l'achat qui permettent jusqu'\u00E0 600 requ\u00EAtes par minute.\n\nVeuillez suivre ce lien pour vous inscrire :
23622362

2363-
PrefDescriptionCoingecko = Remarque : augmente ta limite de taux de requ\u00EAte et acc\u00E8de \u00E0 des donn\u00E9es historiques plus longues en fournissant une cl\u00E9 API valide provenant d'un abonnement payant \u00E0 CoinGecko. Les cl\u00E9s API de test ne fonctionnent pas ici.
2363+
PrefDescriptionCoinGeckoDemoAPIKey = CoinGecko dit que pour avoir un taux stable de 30 appels par minute, tu dois cr\u00E9er un compte d\u00E9mo ici :\n<a href="https://www.coingecko.com/en/api/pricing">https://www.coingecko.com/en/api/pricing</a>
2364+
2365+
PrefDescriptionCoingecko = Augmente ta limite de taux de requ\u00EAte et acc\u00E8de \u00E0 des donn\u00E9es historiques plus longues en fournissant une cl\u00E9 API valide provenant d'un abonnement payant \u00E0 CoinGecko.
23642366

23652367
PrefDescriptionDivvyDiary = T\u00E9l\u00E9chargez automatiquement vos investissements depuis Portfolio Performance vers votre compte personnel sur DivvyDiary. Cela vous permet de suivre facilement vos futurs paiements de dividendes depuis votre smartphone.\n\nPour ce faire, il suffit de suivre les \u00E9tapes ci-dessous :\n1. Cr\u00E9ez un compte avec DivvyDiary\n2. G\u00E9n\u00E9rez une cl\u00E9 API sous " Param\u00E8tres ".\n3. Stockez la cl\u00E9 API dans les param\u00E8tres de performance du portefeuille
23662368

@@ -2450,6 +2452,8 @@ PrefTitleBackup = Sauvegardes
24502452

24512453
PrefTitleCalendar = Calendrier
24522454

2455+
PrefTitleDemoAPIKey = Cl\u00E9 API de d\u00E9monstration
2456+
24532457
PrefTitleDivvyDiary = DivvyDiary
24542458

24552459
PrefTitleEODHistoricalData = EOD Historical Data

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/messages_it.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2359,7 +2359,9 @@ PrefCreateBackupBeforeSaving = Crea automaticamente una copia di backup prima de
23592359
23602360
PrefDescriptionAlphaVantage = Alpha Vantage Inc. \u00E8 un fornitore di API gratuite per dati storici e in tempo reale su azioni, valute fisiche e valute digitali / crittografiche.\n\nPer utilizzare Alpha Vantage, \u00E8 necessaria una chiave API. La chiave API gratuita consente fino a 5 richieste al minuto. Alpha Vantage offre varie chiavi API premium per l'acquisto che consentono fino a 600 richieste al minuto.\n\nSegui questo link per iscriverti:
23612361

2362-
PrefDescriptionCoingecko = Nota: per aumentare il limite di richieste e accedere a dati storici pi\u00F9 lunghi \u00E8 necessario fornire una chiave API valida proveniente da un abbonamento CoinGecko a pagamento. Le chiavi API di prova qui non funzionano.
2362+
PrefDescriptionCoinGeckoDemoAPIKey = CoinGecko dice che per avere un limite di velocit\u00E0 stabile di 30 chiamate al minuto, devi registrarti per un account demo qui:\n<a href="https://www.coingecko.com/en/api/pricing">https://www.coingecko.com/en/api/pricing</a>
2363+
2364+
PrefDescriptionCoingecko = Per aumentare il limite di richieste e accedere a dati storici pi\u00F9 lunghi \u00E8 necessario fornire una chiave API valida proveniente da un abbonamento CoinGecko a pagamento.
23632365

23642366
PrefDescriptionDivvyDiary = Carica automaticamente i tuoi investimenti da Portfolio Performance sul tuo account personale di DivvyDiary. Ci\u00F2 ti consentir\u00E0 di monitorare facilmente i futuri pagamenti del dividendo dal tuo smartphone.\n\nPer fare ci\u00F2, segui i passaggi seguenti:\n1. Crea un account con DivvyDiary\n2. Genera una chiave API in "Impostazioni"\n3. Memorizza la chiave API nelle impostazioni di Portfolio Performance
23652367

@@ -2449,6 +2451,8 @@ PrefTitleBackup = Backups
24492451
24502452
PrefTitleCalendar = Calendario
24512453
2454+
PrefTitleDemoAPIKey = Chiave API demo
2455+
24522456
PrefTitleDivvyDiary = DivvyDiary
24532457
24542458
PrefTitleEODHistoricalData = EOD Historical Data

0 commit comments

Comments
 (0)