There should be a way for an algorithm to know the type and amount of slippage - something like get_slippage(sid), because in general the slippage will be different for different securities. This is necessary to estimate (since we can't know the price we'll end up paying) the number of shares we can afford with a given amount of cash. I have requested adding a function, get_commission, retrieving commission information, here. I haven't had time to think what behavior of such a function I would like.
Slippage models in the Quantopian API, and the set_slippage function, are discussed in the Quantopian help.