PHP Live Forex Rate API: REST API to return exchange rates from other APIs

Recommend this page to a friend!
  Info   Example   View files (5)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 129 All time: 9,066 This week: 370
Version License PHP version Categories
live-forex-rate-rest 1.0GNU General Publi...5PHP 5, Web services, Finances
Description Author

This class provides REST API to return exchange rates from other APIs.

It responds to REST API requests to get information of Foreign Exchange rates by calling other APIs that provide the requested information.

Currently it returns the current foreign exchange buy and sell rates between two currencies retrieving the values from the Yahoo Finance API.

Picture of Ssaurz Acharya
Name: Ssaurz Acharya <contact>
Classes: 2 packages by
Country: Australia Australia
Age: ???
All time rank: 160524 in Australia Australia
Week rank: 246 1 in Australia Australia
Innovation award
Innovation award
Nominee: 1x

Details

Live-Forex-Rate-REST-Api

This is the live foreign exchange rate RESTful API done by me. The response is returned in JSON format.

Method: GET

/fx/api/currency/rates/currency_pair (For single pair)

/fx/api/currency/rates/currency_pair1, currency_pair2 (For multiple pairs)

Example:

/fx/api/currency/rates/AUDUSD

Single Pair

/fx/api/currency/rates/AUDUSD, EURUSD

Multiple Pair

  Files  
File Role Description
fx (4 files)
README.md Doc. Documentation

  Files  /  fx  
File Role Description
   .htaccess Data Auxiliary data
   Api.php Class Class source
   index.php Example Example script
   RestApi.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:129
This week:0
All time:9,066
This week:370

For more information send a message to info at phpclasses dot org.