Foreign exchange rates & currency rates JSON API

(FREE) Forex Currency Stock is a simple and lightweight Forex API for Current and historical foreign exchange rates and technical indicator.


  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
GET: https://fcsapi.com/api/forex/candle?symbol=EUR/USD&period=1h&access_key=API_KEY

Response : (1 Hour Candle)
{
  "symbol": "USD/JPY",
  "candle": {
    "o": 108.64, // Open
    "h": 108.65, // High
    "l": 108.62, // Low
    "c": 108.64, // Close
    "t": 1574398800000, // Unix Time (UTC) (Candle Time)
    "tm": "2019-11-22 05:00:00", // Date Time (UTC) (Candle Time)
  }
}

Fast & reliable

Forex & Stocks API is designed for exchange rates to handle thousands of requests per second also monitor constantly.

FCS API

Built in Forex compatibility so you can keep all the libraries you already like and use them daily.

Open source

Everything from the code base, homepage to the deployment process is opensource and free to use under a permissive MIT license.



Document

Forex Currency Stock API

Forex Currency Stock API is providing real-time exchange rate prices for 141 world currencies. API comes with multiple endpoints, each serving a different response. Each response includes the latest exchange rate prices for all currencies, historical data of single or multiple currencies, converting the price from one currency to another.

Through FCS API documents, we will guide our API structure, usage of parameters, error codes, and code examples. If there any question is left, please make sure to contact us through Live Chat, or contact form and our team will be happy to help out.

Latest Price

Your API Key is your unique account key, that passed through the API URL's parametersaccess_key={YOUR_API_KEY}. Your unique key authenticates with the FCS API to give you access to our Database.

Basic URL:
https://fcsapi.com/api/forex/latest?symbol=EUR/USD&period=1h
Passed your API key:
https://fcsapi.com/api/forex/latest?symbol=EUR/USD&period=1h&access_key=API_KEY

If you dont have FCS API access key, you can registered here Signup (Free).

FCS API Response:

All exchange rates response in the JSON format by the FCS API. Each API response returned in JSON format OR (XML, object and serialized) formats and parsed easily using any programming language.

Response Example: Below you check an API response example of USD/JPY historical price data, that incude (Open, Close, High, Low) prices of 1H time period and time stamped when price were collected, time in UNIX format. For more details please visit our documentaion page.

GET https://fcsapi.com/api/forex/history?symbol=USD/JPY&period=1h&access_key=API_KEY 

RESPONSE :
{
  "Symbol""USD/JPY",
  "candle": {
     "o"108.64,
     "h"108.65,
     "l"108.62,
     "c"108.64,
     "t"1574398800000,
     "tm""2019-11-22 05:00:00"
  }
 ...{+300 Historical Candles}
}

As show above, API's response data - when queried for real-time OR historical exchange rates, response always contains a timestamp object with index key t containing "UNIX timestamp" format, a symbol object containing the currency short name, a candle object containing the o Open Price, h High Price,l Low Price and c Close Price. Object containing the actual exchange rate data.

For more details and API's, please goto the Documentaion section, The API Requests and response structure will be discussed in detail.