Giter Site home page Giter Site logo

qdx-market-maker's Introduction

Running

(requires Java 8; does not require gradle installation - uses gradle wrapper)

Standalone JAR

(the following steps are for Linux, tested on Ubuntu 15.10)

  1. Execute ./gradlew shadowJar from the main project directory (qdx-market-maker).
  2. Jar will be created in qdx-market-maker/build/libs/ named qdx-market-maker-<version>-all.jar.
  3. Copy the jar to a convenient location, place your quedex-config.properties and market-maker.properties (examples may be found in qdx-market-maker/src/main/resources) next to it.
  4. Run the jar with java -jar qdx-market-maker-<version>-all.jar quedex-config.properties market-maker.properties. To exit hit CTRL + C.

From an IDE

  1. Clone the repository.
  2. Import the gradle project to your favourite IDE (tested with IntelliJ).
  3. Fetch the dependencies (should happen automatically).
  4. Rename the file quedex-config.properties.example in qdx-market-maker/src/main/resources to quedex-config.properties and fill in your details.
  5. Rename the file market-maker.properties.example in qdx-market-maker/src/main/resources to market-maker.properties and change the configuration according to your liking.
  6. Run the Main class.

Features

The market making bot:

  • places orders with configurable quantities on configurable number of levels
  • has configurable spread
  • follows a predefined Fair Price for futures (currently last price or mid - change the implementation in the MarketMaker class between LastFairPriceProvider and MidFairPriceProvider)
  • places option orders with volatility smile adjustments based on the SABR model with time-dependent volatility of volatility
  • has configurable risk management - stops quoting one side of the order book when delta or vega limit exceeded
  • enables risk monitoring based on greeks (delta, vega, gamma, theta), per position and in total
  • cancels all orders when going down or on error
  • is easily extensible

TODO:

  • sensitivity to Fair Price changes
  • logging configuration
  • documentation
  • websockets API

qdx-market-maker's People

Contributors

wgromniak avatar wywialm avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jamesliu1

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.