A general library for subscribing and publishing market data