def get_limit_and_position_for_instrument(self, instrument_code): limit_object = self.get_position_limit_object_for_instrument( instrument_code) position = self.get_current_position_for_instrument(instrument_code) position_and_limit = positionLimitAndPosition(limit_object, position) return position_and_limit
def get_limit_and_position_for_instrument_strategy( self, instrument_strategy: instrumentStrategy): limit_object = self.get_position_limit_object_for_instrument_strategy( instrument_strategy) position = self.get_current_position_for_instrument_strategy( instrument_strategy) position_and_limit = positionLimitAndPosition(limit_object, position) return position_and_limit