Skip to content

Releases: fcsapi/rest-api-java

4.0.0

25 Dec 19:01

Choose a tag to compare

FCS REST API Java v4.0.0

First Release - Java REST API client for Forex, Cryptocurrency, and Stock market data from FCS API.

What's New

Initial release with complete REST API implementation:

  • 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
  • 4 Authentication Methods - API key, config file, IP whitelist, token-based
  • JitPack Support - Easy integration with Gradle and Maven
  • Java 8+ Compatible - Works with Java 8 and higher versions
  • Technical Analysis - Moving averages, RSI, MACD, pivot points

Installation

Gradle:

implementation 'com.github.fcsapi:rest-api-java:v4.0.0'

Maven:

<dependency>
    <groupId>com.github.fcsapi</groupId>
    <artifactId>rest-api-java</artifactId>
    <version>v4.0.0</version>
</dependency>

Add JitPack repository to your build file.

Quick Start

import com.fcsapi.FcsApi;

FcsApi fcsapi = new FcsApi("YOUR_API_KEY");

// Get EUR/USD price
Map<String, Object> forex = fcsapi.getForex().getLatestPrice("EURUSD");

// Get Bitcoin price
Map<String, Object> crypto = fcsapi.getCrypto().getLatestPrice("BINANCE:BTCUSDT");

// Get Apple stock
Map<String, Object> stock = fcsapi.getStock().getLatestPrice("NASDAQ:AAPL");

// Check response
if (fcsapi.isSuccess()) {
    System.out.println(forex.get("response"));
}

Examples Included

  • ForexExample/ - Forex prices, conversion, historical data
  • CryptoExample/ - Bitcoin, top 100 coins, market cap
  • StockExample/ - Stock prices, earnings, indices
  • AuthExample/ - All 4 authentication methods

Requirements

  • Java 8 or higher
  • Gson library (auto-included with Gradle/Maven)

Documentation

Get API Key

Sign up for free at https://fcsapi.com