コード例 #1
0
ファイル: TradeableInstrument.cs プロジェクト: kiquenet/B4F
 public override bool CalculateCosts(IOrderAllocation transaction, IFeeFactory feeFactory, IGLLookupRecords lookups)
 {
     checkCostCalculater(transaction, feeFactory);
     Commission commDetails = feeFactory.CalculateCommission(transaction);
     if (commDetails != null)
         transaction.setCommission(lookups, commDetails.Amount);
     return true;
 }
コード例 #2
0
ファイル: TradeableInstrument.cs プロジェクト: kiquenet/B4F
 public override bool CalculateCosts(IOrder order, IFeeFactory feeFactory)
 {
     checkCostCalculater(order, feeFactory);
     Commission commDetails = feeFactory.CalculateCommission(order);
     if (commDetails != null)
     {
         order.CommissionDetails = commDetails;
         order.CommissionDetails.Parent = (ICommissionParent)order;
     }
     return true;
 }