Giter VIP home page Giter VIP logo

ember-algo-sample's Introduction

Sample algorithm

This project illustrates how to build, test, debug, and deploy algorithms for Deltix Execution Server (Ember). This archive contains IntelliJ/IDEA project and Gradle build files for ICEBERG sample algorithm.

See Algorithm Developer's Guide for more information.

Build

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

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

Test

This project shows two kinds of unit tests for algorithms:

  • Test_IcebergAlgorithmMock gives you an ability to mock various input messages (order replacements, market data, etc) and verifies algorithm outputs.

  • Test_IcebergAlgorithmFuzzy "fuzzy" test - bombards algorithms with random inputs and verifies if any assertions or exceptions happen.

Debug

One simple way to debug your algorithm is running entire Execution Server under debugger. Take a look at Ember Server Run configuration. It uses deltix.ember.app.EmberApp as a main class and ember.home system property that point to ember configuration home. You can set breakpoints in your algorithm and launch Ember server under debugger.

See Ember Quick Start document for more information.

algorithms {
  ICEBERG: ${template.algorithm.default} {
    factory = "deltix.ember.samples.algorithm.iceberg.IcebergAlgorithmFactory"
  }
}

Deploy

Entire Gradle project uses java-library plugin.

./gradlew build 

The build produces build/lib/algorithm-sample-*.jar. To deploy your algorithm to actual server copy this JAR file under lib/custom/ directory of your ES installation. The last step is to define your algorithm in server's ember.conf (just like we did in Debug section).

You can also run OrderSubmitSample to see how you can send requests to your algorithm.

This package includes Ansible playbook located under distribution/ansible folder. It can be used to deploy Execution Server and all pre-requisites on a clean Linux server.

See Algorithm Developer's Guide for more information.

ember-algo-sample's People

Contributors

andymalakov avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

t0uristq

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.