Giter VIP home page Giter VIP logo

analysis-sharing's Introduction

Analysis sharing

Sharing crypto-related quantitative analyses on our historical market data, which are distinctive by including also the order book data. This repository is curated and reviewed by Lefty, an experienced quant and former Head of Research of an equity prop-trading company, who is currently on top of the Hummingbot leaderboard.

1. Hummingbot analysis

In the first notebook, we analyze Hummingbot market-making strategy on a combination of trade and level_1 order book data. In a very simple simulation, we can experiment with the profitability of variants of this strategy on historical data. This is intended as a basis for your own analysis, not as a direct basis for trading.

We estimate that with this data-driven backtesting approach, you can prevent a trading loss of >=10% of your open order nominal monthly even with a pretty simple analysis compared to the usual 'run the bot, check results after some time, tune parameters, repeat' approach. And you save a lot of time. Note that this effect can be much bigger on volatile low-volume coins.

-> Open the notebook in nbviewer

2. Exploratory analysis

This notebook is looking on MM profitability, spread characteristics, order-book imbalance and a few autocorrelations on high-frequency order book data. There are some interesting results on extreme order-book imbalances and short-term returns autocorrelations.

-> Open first of the two notebooks in nbviewer

3. TWAP detection

We detect simple every-minute TWAP orders/executions in tick data and analyze their impact on price.

-> Open the notebook in nbviewer


Contributing

There are a few contribution rules:

  • quant research rule #1: keep things simple (KISS)
  • keep the code clean, extract repeated code into functions or modules (DRY)
  • each notebook should have markdown intro description in its header and conclusions in the footer
  • prefer realistic simulation to smart trading logic/model

See the list of freely available sample data or the data schemata.


Usage

Run locally with python3.8 or later. Install requirements.txt and run using jupyter notebook shell command.

Or run online via Binder using the link to nbviewer above and then click the three rings icon to the top-right.

FAQ

  • Q: Can you share your alpha? / Should we share our alpha?
    • A: No. The point of quant research is that everyone should come up with his own 'alpha'. This repository and Lake project just aim to make this easier by sharing the basics.
  • Q: Can I also use other data than Lake?
    • A: Sure, but don't mix data sources unless necessary.
  • Q: Where can I follow Lake and sharing analyses?

analysis-sharing's People

Contributors

leftys avatar witwender 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.