fix bug
This commit is contained in:
@@ -274,6 +274,14 @@ class CancelByIdHandler(BaseHandler):
|
||||
"order_id": order_id,
|
||||
})
|
||||
|
||||
# get_ipo_data() - Get today's new stock and bond offerings
|
||||
class IpoDataHandler(BaseHandler):
|
||||
def post(self):
|
||||
data = json.loads(self.request.body)
|
||||
typ = data.get('type', 'STOCK')
|
||||
ret = safe_call(get_ipo_data, typ)
|
||||
self.write_json(ret)
|
||||
|
||||
# sys: Python version information
|
||||
class PythonVersionHandler(BaseHandler):
|
||||
def get(self):
|
||||
@@ -368,6 +376,7 @@ def make_app():
|
||||
(r"/api/portfolio/deal", DealHandler),
|
||||
|
||||
(r"/api/data/full_tick", FullTickHandler),
|
||||
(r"/api/trade/ipo_data", IpoDataHandler),
|
||||
(r"/api/trade/cancel_by_id", CancelByIdHandler),
|
||||
(r"/api/trade/passorder", PassorderHandler),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user