Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Custom Commission

Hi Everyone,

I am trying to implement a custom commission in order to set a maximum on the amount I can pay. I am working with a brokerage firm that makes you pay 0.0035 per share traded but if the price go over .5% of the total transaction then it defaults to that price (.5%*number of shares*price per share). Has anyone figured out a good way to do this? 

Thanks,
Daniel