Pull books via websocket to clickhouse.
docker
docker run -it -v /tmp/binanceMiner:/tmp/binanceMiner corax/binance-miner:latest --clickhouse-dsn="tcp://host.docker.internal:9000?username=default&compress=true"
create table IF NOT EXISTS books
(
source String CODEC(Delta, ZSTD(5)),
dt DateTime CODEC(Delta, ZSTD(5)),
secN UInt64 CODEC(Delta, ZSTD(5)),
symbol String CODEC(Delta, ZSTD(5)),
asks Nested
(
price Float64,
quantity Float64
) CODEC(Delta, ZSTD(5)),
bids Nested
(
price Float64,
quantity Float64
) CODEC(Delta, ZSTD(5))
) engine = ReplacingMergeTree()
PARTITION BY (source, toYYYYMM(dt))
ORDER BY (toYYYYMMDD(dt), symbol, secN);