Question Description
Design a crypto trading system to manage cryptocurrency orders, supporting operations such as placing, pausing, resuming, canceling, and displaying live orders. Each order includes the following attributes:
- ID: The current order ID.
- Currency: The cryptocurrency being traded.
- Amount: The amount of cryptocurrency in the order.
- Timestamp: The time the order was placed.
- Order Type: Either
buyorsell. - State: One of
live,paused,completed, orcanceled.
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected