Deanzou / Orderflow

This Python package manages methods to reshape tick by tick data for order flow analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


This is a short Python module to analyze tick-by-tick data.

The structure of the data is the following:

  • Date: date of trade execution (YYYY-MM-DD)
  • Time: time of trade execution (%H:%M:%S.ffffff, market time)
  • Price: price of execution trade
  • Volume: volume executed
  • TradeType: 1 if trade has been executed on the BID, 2 if the trade has been executed on the ASK
  • AskPrice: price on the ask at the time of the execution
  • BidPrice: price on the bid at the time of the execution
  • AskSize: level 1 DOM (i.e Depth of the Market) size on the ask
  • BidSize: level 1 DOM (i.e Depth of the Market) size on the bid
  • TotalAskDepth: total volume on the ask DOM side (till max level available)
  • TotalBidDepth: total volume on the bid DOM side (till max level available)
  • AskDOM_XX / BidDOM_XX: ask and bid values till level XX

Main tools in development for data fun and research are VWAP, Volume Profile, Imbalances.
Please, keep in mind that this is not a module for trading but just for research for those that love data !
This module uses pandas and datatable for amazing speed in managing the data and it is PEP-8 compliant by using black https://github.com/psf/black.

About

This Python package manages methods to reshape tick by tick data for order flow analysis

License:MIT License


Languages

Language:Python 100.0%