]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Trader.git/commitdiff
Add fake scenario
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 8 Mar 2018 01:37:53 +0000 (02:37 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 9 Mar 2018 14:35:41 +0000 (15:35 +0100)
market.py

index c9629c9762d9384e09385fc824b9f74551955147..8672c59699431846ac097173bf5cb9ab076b3910 100644 (file)
--- a/market.py
+++ b/market.py
@@ -193,6 +193,33 @@ class Market:
 
 class Processor:
     scenarios = {
+            "wait_for_cryptoportfolio": [
+                {
+                    "name": "wait",
+                    "number": 1,
+                    "before": False,
+                    "after": True,
+                    "wait_for_recent": {},
+                    },
+                ],
+            "print_orders": [
+                {
+                    "name": "wait",
+                    "number": 1,
+                    "before": False,
+                    "after": True,
+                    "wait_for_recent": {},
+                    },
+                {
+                    "name": "make_orders",
+                    "number": 2,
+                    "before": False,
+                    "after": True,
+                    "fetch_balances": ["begin"],
+                    "prepare_trades": { "compute_value": "average" },
+                    "prepare_orders": { "compute_value": "average" },
+                    },
+                ],
             "sell_needed": [
                 {
                     "name": "wait",