Skip to content

main: add more fiat currencies, deprecate kraken api - #4592

Open
SNeedlewoods wants to merge 1 commit into
monero-project:masterfrom
SNeedlewoods:jpk68_add_more_fiat_currencies_remove_kraken_api
Open

main: add more fiat currencies, deprecate kraken api#4592
SNeedlewoods wants to merge 1 commit into
monero-project:masterfrom
SNeedlewoods:jpk68_add_more_fiat_currencies_remove_kraken_api

Conversation

@SNeedlewoods

Copy link
Copy Markdown
Contributor

submitted by jpk68
https://codeberg.org/jpk68/monero-gui/pulls/3

(I have not reviewed this code, merely forwarding it)

@SNeedlewoods
SNeedlewoods force-pushed the jpk68_add_more_fiat_currencies_remove_kraken_api branch from ec26ceb to a3c2ccb Compare July 9, 2026 11:11
@jpk68

jpk68 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Note: this should close #3351 and #3852

Comment thread main.qml Outdated
}

function getKeyFromCurrency(currency) {
switch (currency) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to check the length, check the first 3 letters and return the last 3 letters. Then it will be universal and not depend on the set of supported currencies.

Comment thread main.qml Outdated
"xmrcad": "https://api.coingecko.com/api/v3/simple/price?ids=monero&vs_currencies=cad",
"xmraud": "https://api.coingecko.com/api/v3/simple/price?ids=monero&vs_currencies=aud",
"xmrnzd": "https://api.coingecko.com/api/v3/simple/price?ids=monero&vs_currencies=nzd",
"xmrchf": "https://api.coingecko.com/api/v3/simple/price?ids=monero&vs_currencies=chf"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid copy-paste errors, it's better to use getKeyFromCurrency and construct the url from its template.

Comment thread main.qml Outdated
"xmrcad": "https://min-api.cryptocompare.com/data/price?fsym=XMR&tsyms=CAD",
"xmraud": "https://min-api.cryptocompare.com/data/price?fsym=XMR&tsyms=AUD",
"xmrnzd": "https://min-api.cryptocompare.com/data/price?fsym=XMR&tsyms=NZD",
"xmrchf": "https://min-api.cryptocompare.com/data/price?fsym=XMR&tsyms=CHF"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, getKeyFromCurrency and construct the url from template.

@SNeedlewoods
SNeedlewoods force-pushed the jpk68_add_more_fiat_currencies_remove_kraken_api branch from a3c2ccb to 66975e9 Compare August 5, 2026 17:40
@jpk68

jpk68 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

@SChernykh Thanks for your comments; they have all been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants