Commit 9c305554 by rongjun

init

parent 6f569074
...@@ -91,7 +91,7 @@ def cta(timestamp, last_price, task): ...@@ -91,7 +91,7 @@ def cta(timestamp, last_price, task):
def push(request): def push(request):
data = request.GET.get('data') data = request.GET.get('data')
data = data.split(',') data = data.split(',')
timestamp = int(data[0]) timestamp = int(data[0].split('.')[0])
instrument = data[1] instrument = data[1]
last_price = Decimal(data[2]) last_price = Decimal(data[2])
tasks = Task.get_active_list(instrument) tasks = Task.get_active_list(instrument)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment