@Override
 public byte[] encode(MarketHistoricalSnapshotMessage message) throws IOException {
   return message.toByteArray();
 }
 @Override
 public MarketHistoricalSnapshotMessage decode(byte[] bytes) throws IOException {
   return MarketHistoricalSnapshotMessage.parseFrom(bytes);
 }