aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-08 02:37:53 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-09 15:35:41 +0100
commit81d1db5117b61c2bb9f114cfc59f015e97c6eb9b (patch)
treef6d09a7c055aa8d62db3222e977307464883411c
parent9bde69bfc1dcd17a92ac2ee5abfcda5b30034d93 (diff)
downloadTrader-81d1db5117b61c2bb9f114cfc59f015e97c6eb9b.tar.gz
Trader-81d1db5117b61c2bb9f114cfc59f015e97c6eb9b.tar.zst
Trader-81d1db5117b61c2bb9f114cfc59f015e97c6eb9b.zip
Add fake scenario
-rw-r--r--market.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/market.py b/market.py
index c9629c9..8672c59 100644
--- a/market.py
+++ b/market.py
@@ -193,6 +193,33 @@ class Market:
193 193
194class Processor: 194class Processor:
195 scenarios = { 195 scenarios = {
196 "wait_for_cryptoportfolio": [
197 {
198 "name": "wait",
199 "number": 1,
200 "before": False,
201 "after": True,
202 "wait_for_recent": {},
203 },
204 ],
205 "print_orders": [
206 {
207 "name": "wait",
208 "number": 1,
209 "before": False,
210 "after": True,
211 "wait_for_recent": {},
212 },
213 {
214 "name": "make_orders",
215 "number": 2,
216 "before": False,
217 "after": True,
218 "fetch_balances": ["begin"],
219 "prepare_trades": { "compute_value": "average" },
220 "prepare_orders": { "compute_value": "average" },
221 },
222 ],
196 "sell_needed": [ 223 "sell_needed": [
197 { 224 {
198 "name": "wait", 225 "name": "wait",