Skip to content

Pulls historical trading data and plots the distribution of order size for further analysis.

License

Notifications You must be signed in to change notification settings

0xd3lbow/sizefrequency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

size frequency

This script will pull recent or current trade data and calculates the frequency distribution of order size. It writes the trade data to a CSV file for further analysis and modeling, filtering the size to a certain threshold to cut out some noise and randomness, and finally uses matplotlib to get a live visualization of the distribution.

Figure_1

The trading pair can be replaced with any ticker and the filter can be adjusted to your preference.

Screenshot 2023-07-01 152719

I found that consistently logging trade data and size-frequency can be useful for backtesting, quantifying participant behavior, visualizing clustering effects, spotting exchange inefficiencies that can be exploited, and getting an idea of the market depth (liquidity available at different price levels).

About

Pulls historical trading data and plots the distribution of order size for further analysis.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages