예제 #1
0
 public SearchResult<PortfolioDocument> GetHistory(PortfolioHistoryRequest request)
 {
     //request
     var versionsTarget = _restTarget.Resolve("portfolios", request.ObjectId.ToString(), "versions");
     RestTarget target = RestUtils.EncodeQueryParams(versionsTarget, request);
     return target.Get<SearchResult<PortfolioDocument>>();
 }
예제 #2
0
        //TODO correct

        public SearchResult <MarketDataSnapshotDocument> History(MarketDataSnapshotHistoryRequest request)
        {
            var versionsTarget = _restTarget.Resolve("snapshots", request.ObjectId.ToString(), "versions");

            return(RestUtils.EncodeQueryParams(versionsTarget, request)
                   .Get <SearchResult <MarketDataSnapshotDocument> >());
        }
예제 #3
0
        public SecurityMetaDataResult MetaData(SecurityMetaDataRequest request)
        {
            var restTarget = _restTarget.Resolve("metaData");

            return(RestUtils.EncodeQueryParams(restTarget, request).Get <SecurityMetaDataResult>());
        }