Easy Documentation
Forex Currency Stock API is providing real-time exchange rate prices for 145+ 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.
Checkout complete documentation Visit Forex Rates API .
Latest Price
Your API Key is your unique account key, that passed through the API URL's parameters access_key={YOUR_API_KEY}
. Your unique key authenticates with the FCS API to give you access to our Database.
Basic URL: Return All symbols, You need to use these symbols in Latest Price API, Price conversation, Historical and for Technical signals.
https://fcsapi.com/api-v3/forex/list?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 BTC/USD historical price data, that include (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 documentation page.
https://fcsapi.com/api-v3/forex/history?symbol=BTC/USD&period=1d&access_key=API_KEY
Response Object {
"status": true,
"code": 200,
"msg": "Successfully",
"response": {
"1679050800": {
"o": 1.06335,
"h": 1.064,
"l": 1.0616,
"c": 1.063,
"v": 1,
"t": 1679050800,
"tm": "2023-03-17 11:00:00"
}
},
"info": {
"id": 1,
"decimal": 4,
"symbol": "EUR/USD",
"period": "1h",
"server_time": "2023-03-18 16:06:36 UTC",
"credit_count": 1
}
}
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 Documentation section, The API Requests and response structure will be discussed in detail.