/openbook-v2-datastore

A datastore for Openbook V2 (specifically tailored to the MetaDAO)

Primary LanguageTypeScript

Openbook V2 Datastore

This configuration is designed to run on your local or remote instance, it leverages RPC endpoints and some simple configuration to collect the orders, trades and events which occur within the market.

You can define the markets you wish to collect data using the .env file.

You can also backfill data, however this can be expensive and take time. Be aware.

WARRANTY

THIS SOFTWARE WILL LIKELY DO YOU HARM. NO ONE SHOULD OPERATE IT, EVER. IF YOU DO SO YOU DO AT YOUR OWN RISK. THE CREATOR(S) OF THIS SOFTWARE OFFER NO WARRANTY AND IS OFFERED AS IS. ANY RESPONSIBILITY IS YOUR OWN.

Installation

docker build .

login: openbook password: example database: openbookdata

docker run -p 5432:5432 -v "$(pwd)"/timescale/data/pgdata:/home/postgres/pgdata/data