from enum import Enum class OrderStatus(Enum): NEW = 1 PENDING_NEW = 2 PARTIALLY_FILLED = 3 FILLED = 4 CANCELED = 5 REJECTED = 6 class ExecType(Enum): NEW = 1 PENDING_NEW = 2 PARTIAL_FILL = 3 FILL = 4 CANCELED = 5 REJECTED = 6