INNER CODE UNIT · Python
bids
pe049395/IMC-Prosperity-2024 · submissions/round5.py:288
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())
@property
def asks(self) -> list[tuple[int, int]]:
"""Return ask orders.
Returns:
dict[int, int].items(): ask orders (prc, amt)
"""
return list(self._state.order_depths[self.product].sell_orders.items())