class_docstr: Base class for slippage models.
  
  .. note::
      This is a base class and should not be used directly.
docstr: Returns the slipped price per share for an order.
  
  :param order: The order being filled.
  :type order: :class:`pyalgotrade.broker.Order`.
  :param price: The price for each share before slippage.
  :type price: float.
  :param quantity: The amount of shares that will get filled at this time for this order.
  :type quantity: float.
  :param bar: The current bar.
  :type bar: :class:`pyalgotrade.bar.Bar`.
  :param volumeUsed: The volume size that was taken so far from the current bar.
  :type volumeUsed: float.
  :rtype: float.
code: def calculatePrice(self, order, price, quantity, bar, volumeUsed):
      """
      Returns the slipped price per share for an order.
  
      :param order: The order being filled.
      :type order: :class:`pyalgotrade.broker.Order`.
      :param price: The price for each share before slippage.
      :type price: float.
      :param quantity: The amount of shares that will get filled at this time for this order.
      :type quantity: float.
      :param bar: The current bar.
      :type bar: :class:`pyalgotrade.bar.Bar`.
      :param volumeUsed: The volume size that was taken so far from the current bar.
      :type volumeUsed: float.
      :rtype: float.
      """
      raise NotImplementedError()
  
file_path: pyalgotrade/pyalgotrade/broker/slippage.py
imports: import abc
  import six
label_desc: Use image node_id 1 for calling the SlippageModel obj's underlying member method code with example usage: obj.calculatePrice(order, price, quantity, bar, volumeUsed) without return types