class DataPositionSourceResource extends AbstractDataResource {

  @GET
  @Path("trades/{tradeId}")
  public Response getTrade(
      @PathParam("tradeId") String idStr,
      @QueryParam("version") String version) {
    final ObjectId objectId = ObjectId.parse(idStr);
    final Trade result = getPositionSource().getTrade(objectId.atVersion(version));
    return responseOkObject(result);
  }

  public  DataPositionSourceResource(final PositionSource positionSource);

}