예제 #1
0
        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>());
        }
예제 #2
0
        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");
 }
예제 #4
0
        public InterpolatedYieldCurveSpecification BuildCurve(DateTimeOffset curveDate, YieldCurveDefinition curveDefinition)
        {
            RestTarget target = _rest.Resolve("builder").Resolve(UriEncoding.ToString(curveDate));

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