Javasdk

Xignite SDK for Java 7

Download .zip Download .tar.gz View on GitHub

Features

  • No setup needed. Get your data in 3 lines of code or less.
  • Takes care of authentication for you.
  • Inline access to API documentation via Javadoc.
  • Access to all Xignite's financial market data RESTful APIs.

Getting Started

Access all of Xignite's financial market data APIs natively from Java using Xignite's REST API.

  1. Add the com_xignite_sdk.jar to your class path in your Java 7 project

  2. Add an import statement for the com.xignite.sdk.api.webservices.xxx.* namespace. Where xxx is the name of your API, for example: XigniteGlobalCurrencies

  3. Begin using the API like so:

import com.xignite.sdk.api.webservices.XigniteGlobalCurrencies.XigniteGlobalCurrencies;
import com.xignite.sdk.api.webservices.XigniteGlobalCurrencies.Models.Currencies;

public class Program {
    public static void main(String[] args) throws Exception {
        XigniteGlobalCurrencies currencies = new XigniteGlobalCurrencies("YOUR_TOKEN_HERE");
        Currencies list = currencies.listActiveCurrencies();

        if (list.Outcome.equals("Success")) {
            for (int i = 0; i < list.CurrencyList.length; i++) {
                System.out.println(list.CurrencyList[i].Symbol + ": " + list.CurrencyList[i].Name);
            }
        } else {
            System.out.println("Call failed: " + list.Message);
        }

        System.out.println("Call took: " + list.Delay);
    }
}

Screenshot

Java example

For feedback or issues to report, please email sdk@xignite.com.