diff --git a/README.md b/README.md index 64a042b..3755810 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This is a library-like application, which operates with orders and positions on your account. -*Current version:* **0.6** +*Current version:* **0.6.1** #### Features: * Creating an cancelling orders on your account. Stop-loss, Limit, passive, reduce-only, close-only, hidden orders supported. * Preventing these orders for being lost, cancelled or rejected: Supervisor will place them anew. @@ -151,12 +151,11 @@ order._on_fill = callback # Run cycle and when your order filled, the message will be printed. ``` -There are 3 possible events provided: +There are 2 possible events provided: ```python Order._on_fill: Callable Order._on_reject: Callable -Order._on_cancel: Callable ``` Run Supervisor cycle (works in own thread): diff --git a/example.py b/example.py index 04297fb..c5efbb9 100644 --- a/example.py +++ b/example.py @@ -26,7 +26,6 @@ # DO NOT USE stop_cycle() method into callbacks!!! It causes the deadlock stop_loss._on_reject = lambda: print('Rejected') stop_loss._on_fill = lambda: print('We lost position(') - stop_loss._on_cancel = lambda: print('Trading without stops is risking ;)') input('Enter to run cycle') supervisor.run_cycle() diff --git a/supervisor/__init__.py b/supervisor/__init__.py index 08181df..2082eea 100644 --- a/supervisor/__init__.py +++ b/supervisor/__init__.py @@ -1,3 +1,3 @@ from supervisor._supervisor import * -__version__ = '0.6' +__version__ = '0.6.1'