Giter VIP home page Giter VIP logo

ig-webapi-java-sample's Introduction

IG Web API Java Sample

Build Status

Overview

This repository contains two simple Java console sample applications which access the IG REST and Streaming APIs:

  1. ig-webapi-java-sample-console: A basic console based application which logs in via /session V2, retrieves a list of position, watchlist, subscribes to lightstreamer and create a position.

  2. ig-webapi-java-sample-console-ui: A UI based console application (please increase the windows size to prevent scrolling) which shows a graph with the current market price and allows user to place a trade. Authentication is via /session V3.

Getting started

  1. Set the destination IG environment in environment.properties.

  2. Open a command line / shell prompt and run mvn clean to install the Lighstreamer client in ig-webapi-java-client/lib to your local maven repository.

  3. Run mvn clean install to build the project.

4.a) Run basic console app:

    cd ig-webapi-java-sample-console
    java -jar target/ig-webapi-java-sample-console-<project version>.jar <username> <password> <api key>

4.b) Run UI based console app

    cd ig-webapi-java-sample-console-ui
    java -jar target/ig-webapi-java-sample-console-ui-<project version>.jar <username> <password> <api key> [<optional epic>]

To attach a remote debugger: java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y -jar target/ig-webapi-java-sample-console...

ig-webapi-java-sample's People

Contributors

lucasgut-ig avatar dependabot[bot] avatar michal-ciazynski-ig avatar david-gibbs-ig avatar ireay avatar oztimpower avatar arkilis avatar yasser-ig avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.