aboutsummaryrefslogtreecommitdiff
path: root/helper.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-04 12:59:57 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-04 12:59:57 +0100
commit17598517c544a3dda8b9f773dfeb669c886ea92b (patch)
treeeb02553743f2aa2cdd64e2b1cdd02d3c02d4a6cd /helper.py
parent9db7d156833cd384baa64b6148b5c646bfcc41f8 (diff)
downloadTrader-17598517c544a3dda8b9f773dfeb669c886ea92b.tar.gz
Trader-17598517c544a3dda8b9f773dfeb669c886ea92b.tar.zst
Trader-17598517c544a3dda8b9f773dfeb669c886ea92b.zip
Add close trades action
Diffstat (limited to 'helper.py')
-rw-r--r--helper.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/helper.py b/helper.py
index f14fd58..95b233a 100644
--- a/helper.py
+++ b/helper.py
@@ -179,6 +179,7 @@ class Processor:
179 "prepare_orders": { "only": "dispose", "compute_value": "average" }, 179 "prepare_orders": { "only": "dispose", "compute_value": "average" },
180 "run_orders": {}, 180 "run_orders": {},
181 "follow_orders": {}, 181 "follow_orders": {},
182 "close_trades": {},
182 }, 183 },
183 { 184 {
184 "name": "buy", 185 "name": "buy",
@@ -191,6 +192,7 @@ class Processor:
191 "move_balances": {}, 192 "move_balances": {},
192 "run_orders": {}, 193 "run_orders": {},
193 "follow_orders": {}, 194 "follow_orders": {},
195 "close_trades": {},
194 }, 196 },
195 ], 197 ],
196 "sell_all": [ 198 "sell_all": [
@@ -204,6 +206,7 @@ class Processor:
204 "prepare_orders": { "compute_value": "average" }, 206 "prepare_orders": { "compute_value": "average" },
205 "run_orders": {}, 207 "run_orders": {},
206 "follow_orders": {}, 208 "follow_orders": {},
209 "close_trades": {},
207 }, 210 },
208 { 211 {
209 "name": "wait", 212 "name": "wait",