


Money and FastMoney are implementations of the MonetaryAmount interface.įastMoney implements MonetaryAmount using long as numeric representation, and is faster than BigDecimal at the cost of precision it can be used when we need performance and precision isn’t an issue.Ī generic instance can be created using a default factory. With our proprietary currency blender, Xe ensures our currency data API has the most accurate global rates. Accurate, reliable, and up-to-date rates Obtain updated rates as often as every 60 seconds. The amount can be implemented in different ways, focusing on the behavior of a monetary representation requirements, defined by each concrete use cases. Our currency exchange rate API offers hundreds of worldwide currencies, precious metals, selected cryptocurrencies, and accurate central bank rates. The goals of Currency and Money API: To provide an API for handling and calculating monetary amounts. It’s always associated with CurrencyUnit and defines a monetary representation of a currency. Depending on your subscription plan, the endpoint will return real-time exchange rate data.MonetaryAmount is a numeric representation of a monetary amount.

The Currency API comes with a single endpoint that enables you to query one or many currency codes or pairs, with readable parameters. (If 1 USD = X EUR, EUR is the target currency)Īll timestamps are unix/epoch timestamps (seconds that have passed since since JanuUTC). (If 1 USD = X EUR, USD is the base currency) It provides support for more than 170 currencies and over.
#Currency api code#
The currency to which exchange rates are relative to. This forex rates API offers real time and historical quotes for currency exchange rates (FX). ISO 4217 currency three-letter code associated with the country. The three-letter currency code or currency pair (e.g., EUR, EURUSD). Powering commercial grade rates at 300+ companies worldwide. Send and receive money with best forex rates. Validity API, allowing to manage the validity of arbitrary data and relations. Get the best currency exchange rates for international money transfers to 200 countries in 100 foreign currencies. In order to convert currencies, please use the APIs convert endpoint, append the from and to parameters and set them to your preferred base and target currency codes.
#Currency api portable#
Whereas the API (JSR 354) provides a portable and extensible API for handling of Money & Currency models, Moneta provides a production ready reference implementation. The Fixer API comes with a separate currency conversion endpoint, which can be used to convert any amount from one currency to another. The access key assigned to your account and used to authenticate with the API. JavaMoney is the new monetary API for the Java Platform as well as related projects and libraries. Location Targeting Geolocation IP Redirect Geolocation IP Blocking Language and Currency Detection Map View and Time Zone Lookup Fraud Prevention and. The URL which all API request endpoints and URLs are based on. Get ready to connect to Currency API using few coding lines of your favorite programming language. If you don't have one yet, please subscribe and get one immediately. All you need to do is to visit "My Account" and locate your token. Currency API is fast and friendly crypto, commodity, and FX Currency Conversion JSON API, covering over 1200+ pairs.
