Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

SGTYang/VPIN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

VPIN

Volume Synchronized Probability of Informed Trading

Introduction

  • The VPIN method intends to measure the probability of market informed transaction.
  • Although VPIN method is viewed for the HFT environment. But the result suggests that certain VPIN model with Linear Regression provides proxies for adverse selection risk

Info

  • Version - Written in Python 3.7.3
  • Keywords
    • VPIN
    • Market micro structure

Prerequisite

  • pandas
  • numpy
  • matplotlib.pyplot
  • time
  • train_test_split
  • LinearRegression

Correspondence

Please do not hesitate to submit an issue or contact via [email protected].

Usage

dataset

  • kakaostock.csv
  • Sampling time: 2021-March-17
  • Data sample in time period between 1000 and 1400.

Methodology

  • For transactions in the sampling date, the entile volume is divided into 1000 buckets.
  • Filling Procedure: Filling of bucket starts when transaction starts. When volume of transaction exceeds the upper bound, calculate vol_bucket with buy volume, which indicates the rest of transaction amount Loop of aforementioned process generate a series of baskets.
  • image

Sample Output

스크린샷 2021-04-11 오후 9 13 13

  • Price change per VPIN gradient

스크린샷 2021-04-12 오후 7 07 51

About

Volume Synchronized Probability of Informed Trading

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published