Skip to content

kzk2000/deephaven-clickhouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deephaven + Clickhouse

TLDR; Deephaven Community doesn't provide a built-in persistent storage layer (as of Spring 2024), so let's use Clickhouse to create one.

This repo shows how to

  • leverage Cryptofeed to subscribe to 24/7 real-time Crypto market data
  • push the data onto Kafka to create live streams
  • persist the streams via the Clickhouse Kafka Table Engine
  • access real-time streams and historical data from the DH UI, plus some magic to stitch them together
  • build a Deephaven app mode around it

General Setup

Everything should "just work", simply run this and wait until all 5 containers start up:

docker compose build --no-cache
docker compose up -d  

Project structure

├── data                                <- Project data
│   ├── clickhouse                          <- volume mount for the 'clickhouse' container
│   ├── deephaven                           <- volume mount for the 'deephaven' container
│   │   ├── layouts                         <- contains .json file for Deephaven app layout 
│   │   └── notebooks                       <- Deephaven File Explorer, all DH python scripts are stored here
│   └── redpanda                            <- volume mount for the 'redpanda' container
│
├── docker                               <- anything needed for Docker builds 
│   ├── clickhouse                          <- build files for ClickHouse                               
│   ├── cryptofeed                          <- build files for Cryptofeed 
│   ├── redpanda                            <- build files for Redpanda (e.g. Kafka retention of 1min)
│   └── deephaven                           <- build files for Deephaven
│
├── .gitignore                          <- List of files ignored by git
├── docker-compose.yaml                 <- docker-compose file to start up everything
├── requirements.txt                    <- File for installing python dependencies
├── setup.py                            <- File for installing project as a package
└── README.md

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published