Exemplo n.º 1
0
 public AutoContractDrawdown(long id, string contractId, ContractPricingComponent pricingComponent, Contract parentContract, string orderId, int lineItemId, DateTime valueDate) : base(id, pricingComponent, parentContract)
 {
     ContractId = contractId;
     OrderId    = orderId;
     LineItemId = lineItemId;
     ValueDate  = valueDate;
 }
Exemplo n.º 2
0
 public ForwardContract(long id, int version, ContractPricingComponent pricingComponent, bool isAggregated, string optionContractId, int?optionLeg)
     : base(id, pricingComponent)
 {
     Version               = version;
     IsAggregated          = isAggregated;
     this.OptionLeg        = optionLeg;
     this.OptionContractId = optionContractId;
 }
Exemplo n.º 3
0
        public Predelivery(long id,
                           ContractPricingComponent pricingComponent, Contract parentContract)
            : base(id, pricingComponent)
        {
            if (parentContract == null)
            {
                throw new ArgumentNullException("parentContract");
            }

            ParentContract = parentContract;
        }
Exemplo n.º 4
0
        public override void Amend(ContractPricingComponent newPricingComponent)
        {
            PricingComponent = newPricingComponent;

            RaiseEvent(new SpotContractAmended
            {
                Id                  = Guid.NewGuid(),
                ContractId          = Id,
                NewPricingComponent = PricingComponent,
                CreatedAt           = DateTime.Now,
            });
        }
Exemplo n.º 5
0
        public void Extend(ContractPricingComponent extensionPricingComponent)
        {
            PricingComponent = extensionPricingComponent;

            RaiseEvent(new ForwardContractExtended
            {
                Id                  = Guid.NewGuid(),
                ContractId          = Id,
                NewPricingComponent = PricingComponent,
                CreatedAt           = DateTime.Now,
                IsAggregated        = IsAggregated,
            });
        }
Exemplo n.º 6
0
 protected Contract(long id)
 {
     Id = id;
     PricingComponent = new ContractPricingComponent();
 }
Exemplo n.º 7
0
 public abstract void Amend(ContractPricingComponent newPricingComponent);
Exemplo n.º 8
0
 public override void Amend(ContractPricingComponent newPricingComponent)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 9
0
 public SingleSidedContract(long id, int version, ContractPricingComponent pricingComponent) : base(id, pricingComponent)
 {
     Version = version;
 }
Exemplo n.º 10
0
 public OffsetForwardContract(long id, ContractPricingComponent pricingComponent, bool isAggregated, bool isPredeliveryRepoOrFwdSaleRepo)
     : base(id, pricingComponent, isAggregated)
 {
     IsPredeliveryRepoOrFwdSaleRepo = isPredeliveryRepoOrFwdSaleRepo;
 }
Exemplo n.º 11
0
 public AutoSpotContract(long id, string contractId, ContractPricingComponent pricingComponent) : base(id, pricingComponent)
 {
     ContractId = contractId;
 }
Exemplo n.º 12
0
 public AutoForwardContract(long id, ContractPricingComponent pricingComponent, bool isAggregated)
     : base(id, pricingComponent, isAggregated)
 {
     Id = id;
 }
Exemplo n.º 13
0
 public ForwardContract(long id, ContractPricingComponent pricingComponent, bool isAggregated)
     : base(id, pricingComponent)
 {
     IsAggregated = isAggregated;
 }
Exemplo n.º 14
0
 public OffsetForwardContract(long id, int version, ContractPricingComponent pricingComponent, bool isAggregated, bool isPredeliveryRepoOrFwdSaleRepo)
     : base(id, version, pricingComponent, isAggregated, string.Empty, null)
 {
     IsPredeliveryRepoOrFwdSaleRepo = isPredeliveryRepoOrFwdSaleRepo;
 }
Exemplo n.º 15
0
 protected Contract(long id, ContractPricingComponent pricingComponent)
     : this(id)
 {
     PricingComponent = pricingComponent;
 }
Exemplo n.º 16
0
 protected Contract(long id, int version, ContractPricingComponent pricingComponent)
     : this(id, pricingComponent)
 {
     Version = version;
 }
Exemplo n.º 17
0
 public SpotContract(long id, ContractPricingComponent pricingComponent)
     : base(id, pricingComponent)
 {
 }
Exemplo n.º 18
0
 public SpotContract(long id, int version, ContractPricingComponent pricingComponent, string optionContractId, int?optionLeg)
     : base(id, version, pricingComponent)
 {
     this.OptionContractId = optionContractId;
     this.OptionLeg        = OptionLeg;
 }
Exemplo n.º 19
0
 public override void Amend(ContractPricingComponent newPricingComponent)
 {
     //do nothing;
 }