All Projects → Live-Rates → live-rates.com

Live-Rates / live-rates.com

Licence: other
Forex Real-time Streaming, Web-service & Rest API

Projects that are alternatives of or similar to live-rates.com

Graphql2rest
GraphQL to REST converter: automatically generate a RESTful API from your existing GraphQL API
Stars: ✭ 181 (+503.33%)
Mutual labels:  api-rest, restful-api
Bricks
A standard library for microservices.
Stars: ✭ 142 (+373.33%)
Mutual labels:  json-api, restful-api
Grocery Cms Php Restful Api
Grocery-CMS-PHP-Restful-API is an online grocery shop. The project is developed by using PHP/MySQL/Slim Restful API. The project has powerful backend cms to manage grocery shop online. it has features like add items, remove items, update price, manage orders etc. Restful API ready to embed in Application using JSON data.
Stars: ✭ 36 (+20%)
Mutual labels:  json-api, restful-api
Json Server Heroku
Deploy json-server to Heroku & Azure 🆙 🆓
Stars: ✭ 310 (+933.33%)
Mutual labels:  api-rest, restful-api
FSharp.JsonApi
Use F# to create and consume flexible, strongly typed web APIs following the JSON:API specification
Stars: ✭ 20 (-33.33%)
Mutual labels:  json-api, api-rest
Appkernel
API development made easy: a smart Python 3 API framework
Stars: ✭ 152 (+406.67%)
Mutual labels:  api-rest, restful-api
Laravel Api Boilerplate
A Boilerplate Project For Laravel API's (NOT MAINTAINED)
Stars: ✭ 113 (+276.67%)
Mutual labels:  json-api, api-rest
Molten Boilerplate
A boilerplate for the molten framework by Bogdanp https://github.com/Bogdanp/molten
Stars: ✭ 50 (+66.67%)
Mutual labels:  api-rest, restful-api
rest-api
Laravel restfull api boilerplate
Stars: ✭ 57 (+90%)
Mutual labels:  json-api, api-rest
Hotels server
酒店预订系统后台管理系统
Stars: ✭ 249 (+730%)
Mutual labels:  json-api, api-rest
Sarala
Javascript library to communicate with RESTful API built following JSON API specification. inspired by Laravel’s Eloquent
Stars: ✭ 101 (+236.67%)
Mutual labels:  json-api, restful-api
node-crudapi-ts
CRUD boilerplate for create Node Restful API's with Express Framework and Sequelize ORM written in Typescript.
Stars: ✭ 41 (+36.67%)
Mutual labels:  api-rest, restful-api
Crnk Framework
JSON API library for Java
Stars: ✭ 234 (+680%)
Mutual labels:  json-api, restful-api
DummyJSON
DummyJSON provides different types of REST Endpoints filled with JSON data which you can use in developing the frontend with your favorite framework and library without worrying about writing a backend.
Stars: ✭ 213 (+610%)
Mutual labels:  json-api, api-rest
dhiwise-nodejs
DhiWise Node.js API generator allows you to instantly generate secure REST APIs. Just supply your database schema to DhiWise, and a fully documented CRUD APIs will be ready for consumption in a few simple clicks. The generated code is clean, scalable, and customizable.
Stars: ✭ 224 (+646.67%)
Mutual labels:  api-rest, restful-api
spring-boot-data-jpa-mysql
Spring Boot Rest CRUD API example - Spring Data JPA to interact with MySQL/PostgreSQL database.
Stars: ✭ 89 (+196.67%)
Mutual labels:  restful-api
RestSharpFramework
Framework for testing RESTful Services with RestSharp and C# HTTP Client
Stars: ✭ 18 (-40%)
Mutual labels:  restful-api
travels-java-api
An API for travel management. It is built with Java, Spring Boot, and Spring Framework. A toy-project to serve as a theoretical basis for the Medium series of articles I wrote about Java+Spring.
Stars: ✭ 139 (+363.33%)
Mutual labels:  restful-api
koa-rest-router
Most powerful, flexible and composable router for building enterprise RESTful APIs easily!
Stars: ✭ 67 (+123.33%)
Mutual labels:  restful-api
RuralEducation
An app that helps rural students in their education.I used Firebase Realtime database,authentication,Networking requests,User Chats,Google Places Api,Paytm Payment Gateway Integration,Google places Autocomplete Api,Firebase Chat
Stars: ✭ 22 (-26.67%)
Mutual labels:  restful-api

Live-Rates.com

Live-Rates.com is a real-time JSON / XML Webservice & Rest API for forex, commodities and indexes. There is also a Streaming API available for subscribers, starting in 2019.

The rates are updated every second.

Usage

Web-Service

Get the latest foreign exchange reference rates in JSON format.

GET /rates
Host: live-rates.com

Get the latest foreign exchange reference rates in XML format.

GET /rates?rate_format=xml
Host: live-rates.com

Rest API

(requires authentication)

Get the available currency pairs, commodities & indexes and also when they were last updated

GET /api/rates?key=YOUR_KEY
Host: live-rates.com

Get the latest foreign exchange reference rates for the requested params, in JSON format.

GET /api/price?rate=EUR_USD,EUR_GBP&key=YOUR_KEY
Host: live-rates.com

Streaming API

(requires authentication)

With streaming API, it's no longer necessary to request for fresh data every second. When updated data is retrieved by the main server, it's automatically pushed to client via Web-socket technology (socket.io).

The central DNS server (wss.live-rates.com) connects you to the preferred datacenter based on your location and server availability. The available local servers are:

Location Socket Address (*) Socket V3 Address
Router Server wss.live-rates.com wss3.live-rates.com
Europe eu-wss.live-rates.com eu-wss3.live-rates.com
US us-wss.live-rates.com us-wss3.live-rates.com
Asia as-wss.live-rates.com as-wss3.live-rates.com

(*) Required for new client version of socketio (3.xx)

Check the Web-socket API examples, to understand how you can integrate and use it:

streaming_api


Output Response

All APIs - Web-Service / Rest API / Streaming API - output data with the same structure. All fields are sent in string format:

{
	Currency: "EUR/USD"        //Description of the Instrument 
	Rate: "1.13625"            //Same as BID (Deprecated)
	Bid: "1.13625"             //Bid Value of the Currency / Instrument
	Ask: "1.13638"             //Ask Value of the Currency / Instrument
	High: "1.14081"            //24H High of the Currency / Instrument
	Low: "1.13527"             //24H Low of the Currency / Instrument
	Open: "1.13725"            //Opening Value of the Daily Session / Previous Day if Market is Active
	Close: "1.13625"           //Closing Value of the Daily Session / Previous Day if Market is Active
	Timestamp: "1551477238763" //Timestamp of the Last Update
}
...

Historical Data

(requires authentication)

Live-Rates Provides Historical Data for a Limited number of Instruments (+-170). At the moment only Forex Currencies, Metals and Crypto are Available. All Endpoints Require Authentication.

List Available Instruments

This will Output all Available Instruments

GET /historical/list?key=YOUR_KEY
Host: live-rates.com

Get Instrument Price on a Specific Previous Day

This Endpoint will provide the closing Price for the required day (23:59:59 UTC Time).

You can provide the Optional parameter symbols if you only need specific Pairs.

GET /historical?base=EUR&date=YYYY-MM-DD&symbols=USD&key=YOUR_KEY
Host: live-rates.com

Get Series Data for a Base Instrument

This Endpoint will provide the rates for a given past time period that cannot be longer than 30 Days.

You can provide the Optional parameter symbols if you only need specific Pairs.

GET /historical/series?base=EUR&start=YYYY-MM-DD&end=YYYY-MM-DD&symbols=USD&key=YOUR_KEY
Host: live-rates.com

Cross-Rates

For obvious reasons, Live-Rates don't provide all the thousands of possible cross-rate's combinations directly. All our available rates come directly from providers with real liquidity. If you need to get/calculate a rate not available directly, you can convert it, changing the base currency.

Example: MYR/CNY, MYR/GBP or any other cross-rates with base currency MYR are not provided. However that doesn't mean you can't get them. In this case/example, you can directly use the USD/MYR, and then the USD/XXX you want.

{
	"currency":"USD/MYR","rate":"4.14611",
	"currency":"USD/CNY","rate":"6.8421"
}
// 6.84/4.15 = 1.65 MYR/CNY

Multi-Region

Live-Rates has currently multiple servers in 3 Datacenters:

  • Europe: (eu.live-rates.com)
  • America: (us.live-rates.com)
  • Asia (new): (as.live-rates.com)

Requests made to live-rates.com are forwarded and resolved by our central DNS server in Europe.

If you bypass the DNS server and connect directly to a specific datacenter, the connection would be faster however in case of an issue with the server, you will receive a 502 or 521 instead of a Success Response from the alternative server.


Authentication

We allow up to 3 hits/hour/ip for un-authententicated requests, if you need to make API requests or get live rates updated every second you'll need to subscribe a licence and include on your requests the following param:

GET /rates?key=Your key
Host: live-rates.com

Limitation / Throttling

We restrict access to abusers. If your licence is accessing more than 1x per second on a 10-min average, it will be temporarily locked for 10 minutes. You will receive 503 Service Unavailable during that period.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].