Commission And Fees Report

View as MarkdownOpen in Claude

When an order is filled either fully or partially, the IBApi.EWrapper.execDetails and IBApi.EWrapper.commissionReport events will deliver IBApi.Execution and IBApi.CommissionAndFeesReport objects. This allows to obtain the full picture of the order’s execution and the resulting commissions.

  • Advisors executing allocation orders will receive execution details and commissions for the allocation order itself. To receive allocation details and commissions for a specific subaccount [IBApi.EClient.reqExecutions](/tws-api/doc/order-management/execution-details/request-execution-details) can be used.

EWrapper.commissionReport (

commissionAndFeesReport: CommissionAndFeesReport. Returns a commissions report object containing the fields execId, commission, currency, realizedPnl, yield, and yieldRedemptionDate.
)

Provides the Commission Report of an Execution

1def commissionAndFeesReport(self, commissionAndFeesReport: CommissionAndFeesReport):
2 print("CommissionReport.", commissionAndFeesReport)