def calculateProfit(positions):
    """
    Calculates the total profit/loss from input positions.

    Parameters-
    positions: Array of positions.
    """

    totalProfit = 0.0
    for position in positions:
        totalProfit += float(position['pl'])

    return totalProfit