<filename>src/main.py
"""Runs a trading simulation with the implemented features."""

from quote import Order
from book import OrderBook


def start_trading() -> None:
    """Run the matching engine designed in `OrderBook` - receiving orders by inputs at the terminal - and stops running once the quote string is 'stop'."""
    book = OrderBook()
    quote: str = input()
    while quote != "stop":
        book.add_order(Order(quote))
        quote = input()


if __name__ == "__main__":
    start_trading()

<filename>src/main.py
"""Runs a trading simulation with the implemented features."""

from quote import Order
from book import OrderBook


def start_trading() -> None:
    """Run the matching engine designed in `OrderBook` - receiving orders by inputs at the terminal - and stops running once the quote string is 'stop'."""
    book = OrderBook()
    quote: str = input()
    while quote != "stop":
        book.add_order(Order(quote))
        quote = input()


if __name__ == "__main__":
    start_trading()

Runs a trading simulation with the implemented features. Run the matching engine designed in `OrderBook` - receiving orders by inputs at the terminal - and stops running once the quote string is 'stop'.