Fetching trades data for openbook v2 using websocket. This is just proof of concept. Use on your own risk!. Websocket can be and will be instable
cargo run --bin openbookv2-printer -- --rpc-url <YourRPC> --market <Pubkey of market which you want to listen, default SOL-USDC>
or you can build with cargo build --release
cargo run --example market -- --rpc-url <YourRPCWhereYouCanMakeGPACalls>
git switch multiple
cargo run -- --market CFSMrBssNG8Ud1edW59jNLnq2cwrQ9uY5cM3wXmqRJj3 DBSZ24hqXS5o8djunrTzBsJUb1P8ZvBs1nng5rmZKsJt 5h4DTiBqZctQWq7xc3H2t8qRdGcFNQNk1DstVNnbJvXs
- option to use polling via getBlock rpc call ...
- store data in db (redis,mongodb)
- geyser plugin instead of websocket
- handling of websocket
- print trades for all markets.
cargo run -- --market CFSMrBssNG8Ud1edW59jNLnq2cwrQ9uY5cM3wXmqRJj3