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.
Add the com_xignite_sdk.jar to your class path in your Java 7 project
Add an import statement for the com.xignite.sdk.api.webservices.xxx.* namespace. Where xxx is the name of your API, for example: XigniteGlobalCurrencies
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
For feedback or issues to report, please email sdk@xignite.com.