feat order.py
This commit is contained in:
@@ -1123,7 +1123,7 @@ class AssetsHandler(BaseHandler):
|
||||
info = _data[0] if _data else None
|
||||
if not info:
|
||||
raise HTTPError(500, "Failed to get account data")
|
||||
self.write(json.dumps({"data": info}, ensure_ascii=False))
|
||||
self.write(json.dumps({"total": round(info.m_dBalance, 2),"available": round(info.m_dAvailable, 2)}, ensure_ascii=False))
|
||||
|
||||
|
||||
# get_trade_detail_data('account') - Query total assets
|
||||
|
||||
Reference in New Issue
Block a user