Skip to content

TheDeFiQuant/openbook-data

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openbook-data

A web interface for viewing market data from OpenBook, on the Solana blockchain.

openserum

Set RPC Node Endpoints

navigate to openbook-data/src/main/java/com/mmorrell/serumdata/util/RpcUtil.java
change RPC_NODE_URL_1 in line 14
change RPC_NODE_URL_2 in line 15

Building

Requirements (if not using Docker)

  • Java 17
  • Maven

Building with Maven

mvn clean install

Running in Docker container (pre-built image)

docker pull mmorrell/serum-data:latest
docker run -p 8080:8080 serum-data

Running in Docker container (self-build)

docker build -t serum-data .
docker run -p 8080:8080 serum-data

With custom Solana RPC:

docker build -t serum-data .
docker run -e OPENSERUM_ENDPOINT="http://localhost:8899/" -p 8080:8080 serum-data

With one of the preset RPC validators (GENESYSGO, PROJECT_SERUM). Default is GENEYSGO:

docker build -t serum-data .
docker run -e OPENSERUM_ENDPOINT=PROJECT_SERUM -p 8080:8080 serum-data

Entire server setup (3 scripts) (Docker, Nginx, Ufw, Blue + Green)

These scripts will install NGINX, Docker, and enable UFW on port 22 and 80. It will also start a Blue and Green instance of the application.

curl -sSL https://raw.githubusercontent.com/skynetcap/serum-data/main/scripts/setup.sh | sh
curl -sSL https://raw.githubusercontent.com/skynetcap/serum-data/main/scripts/blue_start.sh | sh
curl -sSL https://raw.githubusercontent.com/skynetcap/serum-data/main/scripts/green_start.sh | sh

Special Thanks

YourKit for providing us with a free profiler open source license.

YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor.

YourKit Logo

Contributing

Open an issue with details, or pull request with changes.

License

MIT License

About

OpenBook Market Data interface on Solana

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 87.8%
  • JavaScript 9.1%
  • CSS 1.4%
  • Shell 1.4%
  • Dockerfile 0.3%