summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bitrade.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitrade.py b/bitrade.py
index ee4fd19..fcddc27 100644
--- a/bitrade.py
+++ b/bitrade.py
@@ -51,6 +51,7 @@ class OrderHandler(tornado.websocket.WebSocketHandler):
with c.pipeline() as pipe:
order_str = unicode(order)
pipe.zadd('order_log', order.time, order_str)
+ pipe.zadd(order.type + '_list', order.price, order_str)
pipe.publish('test_channel', order_str)
yield tornado.gen.Task(pipe.execute)