Giter VIP home page Giter VIP logo

ember-java-client's Introduction

SAMPLE OVERVIEW

This Java API provides asynchronous request/response interaction with Ember services.

Requests are encoded and passed in binary format over TCP or Aeron (UDP or Shared Memory) transport to Ember Service. API client subscribes to Ember Message bus and filters responses. Responses are decoded from binary format and delivered to client event handler.

Ember provides two kind of API samples:

  • Simple short time interactions with Ember (for example order request transmission or positions download). In case of errors users are advised to simply to retry full operation (including ember connection).
  • Production pipeline sample show how to stay connected to ember 24/7 and automatically reconnect. This production ready error handling adds complexity and not recommended for simple use cases.

This package contains samples of the first type, see project for the sample of the second kind.

Additional information can be found in Trading Data Model document.

SAMPLE INDEX

This project includes the following generic communication samples:

  • DuplexSample - how to send trading requests and receive events.
  • PublicationSample - how to implement one-way flow of trading requests from client to Ember.
  • SubscriptionSample - how to implement one-way flow of trading events from Ember to client.

Also we included more down the earth practical samples:

  • OrderSubmitSample, OrderCancelSample, OrderReplaceSample - how to perform simple trading actions
  • CustomRiskUpdateSample - how to update risk limits from CSV file
  • KillSwitchSample - how to halt trading in Ember OMS (emergency kill switch)
  • PositionRequestSample - how to fetch positions from Ember OMS
  • JournalReaderSample - how to read ember journal

More samples can be added in the future, we do not always update this README - please check included Java sources for more.

BUILD

This project references Ember Java API libraries located in private maven repository.

Please make sure that you define environment variables NEXUS_USER and NEXUS_PASS to Deltix repository credentials provided to you.

The following command runs Gradle build:

./gradlew clean build 

RUN

Make sure Ember is running. This sample assumes it is running locally on port 8989 (default port).

The following command line launches DuplexSample:

./gradlew run

ember-java-client's People

Contributors

andymalakov avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

pvsmelkov

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.