INNER CODE UNIT · Python

rt_position_update

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

    def rt_position_update(self, new_position: int) -> None:
        """Update realtime position.

        Args:
            new_position (int): new position

        """
        self._cls_rt_position_update(self.product, new_position)
    
    @property
    def bids(self) -> list[tuple[int, int]]:
        """Return bid orders.

        Returns:
            dict[int, int].items(): bid orders (prc, amt)

        """
        return list(self._state.order_depths[self.product].buy_orders.items())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…