Releases: fcsapi/rest-api-js
Releases · fcsapi/rest-api-js
4.0.0
FCS REST API JavaScript v4.0.0
First Release - JavaScript & Node.js REST API client for Forex, Crypto, and Stock market data from FCS API.
What's New
Initial release with complete REST API implementation:
- Universal Library - Works in both Browser and Node.js (18+)
- Forex API - 4,000+ currency pairs, commodities, real-time rates, historical data
- Crypto API - 50,000+ coins, market cap data, top exchanges (Binance, Coinbase, etc.)
- Stock API - 125,000+ global stocks, earnings, dividends, financial statements
- 3 Authentication Methods - Access key, IP whitelist, token-based
- Zero Dependencies - Pure JavaScript using native Fetch API
- Multiple Formats - npm package, CDN, or local files
- Technical Analysis - Moving averages, RSI, MACD, pivot points
Installation
npm (Recommended):
npm install fcsapi-restBrowser (CDN):
<script src="https://cdn.jsdelivr.net/gh/fcsapi/rest-api-js/src/FcsConfig.js"></script>
<script src="https://cdn.jsdelivr.net/gh/fcsapi/rest-api-js/src/FCS_Forex.js"></script>
<script src="https://cdn.jsdelivr.net/gh/fcsapi/rest-api-js/src/FcsApi.js"></script>Quick Start
Browser:
<script src="src/FcsConfig.js"></script>
<script src="src/FcsApi.js"></script>
<script>
const fcsapi = new FcsApi();
async function getData() {
const forex = await fcsapi.forex.getLatestPrice('FX:EURUSD');
const crypto = await fcsapi.crypto.getLatestPrice('BINANCE:BTCUSDT');
const stock = await fcsapi.stock.getLatestPrice('NASDAQ:AAPL');
if (fcsapi.isSuccess()) {
console.log(forex.response);
}
}
</script>Node.js:
const { FcsApi } = require('fcsapi-rest');
const fcsapi = new FcsApi();
const response = await fcsapi.forex.getLatestPrice('EURUSD');Examples Included
forex-example.html- Forex prices, conversion, historical datacrypto-example.html- Bitcoin, top 100 coins, market capstock-example.html- Stock prices, earnings, indices
Requirements
- Browser: Modern browser with Fetch API support
- Node.js: v18.0 or higher
Documentation
- Full docs: https://fcsapi.com/document
- npm package: https://www.npmjs.com/package/fcsapi-rest
- GitHub: https://github.com/fcsapi/rest-api-js
- Support: support@fcsapi.com
Get API Key
Sign up for free at https://fcsapi.com