public ISecurity GetSecurity(ExternalIdBundle bundle)
        {
            ArgumentChecker.NotEmpty(bundle.Identifiers, "bundle");

            Tuple <string, string>[] parameters = UriEncoding.GetParameters(bundle);
            return(_restTarget.Resolve("securitySearches").Resolve("single", parameters).Get <ISecurity>());
        }
        public ICollection <ISecurity> GetSecurities(ExternalIdBundle bundle)
        {
            ArgumentChecker.NotEmpty(bundle.Identifiers, "bundle");

            var parameters = UriEncoding.GetParameters(bundle);

            return(_restTarget.Resolve("securities", parameters).Get <FudgeListWrapper <ISecurity> >().List);
        }
 private static string EncodeDate(DateTimeOffset currentDate)
 {
     return((currentDate != default(DateTimeOffset)) ? UriEncoding.ToString(currentDate) : "null");
 }
Example #4
0
        public InterpolatedYieldCurveSpecification BuildCurve(DateTimeOffset curveDate, YieldCurveDefinition curveDefinition)
        {
            RestTarget target = _rest.Resolve("builder").Resolve(UriEncoding.ToString(curveDate));

            return(target.Post <InterpolatedYieldCurveSpecification>(curveDefinition));
        }