All calls to/from python are performed on one thread via a simple message queue (necessary because of the global interpreter lock).
20 lines
279 B
Python
20 lines
279 B
Python
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
|