Real-time Currency Converter JAVA APIIs Java “pass-by-reference” or “pass-by-value”?How do I efficiently iterate over each entry in a Java Map?Does a finally block always get executed in Java?What is the difference between public, protected, package-private and private in Java?How do I read / convert an InputStream into a String in Java?When to use LinkedList over ArrayList in Java?How do I generate random integers within a specific range in Java?How do I convert a String to an int in Java?Creating a memory leak with JavaWhy is subtracting these two times (in 1927) giving a strange result?

Why should universal income be universal?

What is Cash Advance APR?

Removing files under particular conditions (number of files, file age)

Where does the bonus feat in the cleric starting package come from?

Biological Blimps: Propulsion

How could a planet have erratic days?

Electoral considerations aside, what are potential benefits, for the US, of policy changes proposed by the tweet recognizing Golan annexation?

Did Swami Prabhupada reject Advaita?

Which one is correct as adjective “protruding” or “protruded”?

Is it improper etiquette to ask your opponent what his/her rating is before the game?

Lowest total scrabble score

How do you make your own symbol when Detexify fails?

Is this toilet slogan correct usage of the English language?

Reverse int within the 32-bit signed integer range: [−2^31, 2^31 − 1]

2.8 Why are collections grayed out? How can I open them?

What is the evidence for the "tyranny of the majority problem" in a direct democracy context?

How to implement a feedback to keep the DC gain at zero for this conceptual passive filter?

Is it possible to put a rectangle as background in the author section?

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Why is it that I can sometimes guess the next note?

Aragorn's "guise" in the Orthanc Stone

Terse Method to Swap Lowest for Highest?

Is there any references on the tensor product of presentable (1-)categories?

Is the U.S. Code copyrighted by the Government?



Real-time Currency Converter JAVA API


Is Java “pass-by-reference” or “pass-by-value”?How do I efficiently iterate over each entry in a Java Map?Does a finally block always get executed in Java?What is the difference between public, protected, package-private and private in Java?How do I read / convert an InputStream into a String in Java?When to use LinkedList over ArrayList in Java?How do I generate random integers within a specific range in Java?How do I convert a String to an int in Java?Creating a memory leak with JavaWhy is subtracting these two times (in 1927) giving a strange result?













0















I am trying to convert two currencies between two countries. I am using the exchangerate-api.com. https://v3.exchangerate-api.com/bulk/API-KEY/FROMCURRENCY.



The below code is working, does the conversion, but when I do the same conversion for two countries on Google, I get slightly different results(e.g: 14.50 USD -> ZAR vs 14.40 USD -> ZAR). I would like to get realtime results every time when I run the application, like how Google works.



 //code
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class CurrencyConverter

private static final String API_KEY = "ee96328aa014e6b3841e1aad";

public static void main(String[] args) throws IOException
convert("USD");


private static void convert (String from) throws IOException
// Setting URL
String url_str = "https://v3.exchangerate-api.com/bulk/" + API_KEY + "/" + from;

URL url = new URL(url_str);
HttpURLConnection request = (HttpURLConnection) url.openConnection();
request.connect();

JsonParser jp = new JsonParser();
JsonElement root = jp.parse(new InputStreamReader((InputStream) request.getContent()));
JsonObject jsonobj = root.getAsJsonObject();

System.out.println(jsonobj);




//gson library in my mvn pom.xml


<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
</dependency>

//sample json response object:

"result": "success",
"timestamp": 1552018829,
"from": "USD",
"rates":
"USD": 1,
"AED": 3.6727,
"ALL": 110.5,
"AMD": 488.58,
"ANG": 1.784,
"AOA": 313.039,
"ARS": 42.331,
"AUD": 1.42374241,
"AZN": 1.6995,
"BBD": 2,
"BDT": 83.39,
"BGN": 1.73526655,
"BHD": 0.3769,
"BRL": 3.8644714,
"BSD": 1,
"BWP": 10.656,
"BYN": 2.13,
"CAD": 1.34383331,
"CHF": 1.00879525,
"CLP": 667.47,
"CNY": 6.71296713,
"COP": 3140,
"CZK": 22.7482318,
"DKK": 6.62755345,
"DOP": 50.43,
"DZD": 119.033,
"EGP": 17.38,
"ETB": 28.25,
"EUR": 0.88964474,
"FJD": 2.11,
"GBP": 0.76264002,
"GEL": 2.6778,
"GHS": 5.4685,
"GNF": 9108,
"GTQ": 7.6975,
"HKD": 7.84974773,
"HNL": 24.352,
"HRK": 6.60045592,
"HUF": 280.40020889,
"IDR": 14200.66826102,
"ILS": 3.61864449,
"INR": 70.05552421,
"IQD": 1190,
"IRR": 42000,
"ISK": 121.27711265,
"JMD": 126.5,
"JOD": 0.7065,
"JPY": 111.56435463,
"KES": 99.75,
"KHR": 3963.1,
"KRW": 1130.91703307,
"KWD": 0.3039,
"KZT": 378.47,
"LAK": 8570,
"LBP": 1505.7,
"LKR": 178.5,
"MAD": 9.644,
"MDL": 16.98,
"MKD": 54.53,
"MMK": 1513,
"MUR": 34.5,
"MXN": 19.51311715,
"MYR": 4.08865632,
"NAD": 14.512,
"NGN": 357,
"NOK": 8.73404738,
"NZD": 1.47770575,
"OMR": 0.3847,
"PAB": 1,
"PEN": 3.30639533,
"PGK": 3.3702,
"PHP": 52.25152551,
"PKR": 138.5,
"PLN": 3.82345828,
"PYG": 6059,
"QAR": 3.6403,
"RON": 4.22007986,
"RSD": 104.0898,
"RUB": 66.07157025,
"SAR": 3.75005982,
"SCR": 13.62,
"SEK": 9.40254303,
"SGD": 1.35884446,
"THB": 31.81630368,
"TJS": 9.4379,
"TND": 3.0451,
"TRY": 5.4456136,
"TTD": 6.6882,
"TWD": 30.87726049,
"TZS": 2358,
"UAH": 26.355,
"UYU": 32.68,
"UZS": 8350,
"VEF": 248209,
"VND": 23181.39051138,
"XAF": 585.3,
"XCD": 2.7,
"XOF": 585.3,
"XPF": 106,
"ZAR": 14.4095435,
"ZMW": 11.98











share|improve this question

















  • 2





    Probably best to follow this up with the provider of the API. If, as you say, the code you provided is working, then there isn't much we can help you with.

    – Jason
    Mar 8 at 4:51











  • Try fixer.io Fixer is a simple and lightweight JSON API for current and historical foreign exchange (forex) rates.

    – Mebin Joe
    Mar 8 at 4:53












  • @GhostCat, I'm sorry that I didn't be specific ion my question. I was trying to ask what API to use to get real-time currency conversion results that correspond with what Google would give you at any given time.

    – Sydney Molobela
    Mar 8 at 10:15











  • And just for the record: asking for APIs (any 3rd party resource) recommendations is fully off topic here. You were lucky to get a good answer, but as said: normally such questions are rightfully quickly closed as off topic.

    – GhostCat
    Mar 8 at 10:19











  • @GhostCat, thank you and I am sorry about that. I have learnt from this and I shall not ask questions related to this in future.

    – Sydney Molobela
    Mar 8 at 10:21















0















I am trying to convert two currencies between two countries. I am using the exchangerate-api.com. https://v3.exchangerate-api.com/bulk/API-KEY/FROMCURRENCY.



The below code is working, does the conversion, but when I do the same conversion for two countries on Google, I get slightly different results(e.g: 14.50 USD -> ZAR vs 14.40 USD -> ZAR). I would like to get realtime results every time when I run the application, like how Google works.



 //code
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class CurrencyConverter

private static final String API_KEY = "ee96328aa014e6b3841e1aad";

public static void main(String[] args) throws IOException
convert("USD");


private static void convert (String from) throws IOException
// Setting URL
String url_str = "https://v3.exchangerate-api.com/bulk/" + API_KEY + "/" + from;

URL url = new URL(url_str);
HttpURLConnection request = (HttpURLConnection) url.openConnection();
request.connect();

JsonParser jp = new JsonParser();
JsonElement root = jp.parse(new InputStreamReader((InputStream) request.getContent()));
JsonObject jsonobj = root.getAsJsonObject();

System.out.println(jsonobj);




//gson library in my mvn pom.xml


<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
</dependency>

//sample json response object:

"result": "success",
"timestamp": 1552018829,
"from": "USD",
"rates":
"USD": 1,
"AED": 3.6727,
"ALL": 110.5,
"AMD": 488.58,
"ANG": 1.784,
"AOA": 313.039,
"ARS": 42.331,
"AUD": 1.42374241,
"AZN": 1.6995,
"BBD": 2,
"BDT": 83.39,
"BGN": 1.73526655,
"BHD": 0.3769,
"BRL": 3.8644714,
"BSD": 1,
"BWP": 10.656,
"BYN": 2.13,
"CAD": 1.34383331,
"CHF": 1.00879525,
"CLP": 667.47,
"CNY": 6.71296713,
"COP": 3140,
"CZK": 22.7482318,
"DKK": 6.62755345,
"DOP": 50.43,
"DZD": 119.033,
"EGP": 17.38,
"ETB": 28.25,
"EUR": 0.88964474,
"FJD": 2.11,
"GBP": 0.76264002,
"GEL": 2.6778,
"GHS": 5.4685,
"GNF": 9108,
"GTQ": 7.6975,
"HKD": 7.84974773,
"HNL": 24.352,
"HRK": 6.60045592,
"HUF": 280.40020889,
"IDR": 14200.66826102,
"ILS": 3.61864449,
"INR": 70.05552421,
"IQD": 1190,
"IRR": 42000,
"ISK": 121.27711265,
"JMD": 126.5,
"JOD": 0.7065,
"JPY": 111.56435463,
"KES": 99.75,
"KHR": 3963.1,
"KRW": 1130.91703307,
"KWD": 0.3039,
"KZT": 378.47,
"LAK": 8570,
"LBP": 1505.7,
"LKR": 178.5,
"MAD": 9.644,
"MDL": 16.98,
"MKD": 54.53,
"MMK": 1513,
"MUR": 34.5,
"MXN": 19.51311715,
"MYR": 4.08865632,
"NAD": 14.512,
"NGN": 357,
"NOK": 8.73404738,
"NZD": 1.47770575,
"OMR": 0.3847,
"PAB": 1,
"PEN": 3.30639533,
"PGK": 3.3702,
"PHP": 52.25152551,
"PKR": 138.5,
"PLN": 3.82345828,
"PYG": 6059,
"QAR": 3.6403,
"RON": 4.22007986,
"RSD": 104.0898,
"RUB": 66.07157025,
"SAR": 3.75005982,
"SCR": 13.62,
"SEK": 9.40254303,
"SGD": 1.35884446,
"THB": 31.81630368,
"TJS": 9.4379,
"TND": 3.0451,
"TRY": 5.4456136,
"TTD": 6.6882,
"TWD": 30.87726049,
"TZS": 2358,
"UAH": 26.355,
"UYU": 32.68,
"UZS": 8350,
"VEF": 248209,
"VND": 23181.39051138,
"XAF": 585.3,
"XCD": 2.7,
"XOF": 585.3,
"XPF": 106,
"ZAR": 14.4095435,
"ZMW": 11.98











share|improve this question

















  • 2





    Probably best to follow this up with the provider of the API. If, as you say, the code you provided is working, then there isn't much we can help you with.

    – Jason
    Mar 8 at 4:51











  • Try fixer.io Fixer is a simple and lightweight JSON API for current and historical foreign exchange (forex) rates.

    – Mebin Joe
    Mar 8 at 4:53












  • @GhostCat, I'm sorry that I didn't be specific ion my question. I was trying to ask what API to use to get real-time currency conversion results that correspond with what Google would give you at any given time.

    – Sydney Molobela
    Mar 8 at 10:15











  • And just for the record: asking for APIs (any 3rd party resource) recommendations is fully off topic here. You were lucky to get a good answer, but as said: normally such questions are rightfully quickly closed as off topic.

    – GhostCat
    Mar 8 at 10:19











  • @GhostCat, thank you and I am sorry about that. I have learnt from this and I shall not ask questions related to this in future.

    – Sydney Molobela
    Mar 8 at 10:21













0












0








0








I am trying to convert two currencies between two countries. I am using the exchangerate-api.com. https://v3.exchangerate-api.com/bulk/API-KEY/FROMCURRENCY.



The below code is working, does the conversion, but when I do the same conversion for two countries on Google, I get slightly different results(e.g: 14.50 USD -> ZAR vs 14.40 USD -> ZAR). I would like to get realtime results every time when I run the application, like how Google works.



 //code
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class CurrencyConverter

private static final String API_KEY = "ee96328aa014e6b3841e1aad";

public static void main(String[] args) throws IOException
convert("USD");


private static void convert (String from) throws IOException
// Setting URL
String url_str = "https://v3.exchangerate-api.com/bulk/" + API_KEY + "/" + from;

URL url = new URL(url_str);
HttpURLConnection request = (HttpURLConnection) url.openConnection();
request.connect();

JsonParser jp = new JsonParser();
JsonElement root = jp.parse(new InputStreamReader((InputStream) request.getContent()));
JsonObject jsonobj = root.getAsJsonObject();

System.out.println(jsonobj);




//gson library in my mvn pom.xml


<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
</dependency>

//sample json response object:

"result": "success",
"timestamp": 1552018829,
"from": "USD",
"rates":
"USD": 1,
"AED": 3.6727,
"ALL": 110.5,
"AMD": 488.58,
"ANG": 1.784,
"AOA": 313.039,
"ARS": 42.331,
"AUD": 1.42374241,
"AZN": 1.6995,
"BBD": 2,
"BDT": 83.39,
"BGN": 1.73526655,
"BHD": 0.3769,
"BRL": 3.8644714,
"BSD": 1,
"BWP": 10.656,
"BYN": 2.13,
"CAD": 1.34383331,
"CHF": 1.00879525,
"CLP": 667.47,
"CNY": 6.71296713,
"COP": 3140,
"CZK": 22.7482318,
"DKK": 6.62755345,
"DOP": 50.43,
"DZD": 119.033,
"EGP": 17.38,
"ETB": 28.25,
"EUR": 0.88964474,
"FJD": 2.11,
"GBP": 0.76264002,
"GEL": 2.6778,
"GHS": 5.4685,
"GNF": 9108,
"GTQ": 7.6975,
"HKD": 7.84974773,
"HNL": 24.352,
"HRK": 6.60045592,
"HUF": 280.40020889,
"IDR": 14200.66826102,
"ILS": 3.61864449,
"INR": 70.05552421,
"IQD": 1190,
"IRR": 42000,
"ISK": 121.27711265,
"JMD": 126.5,
"JOD": 0.7065,
"JPY": 111.56435463,
"KES": 99.75,
"KHR": 3963.1,
"KRW": 1130.91703307,
"KWD": 0.3039,
"KZT": 378.47,
"LAK": 8570,
"LBP": 1505.7,
"LKR": 178.5,
"MAD": 9.644,
"MDL": 16.98,
"MKD": 54.53,
"MMK": 1513,
"MUR": 34.5,
"MXN": 19.51311715,
"MYR": 4.08865632,
"NAD": 14.512,
"NGN": 357,
"NOK": 8.73404738,
"NZD": 1.47770575,
"OMR": 0.3847,
"PAB": 1,
"PEN": 3.30639533,
"PGK": 3.3702,
"PHP": 52.25152551,
"PKR": 138.5,
"PLN": 3.82345828,
"PYG": 6059,
"QAR": 3.6403,
"RON": 4.22007986,
"RSD": 104.0898,
"RUB": 66.07157025,
"SAR": 3.75005982,
"SCR": 13.62,
"SEK": 9.40254303,
"SGD": 1.35884446,
"THB": 31.81630368,
"TJS": 9.4379,
"TND": 3.0451,
"TRY": 5.4456136,
"TTD": 6.6882,
"TWD": 30.87726049,
"TZS": 2358,
"UAH": 26.355,
"UYU": 32.68,
"UZS": 8350,
"VEF": 248209,
"VND": 23181.39051138,
"XAF": 585.3,
"XCD": 2.7,
"XOF": 585.3,
"XPF": 106,
"ZAR": 14.4095435,
"ZMW": 11.98











share|improve this question














I am trying to convert two currencies between two countries. I am using the exchangerate-api.com. https://v3.exchangerate-api.com/bulk/API-KEY/FROMCURRENCY.



The below code is working, does the conversion, but when I do the same conversion for two countries on Google, I get slightly different results(e.g: 14.50 USD -> ZAR vs 14.40 USD -> ZAR). I would like to get realtime results every time when I run the application, like how Google works.



 //code
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class CurrencyConverter

private static final String API_KEY = "ee96328aa014e6b3841e1aad";

public static void main(String[] args) throws IOException
convert("USD");


private static void convert (String from) throws IOException
// Setting URL
String url_str = "https://v3.exchangerate-api.com/bulk/" + API_KEY + "/" + from;

URL url = new URL(url_str);
HttpURLConnection request = (HttpURLConnection) url.openConnection();
request.connect();

JsonParser jp = new JsonParser();
JsonElement root = jp.parse(new InputStreamReader((InputStream) request.getContent()));
JsonObject jsonobj = root.getAsJsonObject();

System.out.println(jsonobj);




//gson library in my mvn pom.xml


<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
</dependency>

//sample json response object:

"result": "success",
"timestamp": 1552018829,
"from": "USD",
"rates":
"USD": 1,
"AED": 3.6727,
"ALL": 110.5,
"AMD": 488.58,
"ANG": 1.784,
"AOA": 313.039,
"ARS": 42.331,
"AUD": 1.42374241,
"AZN": 1.6995,
"BBD": 2,
"BDT": 83.39,
"BGN": 1.73526655,
"BHD": 0.3769,
"BRL": 3.8644714,
"BSD": 1,
"BWP": 10.656,
"BYN": 2.13,
"CAD": 1.34383331,
"CHF": 1.00879525,
"CLP": 667.47,
"CNY": 6.71296713,
"COP": 3140,
"CZK": 22.7482318,
"DKK": 6.62755345,
"DOP": 50.43,
"DZD": 119.033,
"EGP": 17.38,
"ETB": 28.25,
"EUR": 0.88964474,
"FJD": 2.11,
"GBP": 0.76264002,
"GEL": 2.6778,
"GHS": 5.4685,
"GNF": 9108,
"GTQ": 7.6975,
"HKD": 7.84974773,
"HNL": 24.352,
"HRK": 6.60045592,
"HUF": 280.40020889,
"IDR": 14200.66826102,
"ILS": 3.61864449,
"INR": 70.05552421,
"IQD": 1190,
"IRR": 42000,
"ISK": 121.27711265,
"JMD": 126.5,
"JOD": 0.7065,
"JPY": 111.56435463,
"KES": 99.75,
"KHR": 3963.1,
"KRW": 1130.91703307,
"KWD": 0.3039,
"KZT": 378.47,
"LAK": 8570,
"LBP": 1505.7,
"LKR": 178.5,
"MAD": 9.644,
"MDL": 16.98,
"MKD": 54.53,
"MMK": 1513,
"MUR": 34.5,
"MXN": 19.51311715,
"MYR": 4.08865632,
"NAD": 14.512,
"NGN": 357,
"NOK": 8.73404738,
"NZD": 1.47770575,
"OMR": 0.3847,
"PAB": 1,
"PEN": 3.30639533,
"PGK": 3.3702,
"PHP": 52.25152551,
"PKR": 138.5,
"PLN": 3.82345828,
"PYG": 6059,
"QAR": 3.6403,
"RON": 4.22007986,
"RSD": 104.0898,
"RUB": 66.07157025,
"SAR": 3.75005982,
"SCR": 13.62,
"SEK": 9.40254303,
"SGD": 1.35884446,
"THB": 31.81630368,
"TJS": 9.4379,
"TND": 3.0451,
"TRY": 5.4456136,
"TTD": 6.6882,
"TWD": 30.87726049,
"TZS": 2358,
"UAH": 26.355,
"UYU": 32.68,
"UZS": 8350,
"VEF": 248209,
"VND": 23181.39051138,
"XAF": 585.3,
"XCD": 2.7,
"XOF": 585.3,
"XPF": 106,
"ZAR": 14.4095435,
"ZMW": 11.98








java






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 8 at 4:41









Sydney MolobelaSydney Molobela

133




133







  • 2





    Probably best to follow this up with the provider of the API. If, as you say, the code you provided is working, then there isn't much we can help you with.

    – Jason
    Mar 8 at 4:51











  • Try fixer.io Fixer is a simple and lightweight JSON API for current and historical foreign exchange (forex) rates.

    – Mebin Joe
    Mar 8 at 4:53












  • @GhostCat, I'm sorry that I didn't be specific ion my question. I was trying to ask what API to use to get real-time currency conversion results that correspond with what Google would give you at any given time.

    – Sydney Molobela
    Mar 8 at 10:15











  • And just for the record: asking for APIs (any 3rd party resource) recommendations is fully off topic here. You were lucky to get a good answer, but as said: normally such questions are rightfully quickly closed as off topic.

    – GhostCat
    Mar 8 at 10:19











  • @GhostCat, thank you and I am sorry about that. I have learnt from this and I shall not ask questions related to this in future.

    – Sydney Molobela
    Mar 8 at 10:21












  • 2





    Probably best to follow this up with the provider of the API. If, as you say, the code you provided is working, then there isn't much we can help you with.

    – Jason
    Mar 8 at 4:51











  • Try fixer.io Fixer is a simple and lightweight JSON API for current and historical foreign exchange (forex) rates.

    – Mebin Joe
    Mar 8 at 4:53












  • @GhostCat, I'm sorry that I didn't be specific ion my question. I was trying to ask what API to use to get real-time currency conversion results that correspond with what Google would give you at any given time.

    – Sydney Molobela
    Mar 8 at 10:15











  • And just for the record: asking for APIs (any 3rd party resource) recommendations is fully off topic here. You were lucky to get a good answer, but as said: normally such questions are rightfully quickly closed as off topic.

    – GhostCat
    Mar 8 at 10:19











  • @GhostCat, thank you and I am sorry about that. I have learnt from this and I shall not ask questions related to this in future.

    – Sydney Molobela
    Mar 8 at 10:21







2




2





Probably best to follow this up with the provider of the API. If, as you say, the code you provided is working, then there isn't much we can help you with.

– Jason
Mar 8 at 4:51





Probably best to follow this up with the provider of the API. If, as you say, the code you provided is working, then there isn't much we can help you with.

– Jason
Mar 8 at 4:51













Try fixer.io Fixer is a simple and lightweight JSON API for current and historical foreign exchange (forex) rates.

– Mebin Joe
Mar 8 at 4:53






Try fixer.io Fixer is a simple and lightweight JSON API for current and historical foreign exchange (forex) rates.

– Mebin Joe
Mar 8 at 4:53














@GhostCat, I'm sorry that I didn't be specific ion my question. I was trying to ask what API to use to get real-time currency conversion results that correspond with what Google would give you at any given time.

– Sydney Molobela
Mar 8 at 10:15





@GhostCat, I'm sorry that I didn't be specific ion my question. I was trying to ask what API to use to get real-time currency conversion results that correspond with what Google would give you at any given time.

– Sydney Molobela
Mar 8 at 10:15













And just for the record: asking for APIs (any 3rd party resource) recommendations is fully off topic here. You were lucky to get a good answer, but as said: normally such questions are rightfully quickly closed as off topic.

– GhostCat
Mar 8 at 10:19





And just for the record: asking for APIs (any 3rd party resource) recommendations is fully off topic here. You were lucky to get a good answer, but as said: normally such questions are rightfully quickly closed as off topic.

– GhostCat
Mar 8 at 10:19













@GhostCat, thank you and I am sorry about that. I have learnt from this and I shall not ask questions related to this in future.

– Sydney Molobela
Mar 8 at 10:21





@GhostCat, thank you and I am sorry about that. I have learnt from this and I shall not ask questions related to this in future.

– Sydney Molobela
Mar 8 at 10:21












1 Answer
1






active

oldest

votes


















6














No matter which API you use for currency conversion, almost every one of those will give provide hourly updates. The rest depends on the subscription plan you opt for.



The one you used, ExchangeRateAPI provides hourly updates for the free tier.
@MebinJoe mentioned Fixer.IO and you can check out the link for the plans and notice that the even the business plan offers only 60-second updates.



If you are really serious, then check out Oanda, otherwise hourly updates is what you get for free.






share|improve this answer

























  • Nice answer with good explanations. You nicely avoided the "link only" answer.

    – GhostCat
    Mar 8 at 10:18











  • Thanks a lot, guys. Fixer.io solved my problem. It works like a charm. I have marked the above comment as a correct answer.

    – Sydney Molobela
    Mar 8 at 10:19










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55056843%2freal-time-currency-converter-java-api%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









6














No matter which API you use for currency conversion, almost every one of those will give provide hourly updates. The rest depends on the subscription plan you opt for.



The one you used, ExchangeRateAPI provides hourly updates for the free tier.
@MebinJoe mentioned Fixer.IO and you can check out the link for the plans and notice that the even the business plan offers only 60-second updates.



If you are really serious, then check out Oanda, otherwise hourly updates is what you get for free.






share|improve this answer

























  • Nice answer with good explanations. You nicely avoided the "link only" answer.

    – GhostCat
    Mar 8 at 10:18











  • Thanks a lot, guys. Fixer.io solved my problem. It works like a charm. I have marked the above comment as a correct answer.

    – Sydney Molobela
    Mar 8 at 10:19















6














No matter which API you use for currency conversion, almost every one of those will give provide hourly updates. The rest depends on the subscription plan you opt for.



The one you used, ExchangeRateAPI provides hourly updates for the free tier.
@MebinJoe mentioned Fixer.IO and you can check out the link for the plans and notice that the even the business plan offers only 60-second updates.



If you are really serious, then check out Oanda, otherwise hourly updates is what you get for free.






share|improve this answer

























  • Nice answer with good explanations. You nicely avoided the "link only" answer.

    – GhostCat
    Mar 8 at 10:18











  • Thanks a lot, guys. Fixer.io solved my problem. It works like a charm. I have marked the above comment as a correct answer.

    – Sydney Molobela
    Mar 8 at 10:19













6












6








6







No matter which API you use for currency conversion, almost every one of those will give provide hourly updates. The rest depends on the subscription plan you opt for.



The one you used, ExchangeRateAPI provides hourly updates for the free tier.
@MebinJoe mentioned Fixer.IO and you can check out the link for the plans and notice that the even the business plan offers only 60-second updates.



If you are really serious, then check out Oanda, otherwise hourly updates is what you get for free.






share|improve this answer















No matter which API you use for currency conversion, almost every one of those will give provide hourly updates. The rest depends on the subscription plan you opt for.



The one you used, ExchangeRateAPI provides hourly updates for the free tier.
@MebinJoe mentioned Fixer.IO and you can check out the link for the plans and notice that the even the business plan offers only 60-second updates.



If you are really serious, then check out Oanda, otherwise hourly updates is what you get for free.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 8 at 5:30









soorapadman

2,62752431




2,62752431










answered Mar 8 at 5:25









Aditya BhardwajAditya Bhardwaj

3269




3269












  • Nice answer with good explanations. You nicely avoided the "link only" answer.

    – GhostCat
    Mar 8 at 10:18











  • Thanks a lot, guys. Fixer.io solved my problem. It works like a charm. I have marked the above comment as a correct answer.

    – Sydney Molobela
    Mar 8 at 10:19

















  • Nice answer with good explanations. You nicely avoided the "link only" answer.

    – GhostCat
    Mar 8 at 10:18











  • Thanks a lot, guys. Fixer.io solved my problem. It works like a charm. I have marked the above comment as a correct answer.

    – Sydney Molobela
    Mar 8 at 10:19
















Nice answer with good explanations. You nicely avoided the "link only" answer.

– GhostCat
Mar 8 at 10:18





Nice answer with good explanations. You nicely avoided the "link only" answer.

– GhostCat
Mar 8 at 10:18













Thanks a lot, guys. Fixer.io solved my problem. It works like a charm. I have marked the above comment as a correct answer.

– Sydney Molobela
Mar 8 at 10:19





Thanks a lot, guys. Fixer.io solved my problem. It works like a charm. I have marked the above comment as a correct answer.

– Sydney Molobela
Mar 8 at 10:19



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55056843%2freal-time-currency-converter-java-api%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme