This commit is contained in:
2026-09-04 21:04:34 +08:00
parent eb0bbcdddc
commit 6a94f67e82
3 changed files with 25 additions and 2 deletions

View File

@@ -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),