parameters: (self)
return_statement: return 0.0
docstring: Return the credit part of the source total asset price.
  
        This is the same as getSourceCredit where quantity is replaced
        by source_total_asset_price.
        This method returns 0 if the total asset price is not set.
docstring_summary: Return the credit part of the source total asset price.
docstring_tokens: Return the credit part of the source total asset price .
function: def getSourceAssetCredit(self):
      """
        Return the credit part of the source total asset price.
  
        This is the same as getSourceCredit where quantity is replaced
        by source_total_asset_price.
        This method returns 0 if the total asset price is not set.
      """
      quantity = self.getSourceTotalAssetPrice()
      try:
        quantity = float(quantity)
      except TypeError:
        quantity = 0.0
      if (quantity < 0) ^ bool(self.isCancellationAmount()):
        return - quantity
      return 0.0
function_tokens: def getSourceAssetCredit ( self ) : quantity = self . getSourceTotalAssetPrice ( ) try : quantity = float ( quantity ) except TypeError : quantity = 0.0 if ( quantity < 0 ) ^ bool ( self . isCancellationAmount ( ) ) : return - quantity return 0.0