We take an orderbook snapshot from Binance, and aggregate it to various levels of price granularity using python. We take special measure to avoid problems created by floating point numbers, and provide an alternative using only integers at the end.
⭐ Code:
https://github.com/ChadThackray/order...
Binance API docs:
https://binance-docs.github.io/apidoc...
Timestamps:
00:00 - Intro
02:06 - Pulling our market depth snapshot
06:42 - Aggregating using Floats
33:19 - Using Integers to reduce floating-point errors
On this page of the site you can watch the video online Aggregating Orderbook levels in Python with a duration of hours minute second in good quality, which was uploaded by the user Chad Thackray 10 November 2022, share the link with friends and acquaintances, this video has already been watched 7,037 times on youtube and it was liked by 152 viewers. Enjoy your viewing!