aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-20 19:48:28 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-20 20:20:08 +0200
commitceb7fc4c9e76857fefbe1dfe3f4dd3830d065a6f (patch)
tree8c92a741b37418e32e4a9de85f4077a41b42a61c /main.py
parentad64ff17e3aa7d7af40a3724a8cd9f19ca045422 (diff)
downloadTrader-ceb7fc4c9e76857fefbe1dfe3f4dd3830d065a6f.tar.gz
Trader-ceb7fc4c9e76857fefbe1dfe3f4dd3830d065a6f.tar.zst
Trader-ceb7fc4c9e76857fefbe1dfe3f4dd3830d065a6f.zip
Use generic parser for market processing
Diffstat (limited to 'main.py')
-rw-r--r--main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.py b/main.py
index 2c7b570..f465d8d 100644
--- a/main.py
+++ b/main.py
@@ -149,7 +149,10 @@ def parse_args(argv):
149 parser.add_argument("--db-database", default="cryptoportfolio", 149 parser.add_argument("--db-database", default="cryptoportfolio",
150 help="Database access to database (default: cryptoportfolio)") 150 help="Database access to database (default: cryptoportfolio)")
151 151
152 return parser.parse_args(argv) 152 parsed = parser.parse_args(argv)
153 if parsed.action is None:
154 parsed.action = ["sell_all"]
155 return parsed
153 156
154def process(market_config, market_id, user_id, args, pg_config): 157def process(market_config, market_id, user_id, args, pg_config):
155 try: 158 try: