mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-20 12:20:29 +08:00
added the is_success property to the SimulatedTrading class
This commit is contained in:
@@ -325,6 +325,10 @@ class SimulatedTrading(object):
|
||||
if blocking:
|
||||
self.sim_context.join()
|
||||
|
||||
@property
|
||||
def is_success(self):
|
||||
return self.sim.read() and not self.sim.exception
|
||||
|
||||
#--------------------------------
|
||||
# Component property accessors
|
||||
#--------------------------------
|
||||
|
||||
Reference in New Issue
Block a user