![]() Paid Subscription Plans feature significantly higher API Request volumes and data updates as often as every 60 seconds, ensure secure datastreams via 256-bit HTTPS Encryption, include unlimited and prioritised technical support, and offer a variety of must-have API functionalities. The Free Plan is set out to be a "trial version" without a time limit, offering some very basic API functionialities, such as making API Requests, getting regular data updates, accessing historical data, and requesting specific currencies. What is the difference between free and paid subscriptions? ![]() See a detailed list of all supported currencies. The currencylayer API provides real-time and historical data for a total of 168 world currencies and precious metals (including Gold "XAU" & Silver "XAG"). Which currencies and precious metals are supported by the API? The "mid" value will also be the most useful tool to your company's financial department for accounting & invoicing purposes, for financial estimates or planning, for calculator & converter applications, and for any other applications you power with currencylayer forex data.Īll exchange rates are returned as currency pairs. Which currency data does the API provide?ĭepending on which API endpoint you are using for your query, the currencylayer API will return or calculate with the most representative forex market rate available, which is generally the "midpoint" value. Depending on your Subscription Plan, quotes are refreshed every 60 minutes (Free & Basic Plan), 10 minutes (Professional Plan), or 60 seconds (Business Plan). Spot exchange rate data is collected within the 60-second market window. This enables us to sort out possible inaccuracies and provide the vast majority of all spot exchange rates with a precision of six decimal places. If a source fails to deliver an accurate quote, the next highest provider is queried for this particular currency pair. In order to ensure the highest possible level of data coverage and accuracy, the currencylayer system relies on a very distinct “validation and fallback” algorithm, assigning different priorities to each data source and validating each forex rate as it enters our databases. The larger weighting particularly for major currencies is towards commercial sources as they more accurately reflect the trading occurring in the markets. Our spot exchange rates are sourced from a very broad base of commercial sources and banks around the world, each of varying types and frequencies. We hope this blog post has provided you with a useful introduction to the Currency Layer API and some example code in JavaScript to get you started.How accurate is currencylayer forex data? With a simple and easy-to-use API and extensive documentation, it is a great choice for developers looking to build currency conversion, financial, or international applications. The Currency Layer API provides a robust and feature-rich solution for obtaining real-time and historical exchange rates. info: A string representing additional information about the error.type: A string representing the error type.code: An integer representing the error code.error: A JSON object containing the error message, which includes the following keys:.success: A boolean value indicating whether the request was successful.The error JSON object includes the following keys: Here is an example response for the latest exchange rate request: The response format for all requests to the Currency Layer API is JSON. This example uses the fetch API to make an HTTP request to the API endpoint and log the response. Here is a sample request for getting the latest exchange rate: const access_key = 'API_KEY' The Currency Layer API supports a wide range of requests, including exchange rate quotes, historical rates, time-series data, currency conversion, and more. The API supports both HTTP and HTTPS protocols. Once you have obtained your access key, you can start making requests to the API. ![]() The access key is required for all requests to the API. ![]() Getting startedīefore you can use the Currency Layer API, you need to sign up for a free account and get an API access key. In this blog post, we will explore the documentation for Currency Layer API and provide some example code in JavaScript. Currencylayer provides a comprehensive API for real-time and historical exchange rates, including a secure and reliable service with 256-bit SSL encryption and backed by 24/7 support.
0 Comments
Leave a Reply. |