Git Product home page Git Product logo

microprice-calibration's Introduction

microprice-calibration

The Micro-Price (Stoikov, 2017) is a high frequency estimator of future prices. (See: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2970694)

What does this code do?

This repository contains source code that calibrates Stoikovs Micro-Price model to BitMEX quote data and creates optimal limit order postings at the best bid and offer using stochastic optimal control and by solving HJB-QVI equation.

Micro-Price

The weighted mid-price is a noisy and counter-intuitive measure of the "fair-value" of a traded asset. The Micro-Price is the expected mid-price in the future given a Markov-Chain that drives the future evolution of mid-price using Euler finite difference scheme.

Calibrated Model

Market Making Strategy

The Micro-Price may be combined with stochastic optimal control to create a market making strategy that accounts for the micro-price as a short-term prediction of the asset price. For a mathematical treatment see: https://gist.github.com/sebjai/c6ff3850dea37d28d3fa7d3aef59722b

In the model, the short-term alpha component is assumed to be mean-reverting. Here, we assume that this process is the Ornstein-Uhlenbeck process which is easy to estimate from data using linear regression.

Microstructure

Trade size distribution for marketable buy orders. Mean of the distribution is marked with red vertical line. Calibrated Model

Trade size distribution for marketable sell orders. Mean of the distribution is marked with red vertical line. Calibrated Model

microprice-calibration's People

Contributors

jshellen 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.