-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commisions
Ben Bell edited this page Nov 15, 2024
·
1 revision
The commissions.py module contains a function for calculating the commission for trades based on different commission types.
Calculates the commission for a trade based on the commission type and rate.
-
commisionType(str): The type of commission (e.g., "FLAT", "PERCENTAGE", "PERCENTAGE_PER_SHARE", "PER_SHARE"). -
commision(float): The commission rate. -
price(float): The price per share. -
numShares(int): The number of shares.
-
float: The calculated commission.
-
InvalidCommissionTypeError: If the commission type is invalid.