@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("{snapshotId}")
public String getMarketDataSnapshotHistory(@PathParam("snapshotId") String snapshotId) {
ObjectId id = ObjectId.parse(snapshotId);
MarketDataSnapshotHistoryResult result = _snapshotMaster.history(new MarketDataSnapshotHistoryRequest(id));
List<MarketDataSnapshotDocument> documents = result.getDocuments();
List<Map<String, Object>> json = Lists.newArrayListWithCapacity(documents.size());
for (MarketDataSnapshotDocument document : documents) {
Map<String, Object> map = Maps.newHashMapWithExpectedSize(5);
map.put("uniqueId", document.getUniqueId());