The project rtvwap is a sample project for calculate the volume-weighted average price for trading pairs, it's using the coinbase
as provider but it's extensible for different providers if needed
The sample code supports the following pairs:
- BTC-USD
- ETH-USD
- ETH-BTC
This project explained can be found at my blog post at https://edoncode.dev/Golang/rtvwap