fix: persist uncertain cancel outcomes
This commit is contained in:
@@ -9,6 +9,8 @@ from trex_core.adapters.broker.ownership import (
|
||||
from trex_core.application.broker_port import (
|
||||
BalanceItem,
|
||||
BrokerBalanceError,
|
||||
CancelOutcome,
|
||||
CancelState,
|
||||
FillStatus,
|
||||
OrderAck,
|
||||
)
|
||||
@@ -29,7 +31,7 @@ class FakeBroker:
|
||||
return self.fill
|
||||
|
||||
def cancel_order(self, broker_order_id, *, side, symbol, qty, venue="KRX"):
|
||||
return True
|
||||
return CancelOutcome(CancelState.REQUESTED)
|
||||
|
||||
def get_balance(self):
|
||||
return self.balance
|
||||
|
||||
Reference in New Issue
Block a user