def __init__(self):
self.bid = {
'price': float(16),
'date': str('2015-01-05'),
'time': str(time.mktime(datetime.datetime.now().timetuple())),
'amount': int(10),
'towards': int(1),
'code': str('000001'),
'user': str('root'),
'strategy': str('example01'),
'status': '0x01',
'bid_model': 'strategy',
'amount_model': 'amount',
'order_id': str(random.random())
}
# ???? ??/??/??
self.bid_queue = queue.Queue(maxsize=20)
评论列表
文章目录