def METHOD_NAME(
    self, instrument_code: str, delayfill: bool = True, roundpositions: bool = True
) -> accountCurve:
    self.log.msg(
        "Calculating pandl for instrument for %s" % instrument_code,
        instrument_code=instrument_code,
    )
    use_SR_costs = self.use_SR_costs
    _raise_exceptions(
        roundpositions=roundpositions,
        delayfill=delayfill,
        use_SR_costs=use_SR_costs,
    )
    pandl_calculator = self._pandl_calculator_for_instrument_with_cash_costs(
        instrument_code=instrument_code,
        roundpositions=roundpositions,
        delayfill=delayfill,
    )
    account_curve = accountCurve(pandl_calculator, weighted=True)
    return account_curve