Skip to content

Commit

Permalink
Update README.md, example and version.
Browse files Browse the repository at this point in the history
  • Loading branch information
forkcs committed May 12, 2020
1 parent 15ea6b9 commit 925ed97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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):
Expand Down
1 change: 0 additions & 1 deletion example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion supervisor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from supervisor._supervisor import *

__version__ = '0.6'
__version__ = '0.6.1'

0 comments on commit 925ed97

Please sign in to comment.