Git Product home page Git Product logo

sample-market-making-agent's Introduction

sample-market-making-agent

This program serves as a simplified illustration of MM models and is not intended to be used in production.

Given order book and trade data, the sample market maker is able to update fair prices and generate quotes. The main algorithms are implemented in market_maker.py/MarketMaker. The demonstration and presentation are available on notebook.py. Below are some highlighted features.

Update fair price (4 methods):

  1. MidPrice: Update fair value based on the market mid price
  2. KalmanFilter: The observed mid-prices are dynamic and noisy. So we can apply a Kalman filter for better fair value estimation.
  3. VWAP: Calculate fair value based on trade data using VWAP
  4. RefOverride: Override fair price using reference price. Reference prices may come from other exchanges with better liquidity

Generate quotes (2 methods)

  1. A simple symmetric quoting algo
  2. Using Avellaneda & Stoikov’s strategy to find the optimal bid/ask spreads and taking inventory risk into consideration.

sample-market-making-agent's People

Contributors

bilalbai avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

landwoif

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.