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.
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.
Step 1: Get Your API Key
Sign up and get your API key instantly. Free plans available for testing, no credit card required.
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"
Step 3: Integrate in Your App
Use the JSON response in your application. Toggle parameters like
symbol,period, andexchangeto 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
/forex/listSymbols ListComplete list of supported currency short names and symbols.POST/forex/latestLatest PriceOne or multiple currency rates at once.POST/forex/latest?type=commodityCommoditiesPrecious metals, energies, and base metals.POST/forex/converterCurrency ConverterExchange between two chosen currencies.POST/forex/base_latestBase CurrencyAll quote prices of a single base currency.POST/forex/crossCross CurrencyOHLC and bid/ask data for all cross pairs of the given currency.POST/forex/historyHistory PriceHistorical exchange data for all supported symbols.POST/forex/profileProfile DetailsName, country, bank name and more for Forex currencies.POST/forex/exchangesData SourcesExchanges and data feed providers.POST/forex/advanceAdvanced QueryAll in one: combines multiple data sources.POST/forex/advance?sort_byGainer/Loser/SortTop gainers, losers and movers.POST/forex/ma_avgMoving AveragesExponential (EMA) and Simple (SMA) moving average values.POST/forex/indicatorsTechnical IndicatorsPopular technical indicators and oscillators.POST/forex/pivot_pointsPivot PointsSupport and resistance levels from multiple pivot methods.POST/forex/performancePerformance DataHistorical highs/lows and percentage changes.POST/forex/economy_calEconomy CalendarMacro releases: rate decisions, CPI, payrolls, PMI and more.POST/forex/searchSearch APISearch all currencies with similar names.POST/forex/multi_urlMultiple / ParallelAccess multiple API endpoints simultaneously.Parameters List
Authentication API KEY
Show more
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.
Data type filter: forex, commodity
Show more
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.
Default:spot, Filter: spot,synthetic
Show more
synthetic It is self generated symbol that is not listed on any exchange by using formula
Currency pairs or asset symbols (comma-separated for multiple)
Show more
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.
Default:1D, Candle Time Period
Show more
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.
Specific exchange or data feed source name
Show more
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.
Search term for filtering symbols or assets
Show more
Examples:
•
search=EUR → Find all EUR pairs (EURUSD, EURGBP, EURJPY) •
search=USD → Find all USD pairs (USDJPY, USDCAD, GBPUSD) •
search=gold → Find gold-related instruments Note: Use either `search` OR `symbol`, not both.
Supported Operators:
usd→ finds any record contains "usd"usd*→ finds words starting with "usd"USD +NZD→ "USD" is optional, but "NZD" must be presentUSD -NZD→ find "USD" but exclude "NZD"+USD +NZD→ both "USD" and "NZD" must be presentUSD|JPY|EUR→ matches any of these words (OR search)
Operators mean:
+→ word must be present in the record (AND search)-→ word must NOT be present in the record (exclude)*→ wildcard, matches words starting with the given letters|→ OR search, matches any of the words separated by|space→ default is OR, matches any of the words
Note: In GET request or in browser url
+ symbol not work, use %2B instead Use Case: Ideal for implementing an advanced search box (with autocomplete, filtering by keywords, or exclusions).
Performance Note: Ensure FULLTEXT index find search term from (symbol, name, currency).
FALSE|TRUE (0|1) (return symbols extra details)
Show more
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.
Filter by country code (ISO 2-letter format)
Show more
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
Amount to convert (for currency conversion endpoints)
Show more
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.
Start date/time for historical price data
Show more
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
End date/time for historical data queries
Show more
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
History Response for chart format
Show more
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
Merge multiple API in 1 respones values(latest, perf, tech, profile, meta)
Show more
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
Advanced filtering using JSON object
Show more
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)
{"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 results by specific field or metric
Show more
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.
Pagination page number
Show more
Number of records per page
Show more
Response format type (json, jsonp, serialize, array)
Show more
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.
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
Also support sort_by, pagination,etc check our Advance api
Currency From (e.g. EUR)
Currency To (e.g. USD)
0|1 — 0: default, return only selected exchange symbols; 1: fallback to other exchanges when missing.
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.
default: 300, 1-10000, If set 500, Will return 500 candles
Comma-separated column names to return (empty = all columns)(case-sensitive)
0|1 - Work with columns parameter. 0: flatten array, 1: keep nested structure
One or more codes, e.g. GBIRYY,USNFP, for their release history
2 high, 1 medium, 0 low; lists like 1,2 work
(0|1), Return profile meta info, It will call profile meta info api inside and +1 credit
Common URL base
Array of API endpoints
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.
Seconds the token is valid with access_key, 30 to 86400 (default 3600). Not used with public_key.
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).