Forex API/Getting Started

FCS Forex API

FCS Forex API v4 — supported by 6 live forex data sources. FCS API delivers live rates for 4,500+ forex symbols across 150+ currencies. It provides real-time and historical FX prices, endpoints for selected or all currency pairs, and technical indicators from 1-minute to 1-month intervals. Whether you need a free API for testing or a reliable feed for trading, FCS API offers accurate and dependable forex data and market insights. Test it on the free plan (500 API calls per month) — get a free API key or compare all plans.

4,500+forex symbols
150+currencies
1m to 1Mintervals

Get Started

Quickly integrate the FCS Forex API for real-time and historical rates. Use any language (PHP, JavaScript, Java, C#, etc.). Responses are JSON for easy parsing; try the cURL example below to fetch the latest EURUSD rate.

Follow these 3 quick steps to start using the FCS Forex API.

  1. Step 1: Get Your API Key

    Sign up and get your API key instantly. Free plans available for testing, no credit card required.

  2. Step 2: Try a Simple cURL Request

    Run this command (replace YOUR_API_KEY):

    curl "https://api-v4.fcsapi.com/forex/latest?symbol=EURUSD&access_key=YOUR_API_KEY"
  3. Step 3: Integrate in Your App

    Use the JSON response in your application. Toggle parameters like symbol, period, and exchange to fetch the data you need.

Your API Key Location:

After registration, find your API key in the dashboard under "API Keys" section. Keep it secure and never expose it in client-side code.

API Request Credit Usage

Most API endpoints cost 1 credit per request. Some endpoints (Latest, Profile, History) use 1 credit per 100 records returned. Each plan includes a monthly credit allowance, see the pricing page for the amount. Credits are charged only for successful (HTTP 200) responses.

New to FCS API?

Start with our Quick Start to get up and running in minutes.

How credits count

  • Only Latest price API, Candle API, Profile API count 1 credit per 100 record return.
  • Request count only when response code is {200} and return some record.
  • Requests that return an error or an empty response are not counted.
  • You can log in to your dashboard to check your usage.
  • Credits refresh each month on your billing date.

Best practices

  • Use bulk requests (multiple symbols) to optimize credit usage
  • Cache responses for non-critical applications
  • Handle rate limits gracefully with exponential backoff
  • Always check the status field before processing data
  • Send API requests with POST when you can; GET with the same parameters in the URL also works

API Endpoints

Parameters List

access_keystringrequired

Authentication API KEY

Show more
This is a required parameter for all API requests. It's your unique access key used to authenticate and authorize your request. You can find your API key in your dashboard after registration.

Alternative Authentication: If you have a static IP address, you can whitelist it in your Account → Profile → IP Whitelist section to make requests without the access_key parameter.
typestringoptional

Data type filter: forex, commodity

Show more
Filter results by specific asset type. When you want data for a specific type of financial instrument, use this parameter to narrow down results.

Default: null (returns all types)
Valid Values: forex, crypto, coin, futures,dex, commodity

Example: If you set type=forex, the API will only return forex currency pairs. If type=crypto, only cryptocurrency pairs will be returned.

Use Case: Perfect for applications that focus on specific markets or when you want to avoid mixing different asset types in your results.
sub_typestringoptional

Default:spot, Filter: spot,synthetic

Show more
Spot are normal symbols driven from exchanges
synthetic It is self generated symbol that is not listed on any exchange by using formula
symbolstringoptional

Currency pairs or asset symbols (comma-separated for multiple)

Show more
Specify which currency pairs or financial instruments you want data for. You can request single or multiple symbols in one API call.

Formats Supported:
• Standard: EURUSD, GBPJPY, BTCUSD
• Exchange-specific: ONA:EURUSD, SFO:GBPUSD
• With a slash or hyphen: EUR/USD or EUR-USD (same as EURUSD)
• Multiple symbols: EURUSD,GBPUSD,USDJPY

Finding Valid Symbols: Use our Symbols List API to get all available symbols for your data.
periodstringoptional

Default:1D, Candle Time Period

Show more
Specifies the timeframe for Latest / historical data, candlestick charts, and technical analysis.
Default: 1D (daily)
Valid Values (Minutes): 1, 5, 15, 30, 60, 120, 240, 1440, 10080, 43200
Valid Values (Text Format): 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d, 1w, 1M

Data Availability: Every timeframe reaches back up to the last 10,000 candles counted from today (about one week of 1-minute data, a month of 5-minute data, over a year of 1-hour data), so daily and higher timeframes go back several years. How far back you can request also depends on your plan.
exchangestringoptional

Specific exchange or data feed source name

Show more
Filter results to show data from a specific exchange or price feed provider. Useful when you need prices from a particular source for consistency.

Popular Exchanges:
• Forex: ONA, SFO, FCM and more (6 forex data sources) Get List
• Crypto: Binance, Coinbase, Kraken, OKX and more (8 crypto exchanges, used in crypto API)

Default Behavior: When not specified, returns aggregated data from multiple sources Or First Available exchange.

Use Cases: Regulatory compliance, specific broker integration, price comparison across exchanges.
get_profilebooleanoptional

FALSE|TRUE (0|1) (return symbols extra details)

Show more
Controls whether to include detailed profile information about each financial instrument in the API response.

Default: 0
Valid Values: 0, 1

Profile Information Includes:
• Full instrument name
• Country/region information
• Asset type classification
• Trading specifications
• Decimal precision

Performance Tip: Set to false if you only need price data to reduce response size and improve speed, especially for bulk requests.
countrystringoptional

Filter by country code (ISO 2-letter format)

Show more
Used in Economy calendar. Filter results to show only instruments from specific countries or regions. Useful for compliance, regional focus, or regulatory requirements.

Format: ISO 3166-1 alpha-2 country codes
Examples: US, GB, DE, JP, AU, CA

Use Cases:
• Regulatory compliance (showing only domestic instruments)
• Regional market analysis
• Tax jurisdiction filtering
• Time zone-based trading strategies
amountnumericoptional

Amount to convert (for currency conversion endpoints)

Show more
Specifies the amount of currency to convert when using conversion endpoints.

Default: 1
Valid Range: 0.01 to 999,999,999
Decimal Support: Up to 8 decimal places

Examples:
• amount=100 (convert 100 units)
• amount=1000.50 (convert 1000.50 units)
• amount=0.01 (convert 0.01 units for crypto)

Use Cases: Currency conversion calculators, payment processing, international transfers, portfolio valuation.
fromunixTimeoptional

Start date/time for historical price data

Show more
Defines the start date and time for historical data requests. Used in conjunction with the "to" parameter to specify date ranges.

Supported Formats:
• Date only: 2025-01-01, 2025-12-31
• Date with time: 2025-01-01T09:30, 2025-12-31T16:00
• Unix timestamp: 1735689600 (10 digit only)

Time Zone: All times are in UTC

Default Behavior: When not specified, returns the most recent available history data

Historical Limits:
• Forex: daily data since 1990 for major pairs and crosses
• Every timeframe: up to the last 10,000 candles counted from today (about one week of 1-minute data, a month of 5-minute data, over a year of 1-hour data)
• Crypto: daily data since each pair was listed on its exchange
• How far back you can request also depends on your plan
• Only can used by corporate plan, lower plan can use length parameter to control how many candles return
tounixTimeoptional

End date/time for historical data queries

Show more
Defines the end date and time for historical data requests. Must be used together with the "from" parameter to create a valid date range.

Supported Formats:
• Date only: 2025-01-31, 2025-12-31
• Date with time: 2025-01-31T17:00, 2025-12-31T23:59
• Unix timestamp: 1738281600

Important Notes:
• Must be after the "from" date
• Cannot be in the future
• Maximum range varies by timeframe

Default: Current date/time when not specified

Performance: Smaller date ranges return faster and use fewer API credits.
• Only can used by corporate plan, lower plan can use length parameter to control how many candles return
is_chartstringoptional

History Response for chart format

Show more
If you want to use history api directly in JS chart, Mostly JS chart support simple candle data format
is_chart=0 response ["t":1738281600,"o":1.1,"h":1.2,"l":1.0","c":1.1,"v":150]
is_chart=1 response [1738281600,1.1,1.2,1.0,1.1,150],
Use is_chart=1 when you need specific JS chart history
mergestringoptional

Merge multiple API in 1 respones values(latest, perf, tech, profile, meta)

Show more
We have different API endpoints, You can access all at one. Use in advance API endpoint.
merge=latest,tech To get Active/Prev candle prices and technical indicators
merge=latest,tech,perf To get Active/Prev candle prices and technical indicators with symbol performance
filtersjsonoptional

Advanced filtering using JSON object

Show more
Advanced JSON object for range-based filtering. Format: {"column_operator": value}.
Operators:
  • _eq → Equal to (supports arrays/string)
  • _neq → Not equal to (supports arrays)
  • _gt → Greater than
  • _lt → Less than
  • _gte → Greater than or equal to
  • _lte → Less than or equal to
  • _between → Range between two values ("min,max")
  • _contains → Partial match (supports arrays/string)
Forex Examples:
{"active.c_gt":1.1,"active.chp_between":"0.5,2"} → Currency pairs with price > 1.1 and change % between 0.5–2%
{"active.v_gt":10000} → Pairs with volume > 10,000
{"profile.exchange_eq":"ONA"} → Only from ONA exchange
{"meta.type_neq":"cfd"} → Exclude CFD type pairs
{"meta.name_contains":"USD"} → Pairs containing "USD" in name
Response also includes "filters" → {"applied": {...}, "ignored": [...]} for debugging.
sort_bycolumn_nameoptional

Sort results by specific field or metric

Show more
Column name + direction to sort results. Format: {column_name}_{asc|desc}.
Forex Examples:
sort_by=active.chp_desc → Top gaining currency pairs (by % change)
sort_by=active.v_desc → Most active pairs (by volume)
sort_by=active.c_desc → Highest priced pairs
sort_by=profile.name_asc → Alphabetical by currency pair name

Note: Sorting works across merged APIs; use full path (active., profile., etc.) when columns overlap.
pagenumberoptional

Pagination page number

Show more
Pagination page number (default: 1)
per_pagenumberoptional

Number of records per page

Show more
Number of records per page. Default: 200 | Max: 5000
outputstringoptional

Response format type (json, jsonp, serialize, array)

Show more
Specifies the format of the API response. Choose the format that best fits your application's needs.

Default: json
Available Formats:
• json - Standard JSON format (recommended)
• jsonp - JSON with padding for cross-domain requests
• serialize - Serialized string for legacy systems
• array - PHP array format

Content-Type Headers:
• json: application/json

Recommendation: Use JSON for modern applications.
syntheticstringoptional

0|1 - Enable synthetic/reverse pair lookup. If a symbol is not found in exchanges (e.g : EURUSD), the API will try the reverse pair (USDEUR) and return inverted prices. Default: 0

morestringoptional

Also support sort_by, pagination,etc check our Advance api

pair1stringrequired

Currency From (e.g. EUR)

pair2stringrequired

Currency To (e.g. USD)

fallbackstringoptional

0|1 — 0: default, return only selected exchange symbols; 1: fallback to other exchanges when missing.

crossratesstringoptional

0|1 (default 0). When 1 and multiple single-currency symbols provided, return all pairwise cross rates between them (both directions). When 0 returns symbols that start with each provided currency.

lengthnumberoptional

default: 300, 1-10000, If set 500, Will return 500 candles

columnsstringoptional

Comma-separated column names to return (empty = all columns)(case-sensitive)

keep_parent_colmstringoptional

0|1 - Work with columns parameter. 0: flatten array, 1: keep nested structure

eventstringoptional

One or more codes, e.g. GBIRYY,USNFP, for their release history

importancestringoptional

2 high, 1 medium, 0 low; lists like 1,2 work

metastringoptional

(0|1), Return profile meta info, It will call profile meta info api inside and +1 credit

basestringoptional

Common URL base

url[]stringrequired

Array of API endpoints

public_keystringoptional

Your Public Key, instead of access_key. Works from a browser on an Allowed Domain or from an authorized server IP. The expiry is the one in your dashboard.

expiryintegeroptional

Seconds the token is valid with access_key, 30 to 86400 (default 3600). Not used with public_key.

domainstringoptional

With access_key: the website this token is made for, for example customer.com, so it works from that site only. It must be ONE valid host (no list, no wildcard), otherwise the answer is error 112. Leave it out for a token that works from any website. Not used with public_key (a browser on an Allowed Domain gets a token for its own website, a server let in by IP gets a plain token).

API Endpoints/Symbols List

Symbols List

POST/forex/list

You can access the complete list of supported currency short names and symbols using the API below. These symbols will allow you to fetch indicator values, historical trends, and real-time exchange rates. Our forex API endpoint is regularly updated, guaranteeing you always have the most up-to-date forex currencies in real time.

API Credit Usage: 1 credit count for each 1000 symbols returned (rounded up).

  • API Return All symbols, You need to use these symbols in Latest Price API, Price conversation, Historical and for Technical signals.
  • •type=Forex to get all forex symbols.
  • •type=commodity to get all commodity symbols.
access_keystringrequired

Authentication API KEY

More about access_key
typestringoptional

Data type filter: forex, commodity

More about type
sub_typestringoptional

Default:spot, Filter: spot,synthetic

More about sub_type
exchangestringoptional

Specific exchange or data feed source name

More about exchange
outputstringoptional

Response format type (json, jsonp, serialize, array)

More about output

API EXAMPLE

Get All Forex Support Symbols
https://api-v4.fcsapi.com/forex/list?type=forex&access_key=API_KEY
Return all forex symbols supported.
Symbols By Exchange
https://api-v4.fcsapi.com/forex/list?access_key=API_KEY&exchange=SFO,ONA
Get all Exchanges name here Exchanges
API Endpoints/Latest Price

Latest Prices

POST/forex/latest

The Latest Currency Rate API is extremely beneficial, ensuring you stay informed with up-to-date currency prices. Our Currency Conversion API enables you to retrieve one or multiple currency rates at once. You can get active/current candle OHLC and previous closed candle prices.

API Credit Usage: 1 credit count for each 100 record returned (rounded up).

Real-time Updates:

  • We update the prices of each currency in every 30-60 seconds in JSON API.
  • Your plan cache also sets how fresh a reply is: 60-minute cache on Free; 15-minute cache on Forex Starter; 10-minute cache on Forex Enterprise, Enterprise and Pro; no plan cache on Forex Corporate, Corporate and Ultra.
  • Support All Time periods.
  • Support Active and Previous candle OHLC in all time frame.
access_keystringrequired

Authentication API KEY

More about access_key
symbolstringoptional

Currency pairs or asset symbols (comma-separated for multiple)

More about symbol
periodstringoptional

Default:1D, Candle Time Period

More about period
exchangestringoptional

Specific exchange or data feed source name

More about exchange
get_profilebooleanoptional

FALSE|TRUE (0|1) (return symbols extra details)

More about get_profile
searchstringoptional

Search term for filtering symbols or assets

More about search
outputstringoptional

Response format type (json, jsonp, serialize, array)

More about output
syntheticstringoptional

0|1 - Enable synthetic/reverse pair lookup. If a symbol is not found in exchanges (e.g : EURUSD), the API will try the reverse pair (USDEUR) and return inverted prices. Default: 0

morestringoptional

Also support sort_by, pagination,etc check our Advance api

API EXAMPLE

Multiple Currency Pairs
https://api-v4.fcsapi.com/forex/latest?symbol=EURUSD,USDJPY&access_key=API_KEY
Symbols without exchange, It will Return latest prices of EURUSD,USDJPY from all available exchanges
Synthetic/Reverse Pair
https://api-v4.fcsapi.com/forex/latest?symbol=LYDUSD&synthetic=1&access_key=API_KEY
LYDUSD does not exist in exchanges. With synthetic=1, the API finds USDLYD, inverts the prices (1/price), and returns it as LYDUSD. The response includes converted_from field showing the original source ticker.
Tickers Data EXCHANGE:SYMBOL
https://api-v4.fcsapi.com/forex/latest?
symbol=ONA:EURUSD,FX:USDJPY,NZDJPY
&period=1D&access_key=API_KEY
Return EURUSD from ONA and USDJPY from FX and NZDJPY from all exchanges
Specific Exchange (Return all symbols from selected exchange)
https://api-v4.fcsapi.com/forex/latest?exchange=SFO,ONA&period=1h&access_key=API_KEY
Return all latest prices from specific exchanges with 1-hour candle prices.
Multiple Symbol
https://api-v4.fcsapi.com/forex/latest?
symbol=ONA:EURUSD,ONA:USDJPY,FX:EURUSD,FX:USDJPY
&period=1D
&get_profile=1
&access_key=API_KEY
Multiple Symbol2 (Different approach but same result)
https://api-v4.fcsapi.com/forex/latest
POST Request / JSON Body:
We accept all methods GET/POST/JSON
{
    "type": "forex",
    "sub_type": "spot",
    "symbol":"EURUSD,USDJPY",
    "exchange": "ONA,FX",
    "period": "1d",
    "get_profile": 1,
    "per_page": "20",
    "access_key": "API_KEY"
}

Response Format

Response Fields

oOpen price
hHigh price
lLow price
cCurrent/Close price
tCandle Open Unix timestamp
aAsk Price
bBid Price
vVolume
vwVolume weighted average price
chChange amount
chpChange percentage
updateLast Price update time
base_idif base_id is same for multiple symbols. They are belong to same group

Mini Sample Response

{
    "active": {
        "o": 1.16153,
        "h": 1.16256,
        "l": 1.16128,
        "c": 1.16192,
        "v": 3182,
        "t": 1756155600,
        "vw": 1.16808,
        "ch": 0.00039,
        "chp": 0.034
    },
    "profile": {
        "id": "165558",
        "symbol": "EURUSD",
        "exchange": "FX",
        "name": "EURO / U.S. DOLLAR",
        "type": "forex",
        "sub_type": "",
        "currency": "USD",
        "country": "",
        "base_id": "EU"
    },
    "more": {
        ".....": "more currency prices"
    }
}

Best Practices:

  • If you need to use Multiple API at same time, Use bulk requests (multiple/parallel)
  • Cache responses for non-critical applications
  • Handle rate limits gracefully with exponential backoff
  • Always check the status field before processing data
API Endpoints/Commodities

Commodities

We provide commodity market data for precious metals, energies, and base metals. To request commodities from any endpoint, pass type=commodity. Example symbols include Gold (XAUUSD), Silver (SILVER), Crude Oil (OSX / WTI), Brent (BRENT), Natural Gas (NGAS), Copper, and Platinum. Use the Symbols List API to find exact tickers available on the platform.

API Credit Usage: Same credit rules as other Latest/History endpoints.

Requesting commodities

Add type=commodity to any existing endpoint (Latest, History, Profile, etc.) to filter results to commodity symbols. Examples below show common commodity requests — there is no separate commodities-only endpoint.

access_keystringrequired

Authentication API KEY

More about access_key
symbolstringoptional

Currency pairs or asset symbols (comma-separated for multiple)

More about symbol
periodstringoptional

Default:1D, Candle Time Period

More about period
typestringoptional

Data type filter: forex, commodity

More about type
exchangestringoptional

Specific exchange or data feed source name

More about exchange
outputstringoptional

Response format type (json, jsonp, serialize, array)

More about output

API EXAMPLE

Gold (XAUUSD) Latest
https://api-v4.fcsapi.com/forex/latest?symbol=XAUUSD&type=commodity&access_key=API_KEY
Latest gold price (XAUUSD)
Silver (SILVER) Latest
https://api-v4.fcsapi.com/forex/latest?symbol=SILVER&type=commodity&access_key=API_KEY
Latest silver price (SILVER)
Crude Oil Latest
https://api-v4.fcsapi.com/forex/latest?symbol=OSX&type=commodity&access_key=API_KEY
Latest crude oil price
Multiple Commodities
https://api-v4.fcsapi.com/forex/latest?symbol=XAUUSD,SILVER,OSX&type=commodity&access_key=API_KEY
Fetch multiple commodity prices in one request
History Example
https://api-v4.fcsapi.com/forex/history?symbol=XAUUSD&period=1D&type=commodity&access_key=API_KEY
Use the History endpoint to retrieve long-range OHLC data for commodities.

Response Format

Response Fields

oOpen price
hHigh price
lLow price
cCurrent/Close price
tCandle Open Unix timestamp

Mini Sample Response

{
    "ticker": "XAUUSD",
    "update": 1765318304,
    "active": {
        "o": 2500,
        "h": 2530,
        "l": 2498.5,
        "c": 2523.1,
        "t": 1765317600
    }
}

Quick Tips:

  • Use type=commodity when requesting commodities from any endpoint
  • Check the Symbols List API for exact commodity tickers and exchange coverage
  • Use History API for multi-day OHLC analysis of commodity prices
  • Cache commodity quotes for dashboards to reduce credit usage
API Endpoints/Currency Converter

Currency Converter

POST/forex/converter

In our Currency API, price conversion is an essential function that enables you to exchange between two chosen currencies. To achieve this, simply include the symbols parameter along with the amount you wish to convert. Our Currency Exchange API ensures a seamless and efficient conversion process.

API Credit Usage: Requires Starter plan or higher — 1 credit per request.

Note:

This endpoint accepts only one currency pair per request — use pair1 and pair2 (e.g., pair1=EUR&pair2=USD).

access_keystringrequired

Authentication API KEY

More about access_key
pair1stringrequired

Currency From (e.g. EUR)

pair2stringrequired

Currency To (e.g. USD)

amountnumericoptional

Amount to convert (for currency conversion endpoints)

More about amount
typestringoptional

Data type filter: forex, commodity

More about type
outputstringoptional

Response format type (json, jsonp, serialize, array)

More about output

API EXAMPLE

Converter Example
https://api-v4.fcsapi.com/forex/converter?pair1=EUR&pair2=USD&amount=10&access_key=API_KEY

Response Format

Response Fields

totalTotal 10 EUR convert to USD
price_1x_EUR1 USD price to EUR
price_1x_USD1 EUR price to USD

Mini Sample Response

{
    "total": "11.7362",
    "price_1x_EUR": "0.85206",
    "price_1x_USD": "1.17362",
    "more": "10 EUR into USD"
}

Important Notes:

  • Some symbols exist in both Forex and Crypto (e.g. PKRUSD same symbol in forex and crypto = Pakistani Rupee/USD and Polker/USD).
  • Use type=forex to get currency data, or type=crypto to get token data.
  • Do not use type — When converting between crypto and fiat (e.g. pair1=BTC&pair2=JPY), the system will auto-detect and convert.
API Endpoints/Base Currency

Base Currency

POST/forex/base_latest

Single base currency, it will return all quote prices of all currencies. If direct currency pair not available e.g: we not have a INRBDT, system automatic derive from intermediate pairs (e.g., BDTUSD and INRUSD → INRBDT). Only last close price returned. For OHLC data please use our Latest Price API or Cross API.
e.g: You set USD and API will return USDEUR, USDNZD, USDBTC....

API Credit Usage: Requires Enterprise plan or higher — 1 credit per 500 record returned (rounded up)

Note:

Symbol Only accept Currency name,
Correct Values: USD, JPY Wrong Values: USDJPY, USDNZD
response: If Enter symbol=USD, then return all currencies start with USD*

Quote: By default, we return the selected symbol with the base currency first. If you need the reverse pair (where your currency is the quote instead), you can calculate it manually. For example: if the API returns USDEUR, you can invert it to get 1/USDEUR =>EURUSD.

access_keystringrequired

Authentication API KEY

More about access_key
symbolstringrequired

Single currency code (e.g. USD,JPY,EUR)

More about symbol
typestringrequired

Accepts: forex or crypto

More about type
exchangestringoptional

Comma-separated exchange names; if not available, other exchanges may be used

More about exchange
fallbackstringoptional

0|1 — 0: default, return only selected exchange symbols; 1: fallback to other exchanges when missing.

API EXAMPLE

USD to All forex currency
https://api-v4.fcsapi.com/forex/base_latest?symbol=USD&type=forex&access_key=API_KEY
JPY to All forex currency
https://api-v4.fcsapi.com/forex/base_latest?symbol=JPY&type=forex&access_key=API_KEY
Use symbol=JPY to get all pairs starting with JPY (JPYUSD, JPYEUR,JPYNZD...)
USD AND NZD to All forex currency
https://api-v4.fcsapi.com/forex/base_latest?symbol=USD,NZD&type=forex&access_key=API_KEY
(if multiple symbols pass the output format changed)
USD {"USDAUD":1.5343,"USDBRL":5.4736},"NZD":{"NZDUSD":0.6789,"NZDEUR":0.6123}...

Response Format

Response Fields

USDxxxPrice of currency pair with USD as base

Mini Sample Response

{
    "base": "USD",
    "USDAUD": 1.5343,
    "USDBRL": 5.4736,
    "USDCAD": 1.38208,
    "USDCHF": 0.8055,
    "USDEUR": 0.8587,
    "more": "all prices with Base USD",
    "info": {
        "credit_count": 1
    }
}
API Endpoints/Cross Currency

Cross Currency

POST/forex/cross

Return OHLC (open, high, low, close) and bid/ask data for all cross pairs of the given currency. For example, if you set symbol=USD, the API will return USDJPY, USDEUR, USDGBP, USDPKR, USDxxx and more.
•By default, the API returns pairs with the base currency first (e.g., USDEUR). To get the reverse pair (EURUSD), calculate it manually as 1/USDEUR.
•When using multiple symbols with crossrates=1, the API returns all pairwise cross rates between them (both directions). With crossrates=0 (default), it returns pairs starting with each provided currency.

About crossrates parameter: When crossrates=1 and you pass multiple single-currency symbols (for example symbol=USD,EUR,JPY), the API returns all pairwise cross rates between those currencies (both directions). Example pairs returned: USDEUR, EURUSD, USDJPY, EURJPY, JPYUSD, JPYEUR. When crossrates=0 (default), the API returns symbols that start with each provided currency (e.g. all symbols beginning with USD*, EUR*, JPY*).

API Credit Usage: Requires Enterprise plan or higher — 1 credit/100 records.

Note:

  • Cross Currency API provides derived OHLC data and may be less accurate compared to History and Latest endpoints. For most accurate prices, prefer Latest or History APIs when available.
  • Symbol must be a single currency code, e.g. USD or EUR.
access_keystringrequired

Authentication API KEY

More about access_key
symbolstringrequired

Single Currency Name (USD,EUR,JPY)

More about symbol
typestringrequired

In this API, Accept forex/crypto only

More about type
periodstringrequired

Time period for OHLC data, e.g., 1D for 1 day

More about period
exchangestringoptional

multiple exchange name,
If symbol not available auto choose other exchange

More about exchange
crossratesstringoptional

0|1 (default 0). When 1 and multiple single-currency symbols provided, return all pairwise cross rates between them (both directions). When 0 returns symbols that start with each provided currency.

fallbackstringoptional

0|1 => Work with exchange,
If 0: (default) return only selected exchanges symbols,
If 1: if currency in selected exchange not found, it will be return from other exchange.

API EXAMPLE

USD to All forex currency
https://api-v4.fcsapi.com/forex/cross?symbol=USD&type=forex&period=1D&access_key=API_KEY
By FX,SFO Exchange (E.g: If USDEUR from FX and SFO not found will return from other exchange )
https://api-v4.fcsapi.com/forex/cross?
symbol=USD
&type=forex
&period=1D
&exchange=FX,SFO
&access_key=API_KEY
API Endpoints/History Price

Historical Price API

POST/forex/history

If you're looking to compare current exchange prices with past rates to watch the market trends, our Forex History API offers comprehensive historical exchange data for all supported symbols. For major pairs and crosses, 1-day (1D) historical prices start in 1990 (how far back you can request depends on your plan), with data in 1-day or higher time frames.

API Credit Usage: 1 credit count for each 300 candles returned (rounded up).

100% symbol support from symbol list. All symbols work with History API but 1 symbol in single history API request.

Data Coverage:

Daily (1D) historical data available from 1990 for major pairs and crosses. Every timeframe reaches back up to the last 10,000 candles counted from today: about one week of 1-minute data, about a month of 5-minute data and over a year of 1-hour data. How far back you can request also depends on your plan.

History limits by plan
Free: up to 300 candles (when using length without from/to).
Starter: up to 1000 candles (no from/to).
Enterprise: up to 3500 candles (no from/to).
Pro, Corporate & Ultra: up to 10000 candles with from/to date range support.

Note: These limits apply to simple length-based requests (no explicit from/to). Date-range queries may be further limited per plan. Requests that exceed your plan limits will return an informative error — contact support to upgrade or request bulk access.

access_keystringrequired

Authentication API KEY

More about access_key
symbolstringrequired

Single symbol only,(exchange_name:Symbol) E.g: NZDJPY or FCM:EURUSD

More about symbol
periodstringoptional

Default:1D, Candle Time Period

More about period
fromunixTimeoptional

Start date/time for historical price data

More about from
tounixTimeoptional

End date/time for historical data queries

More about to
lengthnumberoptional

default: 300, 1-10000, If set 500, Will return 500 candles

pagenumberoptional

Design to use in live chart when scroll more candles on chart

More about page
is_chartintoptional

Mostly JS chart support candle data in this format, [1756893600,1.16, 1.17,1.13,1.16,0]
To get similar response, set is_chart=1

More about is_chart
syntheticstringoptional

0|1 - Enable synthetic/reverse pair lookup. If symbol not found (e.g. LYDUSD), tries reverse pair (USDLYD) and returns inverted historical candles. Default: 0

API EXAMPLE

Latest 300 Candles
https://api-v4.fcsapi.com/forex/history?symbol=EURUSD&period=1h&access_key=API_KEY
More Candles (900) - Period 1D
https://api-v4.fcsapi.com/forex/history?symbol=EURUSD&period=1D&length=900&access_key=API_KEY
Date Range Query
https://api-v4.fcsapi.com/forex/history?
symbol=EURUSD
&from=2026-11-01
&to=2026-12-02
&period=1D
&access_key=API_KEY
Live Chart
https://api-v4.fcsapi.com/forex/history?
symbol=EURUSD
&length=300&page=1
&access_key=API_KEY
In live chart:when user scroll back to view historical data, Request new API with increment page number for previous candles. E.g:Page=2

Response Format

Response Fields

oOpening price
hHighest price
lLowest price
cClosing price
vVolume
vwVolume weighted average price
tUnix timestamp
tmHuman readable time

Mini Sample Response

{
    "1748815200": {
        "o": 1.13479,
        "h": 1.14495,
        "l": 1.13476,
        "c": 1.14363,
        "v": 434204,
        "vw": 1.144,
        "t": 1748815200,
        "tm": "2025-06-01 22:00:00"
    }
}

Best Practices:

  • Use appropriate time periods for your use case
  • Limit date ranges to avoid large responses and time
  • Cache historical data as it doesn't change
  • Use length parameter to get more data in single request
API Endpoints/Profile Details

Currency Profile Details

POST/forex/profile

In our API, You can get all the details about Forex currencies. Details like its name, country name, bank name, currency unit, type of notes and more details. Request specific currencies, or use symbol=all to download the complete currency profile list.

API Credit Usage: 1 credit count for each 100 record returned (rounded up).

Note:

This API provides detailed information about individual currencies, not currency pairs. Use currency codes like EUR, USD, GBP.

Full List Mode: Leave symbol empty or set symbol=all to get every profile. In this mode type is required (forex or crypto, one type per request) and the response is paginated via page / per_page, with details in info.pagination (total_records, total_pages, has_next). Full list responses are cached for 24 hours.

access_keystringrequired

Authentication API KEY

More about access_key
symbolstringoptional

Currency codes: EUR,USD,GBP — or "all" (or leave empty) for the full list

More about symbol
typestringoptional

Required when symbol=all. Values: forex or crypto (one type per request)

More about type
pagenumberoptional

Pagination page number

More about page
per_pagenumberoptional

Number of records per page

More about per_page
outputstringoptional

Response format type (json, jsonp, serialize, array)

More about output

API EXAMPLE

Single Currency Profile
https://api-v4.fcsapi.com/forex/profile?symbol=EUR&access_key=API_KEY
Multiple Currencies
https://api-v4.fcsapi.com/forex/profile?symbol=EUR,USD,GBP,JPY&access_key=API_KEY
All Forex Profiles
https://api-v4.fcsapi.com/forex/profile?symbol=all&type=forex&access_key=API_KEY
Full list mode: type is required with symbol=all. All ~140 currency profiles fit in one page at the default per_page=200.

Response Format

Response Fields

short_nameCurrency code (EUR, USD)
nameFull currency name
countryCountry/region
code_nISO numeric code
subunitSmallest currency unit
websiteCentral bank website
symbolCurrency symbol
bankCentral bank name
banknotesAvailable banknotes
coinsAvailable coins

Mini Sample Response

{
    "short_name": "EUR",
    "name": "Euro",
    "country": "Belgium",
    "code_n": "978",
    "subunit": "cent",
    "website": "ecb.europa.eu",
    "symbol": "€",
    "bank": "European Central Bank",
    "banknotes": "€5, €10, €20, €50, €100",
    "coins": "1c, 2c, 5c, 10c, 20c, 50c, €1, €2"
}
API Endpoints/Data Sources

Exchange Coverage & Data Sources

POST/forex/exchanges

Our Forex API aggregates data from 6 forex data sources (liquidity providers and data feeds) worldwide. Get real-time coverage statistics and exchange details to choose the best data sources for your application.

Loading exchange data...

Name Confusion? In forex we aggregate data from top global liquidity providers. Due to our policy agreement with them, we cannot disclose their real names. You can contact us for more information.

Understanding Exchange Data:

View all forex exchanges and data providers we support.
• Exchange The exchange or data provider code
• Sub_type Additional classification or market type (if applicable)
• Total Symbols Number of currency pairs available from this exchange

access_keystringrequired

Authentication API KEY

More about access_key
typestringoptional

Data type filter: forex, commodity

More about type
sub_typestringoptional

Default:spot, Filter: spot,synthetic

More about sub_type
outputstringoptional

Response format type (json, jsonp, serialize, array)

More about output

Exchange Report Examples

All Forex Exchanges
https://api-v4.fcsapi.com/forex/exchanges?type=forex&sub_type=spot&access_key=API_KEY
All Data Types
https://api-v4.fcsapi.com/forex/exchanges?access_key=API_KEY

Response Format

Response Fields

by_typeSummary statistics by data type
by_exchangeDetailed breakdown per exchange
total_symbolsTotal number of symbols available
no_of_exchangesTotal number of exchanges

Exchange Benefits

Real-time DataSocket-supported provide real time price updates
Global Coverage6 forex data sources across different regions and time zones
Quality AssuranceAll data sources are institutional-grade providers
RedundancyMultiple sources ensure high availability
Specialized MarketsRegional exchanges offer unique currency pairs
API Endpoints/Advanced Query

Advanced Query API

POST/forex/advance

(ALL IN ONE) The Advanced Query API is a powerful endpoint that combines multiple data sources and provides flexible filtering, sorting, and pagination capabilities. This unified API allows you to retrieve forex data with advanced customization options, making it perfect for complex trading applications and data analysis.

API Credit Usage: 1 credit per 100 records. Additional credits: +1 per API merged (latest, perf, tech,profile,meta). Example: merge="latest,perf,tech" = 3 credits per 100 records.
Extra: Sort_by, filter, search required Enterprise plan or higher.

Advanced Features:

  • Flexible column selection and filtering
  • Multi-API data merging (latest, profile,meta, performance, technical indicators)
  • Advanced search and symbol combination
  • Pagination and sorting capabilities
  • Dynamic exchange-symbol mapping, Sort and Filter
access_keystringrequired

Authentication API KEY

More about access_key
columnsstringoptional

Comma-separated column names to return (empty = all columns)(case-sensitive)

keep_parent_colmstringoptional

0|1 - Work with columns parameter. 0: flatten array, 1: keep nested structure

symbolstringoptional

Currency pairs or asset symbols (comma-separated for multiple)

More about symbol
typestringoptional

Data type filter: forex, commodity

More about type
sub_typestringoptional

Default:spot, Filter: spot,synthetic

More about sub_type
periodstringoptional

Default:1D, Candle Time Period

More about period
exchangestringoptional

Specific exchange or data feed source name

More about exchange
filtersjsonoptional

JSON/Array object for range filtering. Format: {"column_operator": value}

More about filters
sort_bycolumn_nameoptional

Sort format: column_asc or column_desc, Colum name is case sensitive

More about sort_by
mergestringoptional

Merge APIs: latest,perf, tech,profile, meta (comma-separated)

More about merge
pagenumberoptional

Page number for pagination (default: 1)

More about page
per_pagenumberoptional

Records per page (default: 200, max: 5000)

More about per_page
searchstringoptional

Search in names, Please check search api below for details

More about search
syntheticstringoptional

0|1 - Enable synthetic/reverse pair lookup. If a requested symbol is not found (e.g. LYDUSD), tries the reverse pair (USDLYD) and returns inverted prices. Filters, sorting, and pagination apply to inverted values. Default: 0

outputstringoptional

Response format type (json, jsonp, serialize, array)

More about output

API EXAMPLE

POST/RAW Query (All fields)
https://api-v4.fcsapi.com/forex/advance
POST/RAW JSON both accepted
{
    "symbol":"FX:EURUSD,SFO:JPYUSD",  // EXCHANGE:SYMBOL
    "exchange":"", // return data from specific exchange
    "type":"forex", // forex
    "sub_type":"spot", // spot,synthetic
    "period":"1d", // 1m,5m, to 1month
    "columns":"", // return specific columns/All
    "keep_parent_colm":0, //(0|1) work with columns
    "filters":{"active.c_gt":1}, // range filter
    "sort_by":"active.chp_desc", // columnname_asc /desc
    "merge" :"latest,perf,tech,profile,meta", // merge other api
    "synthetic":0, // 1=try find reverse if not found
    "page":1,
    "per_page":"50", //  
    "search":"", // search and symbol will not work together 
    "access_key":"API_KEY"
}
We have mention all support fileds, Just Copy N paste in raw methods or PostMan for quick testing. You can play with param values to see different results.

Filter Operators:

  • _gt: Greater than | _lt: Less than
  • _gte: Greater than or equal | _lte: Less than or equal
  • _eq: Equal to | _between: Between two values "min,max"
  • Example: {"c_gte": 1.15, "chp_between": "1,50", "volume_gt": 1000}

Does this filter work?

To confirm your filters are applied correctly, check the "filters" field in the API response. It displays which filters were applied and which were ignored.
Example: "filters":{"applied":{"active.c_gt":"1.10"},"ignored":[]} means the filter active.c_gt ≥ 1.10 was successfully applied.

Additionally, the "sort_by" field shows if sorting was applied (e.g. "sort_by":"active.chp_desc" for top gaining pairs).

API Endpoints/Gainer/Loser/Sort

Sorting API Guide (Top Gainers, Losers, Movers)

POST/forex/advance

The Gainer/Loser API is built on our Advanced API framework, specifically optimized for identifying top-performing and worst-performing currency pairs. You can sort results of by using Advanced API by using simple sorting parameters. This allows you to fetch Top Gainers, Losers, Most Active by Volume, or Highest by Value without a separate endpoint. Just append the column name with `_asc` or `_desc`.

Sort Parameter Guide:
Format: {column_name}_{direction} where direction is asc (ascending) or desc (descending).
• Column names are case-sensitive and must match exactly as they appear in the API response
• Only columns present in the response can be used for sorting
• Examples: chp_desc (top gainers), chp_asc (top losers), v_desc (highest volume), c_asc (lowest price)

API Credit Usage: Sorting does not cost extra credits — it works with the same request credits.

How Sorting / Gainers / Losers Works

Attach `sort_by` parameter with column name + `_asc` (ascending) or `_desc` (descending).
Example: `sort_by=chp_desc` will give you the highest gainers first.
What is chp_desc?: In our latest price api we return change % column name as "chp" so you need to use column name that is "chp" in our case, and extend with "_desc" = chp_desc.

Similar if you want to get High price currency first use "?sort_by=c_desc" here c is "close" price

access_keystringrequired

Authentication API KEY

More about access_key
typestringoptional

Data type filter: forex, commodity

More about type
symbolstringoptional

Currency pairs or asset symbols (comma-separated for multiple)

More about symbol
exchangestringoptional

Specific exchange or data feed source name

More about exchange
sort_bycolumn_nameoptional

column name with "_desc"/"_asc" to sort any column

More about sort_by
morestringoptional

All forex/advance filters supported. Combine `sort` with conditions like `limit=20` for best results.

API EXAMPLE

Top Gainers (by % change)
https://api-v4.fcsapi.com/forex/advance?type=forex&sort_by=active.chp_desc&per_page=20&merge=latest&access_key=API_KEY
Fetches the top 20 gainers by percentage change.
Top Losers (by % change)
https://api-v4.fcsapi.com/forex/advance?type=forex&sort_by=active.chp_asc&per_page=20&merge=latest&access_key=API_KEY
Fetches the top 20 losers by percentage change.
Most Active by Volume
https://api-v4.fcsapi.com/forex/advance?type=forex&exchange=FX&sort_by=active.v_desc&per_page=30&merge=latest&access_key=API_KEY
Returns the most traded symbols on FX ranked by volume. (Note volume is self generated in small time frame only, because forex does not have volume it self compare to stock/crypto"
Highest by Price
https://api-v4.fcsapi.com/forex/advance?type=forex&sort_by=active.c_desc&per_page=15&merge=latest&access_key=API_KEY
Shows forex ranked by price.
Sort By Name Z->A
https://api-v4.fcsapi.com/forex/advance?type=forex&sort_by=profile.symbol_desc&per_page=15&merge=latest,profile&access_key=API_KEY
Need to merge profile API, because symbol return with profile. Show Last symbols first in DESC alphabet orders
POST /RAW method - Top Gainers - 1 Hour Performance
https://api-v4.fcsapi.com/forex/advance
POST Request - JSON Body:
Get top performing forex pairs from FX exchange in the last hour, and return only active candle not previous
{
    "type": "forex",
    "sub_type": "spot",
    "symbols":"",
    "exchange": "FX", 
    "period": "1h",
    "columns": "",
    "keep_parent_colm": 0,
    "sort_by": "active.chp_desc",  // Sort by Change % DESC
    "filters": {}, 
    "merge": "latest,profile", // return latest prices and profile
    "per_page": "20", // limit reponse by 20 result only.
    "access_key": "API_KEY"
}

Tips for Sorting:

  • Use `sort_by=chp_desc` for Top Gainers and `chp_asc` for Top Losers.
  • Use `sort_by=v_desc` to get most active symbols.
  • Always pair sorting with `per_page` to optimize API usage.

Does this sort work?

To check if your sorting is applied correctly, you can look at the "sort_by" field in the API response. It shows which column was used for sorting and the direction (asc or desc).
Example: "sort_by":"chp_desc" means the results are sorted by change percentage in descending order. and also check "sort_result":"success" means sort applied successfully.

Analysis/Moving Averages

Moving Average API (EMA & SMA)

POST/forex/ma_avg

The Moving Average API provides calculated Exponential Moving Average (EMA) and Simple Moving Average (SMA) values for multiple time periods. This helps traders and developers analyze short-term and long-term market trends using reliable forex technical indicators. You can easily integrate these signals into trading bots, charting tools, or algorithmic strategies.

API Credit Usage: Requires Enterprise plan or higher — 1 credit counts for each 100 records returned (rounded up).

Key Features:

  • Get both EMA (Exponential Moving Average) and SMA (Simple Moving Average) values.
  • Multiple intervals supported: 10, 25, 100, 200 (default).
  • Includes signal strength, score, and market sentiment summary.
access_keystringrequired

Authentication API KEY

More about access_key
symbolstringoptional

Currency pairs or asset symbols (comma-separated for multiple)

More about symbol
periodstringoptional

Default:1D, Candle Time Period

More about period
exchangestringoptional

Specific exchange or data feed source name

More about exchange
outputstringoptional

Response format type (json, jsonp, serialize, array)

More about output
morestringoptional

Supports bulk queries, pagination, and advanced filtering. Check our Advanced API.

API EXAMPLE

Single Pair (Default Exchange)
https://api-v4.fcsapi.com/forex/ma_avg?symbol=EURUSD&period=1h&access_key=API_KEY
Returns moving averages (EMA & SMA) for EURUSD in 1-hour timeframe from all exchanges.
Specific Exchange + Pair
https://api-v4.fcsapi.com/forex/ma_avg?symbol=FX:USDJPY&period=1D&access_key=API_KEY
Retrieve SMA & EMA calculations for USDJPY only from the FX exchange (daily candles).
Multiple Symbols
https://api-v4.fcsapi.com/forex/ma_avg?symbol=EURUSD,GBPUSD,USDJPY&period=1D&access_key=API_KEY
Get moving averages for multiple symbols in a single request.
POST JSON Example
https://api-v4.fcsapi.com/forex/ma_avg
POST Request - JSON Body:
{
    "type": "forex",
    "symbols": "EURUSD,USDJPY",
    "exchange": "FX",
    "period": "1d",

    "access_key": "API_KEY"
}

Response Format

Response Fields

signalSummary of overall MA trend
signal.summaryWEAK_BUY/STRONG_BUY/BUY and same for SELL
signal.scoreNumeric score showing strength of trend (-100 to 100)
signal.trendWEAK,MODERATE, STRONG
signal.confidenceSignal confidence: HIGH, MEDIUM, LOW
ma_avgContains all (EMA & SMA)
ema10.vEMA Value
ema10.sEMA Signal
ema10.nEMA Name
ema10.scoreEMA Signal strength score -100 to 100

Mini Sample Response

{
    "signal": {
        "summary": "WEAK_SELL",
        "score": -23,
        "confidence": "LOW",
        "trend": "WEAK",
        "volatility": "LOW"
    },
    "ma_avg": {
        "ema10": {
            "v": 1.16496,
            "s": "Neutral",
            "n": "EMA 10",
            "score": 0
        },
        "ema25": {
            "v": 1.16524,
            "s": "Neutral",
            "n": "EMA 25",
            "score": 0
        }
    }
}

Best Practices:

  • Use higher period (100, 200) for trend analysis and smaller (10, 25) for entry/exit signals.
  • Combine EMA & SMA values with other technical indicators (RSI, MACD) for stronger signals.
  • Cache results for heavy requests to reduce API usage.
  • Always validate confidence & score before executing trades.
Analysis/Technical Indicators

Technical Indicators API

POST/forex/indicators

The Technical Indicators API provides a comprehensive set of popular technical indicators and Oscillator indicators including RSI, MACD, Stochastic, and more. Get precise indicator values for your trading strategies and analysis.

API Credit Usage: Requires Enterprise plan or higher — 1 credit counts for each 100 records returned (rounded up).

What You Get:

  • Real-time calculation of top oscillators and indicators (RSI, MACD, Stochastic, ADX, ATR, Ultimate Oscillator, Parabolic SAR and Bollinger Bands).
  • Volatility insights including ATR % and Bollinger Band squeeze detection.
  • Price action metrics such as candlestick body/shadow sizes and bullish/bearish pattern detection.
  • Unified signal summary with trend, score, volatility, and confidence.
access_keystringrequired

Authentication API KEY

More about access_key
symbolstringoptional

Currency pairs or asset symbols (comma-separated for multiple)

More about symbol
periodstringoptional

Default:1D, Candle Time Period

More about period
exchangestringoptional

Specific exchange or data feed source name

More about exchange
outputstringoptional

Response format type (json, jsonp, serialize, array)

More about output
morestringoptional

Supports bulk queries, pagination, and advanced filtering. Check our Advanced API.

API EXAMPLE

Multiple Symbols
https://api-v4.fcsapi.com/forex/indicators?symbol=EURUSD,GBPUSD,USDJPY&period=1D&access_key=API_KEY
Fetch indicators for multiple symbols in one request (daily candles).
POST JSON Example
https://api-v4.fcsapi.com/forex/indicators
POST Request - JSON Body:
{
    "type": "forex",
    "symbols": "EURUSD,USDJPY",
    "exchange": "FX",
    "period": "1d",
    "access_key": "API_KEY"
}

Response Format

Response Fields

summaryWEAK_BUY/STRONG_BUY/BUY and same for SELL
scoreStrength score (-100 to 100)
-100:StrongSell,+100 StrongBuy
confidenceHIGH, MEDIUM, LOW
trend(Strong, Weak, Neutral)
volatilityVolatility metrics
volatility.atr_perATR % of price
volatility.true_rangeATR
volatility.levelVolatility classification
bollingerBollinger Bands analysis
bollinger.width_perBand width %
bollinger.pos_perPosition band %
bollinger.middleMiddle line value
bollinger.squeezeSqueeze detection
price_actionCandle/Pattern metrics
p.body_sizeCandle body size
p.shadow_uUpper shadow
p.shadow_lLower shadow
p.body_range_perBody-to-range percentage
p.c_typeType (Bullish/Bearish)
p.patternPattern (Normal, Doji, etc.)
oscillators.rsiRelative Strength Index (RSI)
rsi.vIndicator Value
rsi.sIndicator Signal
rsi.nIndicator Name
rsi.scroreSignal Strength
moreSame For all oscillators

Mini Sample Response

{
    "ticker": "FCM:EURUSD",
    "signal": {
        "summary": "BUY",
        "score": 48.6,
        "confidence": "LOW",
        "trend": "WEAK",
        "volatility": "LOW"
    },
    "indicators": {
        "volatility": {
            "atr_per": 0.663,
            "true_range": 0.00739,
            "level": "Low"
        },
        "bollinger": {
            "width_per": 1.097,
            "pos_per": 50.78,
            "middle": 1.16502,
            "squeeze": "Squeeze"
        },
        "price_action": {
            "body_size": 0.00203,
            "shadow_u": 0.00213,
            "shadow_l": 0.00323,
            "body_range_per": 27.47,
            "c_type": "Bullish",
            "pattern": "Normal"
        }
    },
    "oscillators": {
        "rsi": {
            "v": 49.2919,
            "s": "Neutral",
            "n": "RSI",
            "score": 0
        },
        "stoch": {
            "v": 43.9802,
            "s": "Sell",
            "n": "STOCH K%",
            "score": -25
        },
        "macd": {
            "v": 0.0008076,
            "s": "Sell",
            "n": "MACD Level",
            "score": -25
        }
    }
}

Best Practices:

  • Use multiple indicators together (RSI + MACD + Bollinger) for stronger signals.
  • Do not rely on a single indicator for trading decisions.
  • Cache responses where possible to reduce credit usage.
  • Always check the signal confidence before applying indicators to live strategies.
Analysis/Pivot Points

Pivot Points API

POST/forex/pivot_points

The Pivot Points API delivers key support and resistance levels calculated from multiple pivot point methods. These levels are widely used in forex and stock markets for intraday trading, trend confirmation, and setting stop-loss or take-profit targets. Supported methods include Classic, Fibonacci, Camarilla, Woodie, and Demark.

API Credit Usage: Requires Enterprise plan or higher — 1 credit counts for each 100 records returned (rounded up).

Features:

  • Provides multiple pivot calculation methods in a single API call.
  • Returns support (S1, S2, S3) and resistance (R1, R2, R3) levels.
  • Includes Demark pivots (different calculation method).
  • Useful for day traders and strategy automation.
access_keystringrequired

Authentication API KEY

More about access_key
symbolstringoptional

Currency pairs or asset symbols (comma-separated for multiple)

More about symbol
periodstringoptional

Default:1D, Candle Time Period

More about period
exchangestringoptional

Specific exchange or data feed source name

More about exchange
outputstringoptional

Response format type (json, jsonp, serialize, array)

More about output
morestringoptional

Supports bulk queries, pagination, and advanced filtering. Check our Advanced API.

API EXAMPLE

Single Pair Pivot Points
https://api-v4.fcsapi.com/forex/pivot_points?symbol=EURUSD&period=1D&access_key=API_KEY
Returns daily pivot levels for EURUSD using all supported methods.
Specific Exchange Symbol
https://api-v4.fcsapi.com/forex/pivot_points?symbol=FX:GBPUSD&period=4h&access_key=API_KEY
Get 4-hour pivot levels for GBPUSD from FX exchange.
POST JSON Example
https://api-v4.fcsapi.com/forex/pivot_points
POST Request - JSON Body:
{
    "type": "forex",
    "symbols": "EURUSD,USDJPY",
    "exchange": "FX",
    "period": "1d",
    "access_key": "API_KEY"
}

Best Practices:

  • Use pivot points for intraday support and resistance zones.
  • Combine pivot levels with oscillators (RSI, MACD) for confirmation.
  • Check multiple methods (Classic + Fibonacci + Camarilla) for stronger levels.
  • Always align pivot calculations with your trading timeframe (1h, 4h, 1D).
Analysis/Performance Data

Performance Analysis API

POST/forex/performance

Comprehensive performance analytics for currency pairs including historical highs/lows, percentage changes across multiple timeframes, and volatility metrics. Essential for fundamental analysis, portfolio management, and risk assessment of forex instruments.

API Credit Usage: Requires Enterprise plan or higher — 1 credit count for each 100 records returned (rounded up).

Performance Metrics:

  • Historical Highs/Lows: 1M, 3M, 6M, 52W periods
  • Performance Changes: 1W, 1M, 3M, 6M, YTD, 1Y, 5Y, All-time
  • Volatility Analysis: Daily, Weekly, Monthly calculations
  • All-time Records: Highest and lowest historical prices
access_keystringrequired

Authentication API KEY

More about access_key
symbolstringoptional

Currency pairs or asset symbols (comma-separated for multiple)

More about symbol
periodstringoptional

Default:1D, Candle Time Period

More about period
exchangestringoptional

Specific exchange or data feed source name

More about exchange
outputstringoptional

Response format type (json, jsonp, serialize, array)

More about output

API EXAMPLE

Complete Performance Analysis
https://api-v4.fcsapi.com/forex/performance?symbol=EURUSD&access_key=API_KEY
Get comprehensive performance data including all timeframe highs/lows, percentage changes, and volatility metrics
Exchange-Specific Performance
https://api-v4.fcsapi.com/forex/performance?exchange=FCM&access_key=API_KEY
Performance analysis from specific exchange data source
Multiple Symbols Analysis
https://api-v4.fcsapi.com/forex/performance?symbol=EURUSD,USDJPY,GBPUSD&access_key=API_KEY
Compare performance metrics across multiple currency pairs

Response Format

Response Fields

H1M/L1M1-month high / low prices
H3M/L3M3-month high / low prices
H6M/L6M6-month high / low prices
H52/L5252-week high / low prices
HIGHEST/LOWESTAll-time high/low
PWPerformance - 1 week (%)
P1MPerformance - 1 month (%)
P3MPerformance - 3 months (%)
P6MPerformance - 6 months (%)
PYPerformance - year (%)
PYTDPerformance - Year to date
P5YPerformance - 5 years (%)
PAllPerformance - All time (%)
voltDDaily volatility %
voltWWeekly volatility %
voltMMonthly volatility %

Mini Sample Response

{
    "H1M": 1.17428,
    "L1M": 1.15276,
    "H3M": 1.18299,
    "L3M": 1.13717,
    "H6M": 1.18299,
    "L6M": 1.07332,
    "H52": 1.18299,
    "L52": 1.01775,
    "HIGHEST": 1.60381,
    "LOWEST": 0.95361,
    "PW": 0.0360736,
    "P1M": 0.527797,
    "P3M": 2.00122,
    "P6M": 8.00406,
    "PYTD": 12.489,
    "PY": 5.19943,
    "P5Y": -1.72676,
    "PAll": -1.78973,
    "voltD": 0.418582,
    "voltW": 0.567319,
    "voltM": 0.664304
}
Analysis/Economy Calendar

Economy Calendar

POST/forex/economy_cal

Returns macro releases (rate decisions, CPI, payrolls, PMI and more) for a UTC day or range, each row with actual, forecast and previous readings plus a 0-2 impact score. For event codes, impact filters and an MT4/MT5 news filter guide, see the full Economic Calendar API documentation.

API Credit Usage: Corporate plan or higher; 1 credit per 50 events in the reply, rounded up.

Global Coverage:

Economic events from major economies including US, EU, UK, Japan, Canada, Australia and more. Events include GDP, inflation, employment, central bank decisions.

Plan Required: Forex Corporate+ or All Corporate+

access_keystringrequired

Personal API key from your dashboard

More about access_key
symbolstringoptional

Currencies or pairs; USDJPY covers both USD and JPY

More about symbol
countrystringoptional

ISO codes such as JP,CA; takes priority over symbol

More about country
eventstringoptional

One or more codes, e.g. GBIRYY,USNFP, for their release history

fromstringoptional

Window start in UTC: date, date-time or unix seconds

tostringoptional

Window end in UTC; a bare date includes that whole day

importancestringoptional

2 high, 1 medium, 0 low; lists like 1,2 work

outputstringoptional

json by default; also jsonp, serialize, array, object

Economy calendar requests

Today's Events
https://api-v4.fcsapi.com/forex/economy_cal?access_key=API_KEY
All countries, current UTC day
https://api-v4.fcsapi.com/forex/economy_cal?access_key=API_KEY
USD top-tier releases
https://api-v4.fcsapi.com/forex/economy_cal?symbol=USD&importance=2&access_key=API_KEY
USD and JPY events rated 2 (high).
Date Range
https://api-v4.fcsapi.com/forex/economy_cal?from=2025-01-01&to=2025-01-31&access_key=API_KEY

Response Format

Response Fields

eventEvent code identifier
titleEvent title/name
indicatorEconomic indicator name
countryCountry code
currencyCurrency affected
importanceImpact grade as text: "0" low, "1" medium, "2" high
actualActual released value
forecastForecasted value
previousPrevious period value
dateEvent date and time in UTC
categoryTopic code such as prce; empty if none
reference_dateDay the reading refers to, YYYY-MM-DD
source_urlWeb address of the publisher; empty if none
Others/Search API

Search API

POST/forex/search

This API is like website search. You can search all currencies with similar names. It will search in currency full name and short name.

Search Features:

Search by symbol name, full name, exchange, or currency type. Supports pagination and filtering by exchange or type.

access_keystringrequired

Authentication API KEY

More about access_key
searchstringrequired

Search term

More about search
exchangestringoptional

Filter by exchange

More about exchange
typestringoptional

Filter by type: forex,crypto

More about type
metastringoptional

(0|1), Return profile meta info, It will call profile meta info api inside and +1 credit

pagenumberoptional

Page number for pagination

More about page
outputstringoptional

Response format type (json, jsonp, serialize, array)

More about output

API EXAMPLE

Search EUR pairs
https://api-v4.fcsapi.com/forex/search?search=EUR&per_page=20&access_key=API_KEY
Search with Exchange Filter
https://api-v4.fcsapi.com/forex/search?search=USD&per_page=20&exchange=ONA&access_key=API_KEY

Response Format

Response Fields

idUnique symbol ID
symbolSymbol name
nameFull instrument name
typeAsset type (forex, crypto,coin,stock)
exchangeExchange/provider name
countryCountry code
bulk_supportBulk API support (1/0)

Mini Sample Response

{
    "id": "1292",
    "symbol": "AUDCNH",
    "name": "Australian Dollar / Chinese Yuan",
    "type": "forex",
    "sub_type": "-",
    "currency": "CNH",
    "exchange": "CAPITALCOM",
    "country": "CN",
    "base_id": "AU",
    "bulk_support": "1"
}
Others/Multiple / Parallel

Multiple URL Requests

POST/forex/multi_url

When you need to access multiple API endpoints simultaneously, it can be time-consuming. You can write custom code to send parallel API requests or simply use this API for a faster solution. For example, if you're calling 10 APIs and each takes 2 seconds, that adds up to 20 seconds. This API can retrieve all 10 results in just 2 seconds!

API Credit Usage: Credit usage = sum of all individual API calls

Performance Boost:

Execute multiple API calls in parallel instead of sequential requests. Significantly reduces total response time for multiple endpoint calls.

access_keystringrequired

Authentication API KEY

More about access_key
basestringoptional

Common URL base

url[]stringrequired

Array of API endpoints

outputstringoptional

Response format type (json, jsonp, serialize, array)

More about output

API EXAMPLE

Multiple Different APIs (get Latest/technical and history in 1 request)
https://api-v4.fcsapi.com/forex/multi_url
?url[1]=forex/latest?symbol=EURUSD
&url[2]=forex/history?symbol=EURUSD
&url[3]=forex/indicators?symbol=EURUSD
&access_key=API_KEY
Multiple History
https://api-v4.fcsapi.com/forex/multi_url
?url[1]=/forex/history?symbol=USDJPY
&url[2]=/forex/history?symbol=EURUSD
&url[3]=/forex/history?symbol=NZDJPY
&period=1D
&access_key=API_KEY
With Base URL
https://api-v4.fcsapi.com/forex/multi_url?base=forex/latest?&url[eur]=symbol=EURUSD&url[gbp]=symbol=GBPUSD&access_key=API_KEY

Response Format

Response Fields

array_keyResponse indexed by your provided array keys
statusIndividual API call status
responseIndividual API response data

Mini Sample Response

{
    "url1": [
        {
            "status": true,
            "response": []
        }
    ],
    "url2": [
        {
            "status": true,
            "response": []
        }
    ]
}

Use Cases:

  • Dashboard data loading (prices + history + indicators)
  • Portfolio tracking (multiple symbols at once)
  • Comparative analysis (same data from different sources)
  • Bulk data processing for applications
Security/JWT Token

Use the Forex API from your website safely

POST/forex/jwt_token

Show live forex rates in a web page or app without putting your access_key in it. Create a short-lived JWT token, then call any endpoint with only jwt_token.

First, one question: where does your API call run? If it runs on your own server, just use access_key and you are done. This page is for calls that run in a browser or an app, where anyone can open DevTools and read the URL. So the access_key must never go there. Instead your page gets a JWT token: a small signed pass that holds your Public Key and an expiry time, nothing more. Then it calls any endpoint with only jwt_token=TOKEN.

  1. Step 1: Create a token

    A) On your backend, with the access key

    You decide who gets a token and how long it lives. Your server calls:

    // Your server asks for a token (expiry in seconds, 30 to 86400)
    https://api-v4.fcsapi.com/forex/jwt_token?access_key=YOUR_ACCESS_KEY&expiry=300
    
    // Same, but the token only works from the website customer.com
    https://api-v4.fcsapi.com/forex/jwt_token?access_key=YOUR_ACCESS_KEY&expiry=300&domain=customer.com

    expiry is in seconds, 30 to 86400 (default 3600). The optional domain makes the token work from that one website only (see "Domain-bound tokens" below). It has to be ONE valid host: a list, a wildcard or a broken name gives error 112 instead of a token that quietly works everywhere, and the answer repeats the host in a domain field. Small tip: protect your own token URL with your site login, otherwise anyone could ask it for tokens. A widget key or a RapidAPI call can never create a token (error 104), use your own access_key from your server.

    B) No backend: your website asks for the token itself

    Add your website in Dashboard → Security → Allowed Domains (Public Key) and set the Token Expiry on the same page (empty = 300 seconds). Then your page calls:

    https://api-v4.fcsapi.com/forex/jwt_token?public_key=YOUR_PUBLIC_KEY

    It works only from your allowed domain (or a server IP listed in IP Authorizations). An expiry or domain in the URL is ignored, the dashboard value is used. A browser on an Allowed Domain gets a token tied to its own website automatically; a caller let in only by its server IP gets a plain token, which is still checked against your Allowed Domains and IP Authorizations when used. The answer does not say which one you got. Token expired? Call the same URL again.

  2. Step 2: Call any endpoint with only the token

    https://api-v4.fcsapi.com/forex/latest?symbol=EURUSD&jwt_token=TOKEN

    That is all. Everything we need (Public Key, expiry, signature) is inside the token, so do not add access_key, public_key or expiry. You can send it as jwt_token in the query string, in a POST form, in a JSON body, or in the header Authorization: Bearer TOKEN. If an access_key is sent too, the access key is used.

    // In a page: the token in the URL needs no extra browser round trip
    fetch('https://api-v4.fcsapi.com/forex/latest?symbol=EURUSD&jwt_token=' + token)
    
    // From a server or an app: the token stays out of URLs and logs
    curl -H "Authorization: Bearer TOKEN" "https://api-v4.fcsapi.com/forex/latest?symbol=EURUSD"

    Which one? A page is fastest with the URL form, because a custom header makes the browser send an extra permission request first. A server or app can use the header to keep tokens out of logs. The header counts only when its value is one of our JWTs and nothing else is sent to log in (no access_key, jwt_token, _public_key, _token or _expiry). A Bearer token of another kind (OAuth, a gateway) is ignored, so it cannot break a call that works without it.

    The token structure

    It is a standard JWT: three base64url pieces joined by dots. The payload has only pub (your Public Key, not a secret) and exp (expiry as Unix seconds, a number). The access key is never inside, it only signs the token. Signing is HS256, and the server ignores the header's alg field, so nobody can switch it to a weaker method.

    jwt = base64url(header) . base64url(payload) . base64url(signature)
    
    header     {"alg":"HS256","typ":"JWT"}
    payload    {"pub":"YOUR_PUBLIC_KEY","exp":2000000000}   // exp = Unix seconds, a number (a decimal is accepted and rounded down)
    signature  HMAC-SHA256(header + "." + payload, KEY)  ->  raw bytes  ->  base64url   // 43 characters, no "=" padding, no spaces
    
    KEY for a plain token  = your access key
    KEY for a bound token  = hex( HMAC-SHA256("jwt|" + domain, access_key) )   // 64 hex characters, used as text
                             domain = lowercase, no http://, no www., no port   e.g. customer.com

    Notice that nothing tells whether a token is plain or bound to a domain. The server finds that out while checking the signature, so there is no hint to read or remove. To check your own code, use these fake keys, the output has to match exactly:

    public key  YOUR_PUBLIC_KEY
    access key  YOUR_ACCESS_KEY
    exp         2000000000
    
    plain token:
    eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwdWIiOiJZT1VSX1BVQkxJQ19LRVkiLCJleHAiOjIwMDAwMDAwMDB9.7Pd_c3hCFgqfbAMZkS4KDm8YnGgVCOdTKuwJ-zMmeHk
    
    bound to customer.com (KEY = 6b770215fc5f6ac64d9c2cc046e5b3fb8a8b47dccc0f68ad045baac581855d77):
    eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwdWIiOiJZT1VSX1BVQkxJQ19LRVkiLCJleHAiOjIwMDAwMDAwMDB9.x8leOGeB6QkFobW0-mwV_jVZMcW66ZhEwQj3DQlxPJ4

    Create one in your own code

    You can skip our create URL and sign tokens yourself, with any JWT library in any language. The recipe is always the same: payload pub + exp (Unix seconds, a number), algorithm HS256, and one of the two keys above.

    // PHP, no library needed
    $exp  = time() + 300;                                   // a whole number of seconds since 1970
    $b64  = fn($s) => rtrim(strtr(base64_encode($s), '+/', '-_'), '=');
    $head = $b64('{"alg":"HS256","typ":"JWT"}');
    $body = $b64(json_encode(['pub' => $public_key, 'exp' => $exp]));
    
    $key  = $access_key;                                         // plain token
    // $key = hash_hmac('sha256', 'jwt|customer.com', $access_key);  // or: token bound to customer.com
    
    $jwt  = "$head.$body." . $b64(hash_hmac('sha256', "$head.$body", $key, true));
    
    // With a library it is one line (firebase/php-jwt):
    // $jwt = \Firebase\JWT\JWT::encode(['pub' => $public_key, 'exp' => $exp], $key, 'HS256');
    // Node.js (npm install jsonwebtoken)
    const jwt = require('jsonwebtoken');
    const crypto = require('crypto');
    
    let key = ACCESS_KEY;                                                                 // plain token
    // key = crypto.createHmac('sha256', ACCESS_KEY).update('jwt|customer.com').digest('hex'); // or: bound to customer.com
    
    const token = jwt.sign(
      { pub: PUBLIC_KEY, exp: Math.floor(Date.now() / 1000) + 300 },                     // exp: whole seconds
      key,
      { algorithm: 'HS256', noTimestamp: true }
    );
    # Python (pip install PyJWT)
    import time, hmac, hashlib, jwt
    
    key = ACCESS_KEY                                                                   # plain token
    # key = hmac.new(ACCESS_KEY.encode(), b'jwt|customer.com', hashlib.sha256).hexdigest() # or: bound to customer.com
    
    token = jwt.encode({'pub': PUBLIC_KEY, 'exp': int(time.time()) + 300}, key, algorithm='HS256')

    Two traps: exp must be a number, not text in quotes (that gives invalid_format; a decimal is accepted and rounded down, a whole number is safest), and for a bound token the key is the 64-character hex text, not bytes. Extra claims such as iat are accepted but not needed. Some libraries reject an HS256 key shorter than 32 characters; the bound key is always 64.

    Also good to know: our create endpoint never gives more than 86400 seconds, but the API itself sets no limit on exp. A token you sign yourself with a far-away exp stays valid until then, and only a new access key kills it. Keep self-made tokens short.

    Domain-bound tokens

    A plain token works from any website, like a bus ticket anyone can use. A domain-bound token is stamped for one website, say customer.com. Used anywhere else, it fails with invalid_token.

    • Create it with &domain=customer.com on your server (one host only, anything else is error 112), or sign it with the derived key. Tokens from public_key made by a browser on an Allowed Domain are bound automatically; a caller let in only by its server IP gets a plain token.
    • The domain must be the exact website the browser puts in the Origin header (the Referer is used when there is no Origin). www. and the port are ignored. A subdomain is a different website: blog.customer.com needs its own token. (Allowed Domains does cover subdomains, bound tokens do not.) A call with neither header (curl, a server) cannot use a bound token and gets invalid_token, so give servers a plain one.
    • The honest limit: JavaScript on a page cannot change Origin, so other websites and plain curl calls are stopped. A script running on a server can send any Origin it wants. So it is a strong lock against other websites and casual copying, not a password. Short expiry is your friend.

    What the API checks, in this order

    1. The token itself: valid JWT shape, the Public Key exists, not expired, and the signature fits (made for the website of the request, or plain).
    2. Key rule: allowed domains or IPs. This one is for a plain token. Allowed Domains (Public Key) empty means all websites are allowed. If you filled it, the website in the browser must be in the list, or the call must come from an IP in IP Authorizations (servers send no Origin).
    3. A domain-bound token skips the key rule, its signature already proved the website.

    IP Authorizations are a pass list for servers, not a second lock: an IP on the list gets in even when no Allowed Domain matches, and an empty Allowed Domains list lets everyone in whatever the IP list says.

    Then the normal plan and rate-limit checks follow. Be careful with an empty Allowed Domains list: plain JWTs work from anywhere, but a Public Key alone (no token) does not, and jwt_token?public_key= creates tokens only for an authorized server IP. If the page creates its own tokens, fill the list.

    short_codeMeansWhat to do
    invalid_formatThe value is not a JWT (three parts with dots), or the payload has no pub (text) and exp (a number)Send exactly what jwt_token gave you, with no spaces or line breaks around it. Building it yourself? exp must be a number, not text in quotes, and the signature must be base64url without = padding (43 characters).
    invalid_publickeyThe pub inside the token is not a Public Key we knowCheck the Public Key in Dashboard → API Public Key.
    expire_tokenThe expiry time has passedAsk for a new token and repeat the call. No page reload needed.
    invalid_tokenThe signature does not match: wrong access key, a changed token, or a domain-bound token used from another website or from a serverSign with the right key. For a bound token, call it from the same website it was made for.
    invalid_domainA plain token, your Allowed Domains list is filled, and this website is not in it (or this server IP is not authorized). Also (with a filled list) when the browser sends an Origin without a domain (file://, a sandboxed iframe); and always when the saved list of the key cannot be read (the key is then closed, not opened)Add the website in Allowed Domains (Public Key) or the server IP in IP Authorizations. The message names what is missing. A token bound to the website skips this rule.

    All of these come as code 101, for forex and stock alike. The create endpoint can also answer 104 (access_key and public_key both missing, or the request came through a widget key or RapidAPI, which can never create a token) and 112 (bad expiry, a domain that is not one valid host, or no Public Key created yet).

    Old format, still works

    Existing code keeps working. That means _public_key + _expiry + _token (_token = hash_hmac('sha256', $public_key . $expiry, $access_key)), and a bare _public_key from an Allowed Domain. For new work use jwt_token.

    All examples in one place

    Here is the same EURUSD request in every safe style, so you can compare them at once.

    // 1) Access key: your server only, never inside a page or an app
    https://api-v4.fcsapi.com/forex/latest?symbol=EURUSD&access_key=YOUR_ACCESS_KEY
    
    // 2) Create a JWT token: on your server (plain, then bound to a website), or from an allowed website
    https://api-v4.fcsapi.com/forex/jwt_token?access_key=YOUR_ACCESS_KEY&expiry=300
    https://api-v4.fcsapi.com/forex/jwt_token?access_key=YOUR_ACCESS_KEY&expiry=300&domain=customer.com
    https://api-v4.fcsapi.com/forex/jwt_token?public_key=YOUR_PUBLIC_KEY
    
    // 3) Call any endpoint with only the token (query string, POST form, JSON body or the header)
    https://api-v4.fcsapi.com/forex/latest?symbol=EURUSD&jwt_token=TOKEN
    curl -H "Authorization: Bearer TOKEN" "https://api-v4.fcsapi.com/forex/latest?symbol=EURUSD"

Remember:

Call jwt_token?access_key= from your server only, never from a browser or app, and never put the access key inside a token. From a page, use jwt_token?public_key= (Step 1 B).

access_keystringoptional

Your API access key. Send this or public_key.

More about access_key
public_keystringoptional

Your Public Key, instead of access_key. Works from a browser on an Allowed Domain or from an authorized server IP. The expiry is the one in your dashboard.

expiryintegeroptional

Seconds the token is valid with access_key, 30 to 86400 (default 3600). Not used with public_key.

domainstringoptional

With access_key: the website this token is made for, for example customer.com, so it works from that site only. It must be ONE valid host (no list, no wildcard), otherwise the answer is error 112. Leave it out for a token that works from any website. Not used with public_key (a browser on an Allowed Domain gets a token for its own website, a server let in by IP gets a plain token).

Response Format

Response Fields

jwt_tokenThe token to send as jwt_token: a JWT, three parts joined by dots
public_keyYour Public Key
expiryUnix time when the token expires
expires_inSeconds left
domainOnly when you sent domain with access_key: the website the token is tied to, as the API understood it (lowercase, no www., no port)

Errors:

  • 101 invalid token, domain or IP not allowed (the message says what to add), or short_code: expire_token when a token has expired. 104 access_key and public_key both missing, or a widget key / RapidAPI call (they can never create a token), 112 bad expiry, a domain that is not one valid host, or no Public Key yet.
Reference/Error Codes

Error Codes & Troubleshooting

Understanding API error responses and how to handle them properly. All errors include a status code, error message, and helpful details for debugging.

Common HTTP Status Codes

CodeMessageDescription
200SuccessRequest completed successfully
400Bad RequestInvalid parameters or malformed request
401UnauthorizedInvalid or missing API key
403ForbiddenAPI key doesn't have permission
429Rate LimitedToo many requests, slow down
500Server ErrorInternal server error
101Key ErrorRequired API KEY
102Account ErrorAccount not active/expire
112Data ErrorData not found

Error Response Format:

All errors return JSON with status:false, error code, descriptive message, and additional details when available.

Troubleshooting Tips:

  • Check API key is valid and active
  • Verify parameter names and values
  • Ensure you're not exceeding rate limits
  • Check symbol names are correctly formatted
  • Validate date formats in historical requests
Reference/Rate Limits

Rate Limits & Usage

Understanding API usage limits, credit system, and best practices for efficient API usage. Different endpoints have different credit costs based on data complexity.

Plan Limits

PlanMonthly API requestsRequests per minute
Free5003
Enterprise200,00040
Pro600,000100
Corporate1,200,000200
Ultra2,700,0001000
Forex Starter20,00015
Forex Enterprise150,00050
Forex Corporate600,000200

Credit System:

Most endpoints cost 1 credit per request. Some endpoints (Latest, Profile, History) cost 1 credit per 100/300 records returned.

Optimization Tips:

  • Use bulk requests for multiple symbols
  • Cache static data like profiles and symbol lists
  • Implement exponential backoff for rate limit errors
  • Monitor your usage in the dashboard
  • Use webhooks for real-time data when available
Reference/Code Examples

Code Examples & SDKs

Ready-to-use code examples in popular programming languages. Copy and paste these examples to quickly integrate FCS API into your application.

Choose your preferred programming language and copy the example code to get started quickly.

Available Languages

  • JavaScript: Fetch API, Axios, jQuery examples
  • Python: Requests library, asyncio examples
  • PHP: cURL, file_get_contents examples
  • Java: HttpURLConnection, OkHttp examples
  • C#: HttpClient examples
  • Node.js: HTTP, Axios examples

SDKs Available:

PHP, Python, JavaScript (Node.js), Java and C# examples on GitHub: github.com/fcsapi.

curl  "https://api-v4.fcsapi.com/forex/latest?symbol=EURUSD&access_key=API_KEY"

Best Practices:

  • Always handle API errors gracefully
  • Implement proper rate limiting in your code
  • Cache responses when appropriate
  • Use environment variables for API keys
  • Validate API responses before processing
Reference/Disclaimer

Disclaimer & Terms of Use

Important information about data usage, accuracy, and limitations of the FCS API service.

Data Accuracy & Usage

Prices, Market trends and signals are not designed for trading purposes. These signals are only for educational or non-commercial purpose use. Data contained in this application/website is not necessarily real-time nor accurate and so prices may not be accurate and may differ from the actual market price, meaning prices are indicative and not appropriate for trading purposes.

Trading Disclaimer

Therefore we don't bear any responsibility for any trading losses you might incur as a result of using this data. Latest price minimum refresh rate is 30 seconds.

Data Sources

Our data is sourced from multiple financial institutions and exchanges. While we strive for accuracy, we cannot guarantee 100% accuracy or completeness of the data.

Important Notice:

This API is for informational and educational purposes only. Always consult with financial advisors before making investment decisions.

Key Points:

  • Data is for informational purposes only
  • Not suitable for high-frequency trading
  • Prices may differ from real market prices
  • No liability for trading losses
  • Terms of service apply to all usage
Reference/FAQ

Forex API FAQ

What is FCS API Forex API?

FCS API Forex API is a RESTful API providing real-time and historical forex exchange rates for 4,500+ forex symbols from 6 data sources, covering 150+ currencies. It offers currency conversion, OHLC data, technical indicators, pivot points, and moving averages.

How do I get an API key for Forex API?

Sign up for a free account at https://fcsapi.com/signup to get your API key instantly. The free plan includes 500 API calls per month and needs no credit card; the pricing page (https://developer.fcsapi.com/pricing) lists every plan and the endpoints it includes.

What currency pairs are supported?

FCS API Forex API supports 4,500+ forex symbols (spot pairs, synthetic crosses and CFDs) from 6 data sources, including major pairs (EUR/USD, GBP/USD, USD/JPY), minor pairs (EUR/GBP, AUD/NZD), and exotic pairs across 150+ currencies.

What is the API response format?

All API responses are in JSON format with one structure: status (true/false), code (200 for success), response (the data) and info (server time and credits used). Consistent format across all endpoints for easy integration.

Does the Forex API support historical data?

Yes, FCS API Forex API provides historical OHLCV (Open, High, Low, Close, Volume) data with timeframes: 1m, 5m, 15m, 30m, 1h, 4h, 1D, 1W, 1M. Daily (1D) history starts in 1990 for major pairs and crosses; how far back you can request depends on your plan (the free plan includes 1 year of history).

What technical indicators are available?

The Forex API provides technical indicators (RSI, MACD, Stochastic, ADX, ATR, Ultimate Oscillator, Parabolic SAR and Bollinger Bands), moving averages (SMA and EMA for 10, 25, 100 and 200 periods) and Classic, Fibonacci, Camarilla, Woodie and DeMark pivot points. See the pricing page (https://developer.fcsapi.com/pricing) for the plans that include them.

How do I convert currencies using the API?

Use the /forex/converter endpoint with parameters: pair1 (source currency), pair2 (target currency), amount. Example: /forex/converter?pair1=USD&pair2=EUR&amount=100 returns the converted value.

What is the data update frequency?

Forex data is updated in real-time during market hours. How fresh a REST reply is depends on the cache time of your plan: Free (60 minutes), Forex Starter (15 minutes), Forex Enterprise (10 minutes), Forex Corporate (no plan cache).

Esc
↑↓ Navigate↵ OpenEsc Close