def METHOD_NAME(
    self, instrument_code: str, delayfill=True, roundpositions=True
) -> accountCurve:
    """
    Get the p&l for one instrument, using variable capital
    :param instrument_code: instrument to get values for
    :type instrument_code: str
    :param delayfill: Lag fills by one day
    :type delayfill: bool
    :param roundpositions: Round positions to whole contracts
    :type roundpositions: bool
    :returns: accountCurve
    """
    self.log.debug(
        "Calculating pandl for instrument for %s with capital multiplier"
        % instrument_code,
        instrument_code=instrument_code,
    )
    positions = self.get_buffered_position_with_multiplier(
        instrument_code, roundpositions=roundpositions
    )
    instrument_pandl = self._pandl_for_instrument_with_positions(
        instrument_code,
        positions=positions,
        delayfill=delayfill,
        roundpositions=roundpositions,
    )
    return instrument_pandl