INNER CODE UNIT · Python

position

pe049395/IMC-Prosperity-2024 · submissions/round5.py:250

    def position(self) -> int:
        """Return current position of product.

        Returns:
            int: current position of product

        """
        if self.product in self._state.position:
            return int(self._state.position[self.product])
        else:
            return 0
    
    @property
    def rt_position(self) -> int:
        """Return realtime position.

        Returns:
            int: realtime position

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…