def METHOD_NAME(
    self, instrument_code, delayfill=True, roundpositions=False
) -> accountCurve:
    """
    Get the p&l for one instrument
    :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
    >>> from systems.basesystem import System
    >>> from systems.tests.testdata import get_test_object_futures_with_portfolios
    >>> (portfolio, posobject, combobject, capobject, rules, rawdata, data, config)=get_test_object_futures_with_portfolios()
    >>> system=System([portfolio, posobject, combobject, capobject, rules, rawdata, Account()], data, config)
    >>>
    >>> system.accounts.pandl_for_subsystem("US10", percentage=True).ann_std()
    0.23422378634127036
    """
    self.log.debug(
        "Calculating pandl for subsystem for instrument %s" % instrument_code,
        instrument_code=instrument_code,
    )
    use_SR_cost = self.use_SR_costs
    if use_SR_cost:
        pandl = self._pandl_for_subsystem_with_SR_costs(
            instrument_code, delayfill=delayfill, roundpositions=roundpositions
        )
    else:
        pandl = self._pandl_for_subsystem_with_cash_costs(
            instrument_code, delayfill=delayfill, roundpositions=roundpositions
        )
    return pandl