Commit 2b789986 authored by 吕先亚's avatar 吕先亚

update

parent 189f858c
...@@ -96,7 +96,7 @@ async def recommend(): ...@@ -96,7 +96,7 @@ async def recommend():
'risk': risk, 'risk': risk,
'rr': round(sum([id_ticker_map[key]['risk'] * weight for key, weight in funds.items()]), 2), 'cp': cp, 'rr': round(sum([id_ticker_map[key]['risk'] * weight for key, weight in funds.items()]), 2), 'cp': cp,
'roi': roi} 'roi': roi}
note = {'recomman_reason': "recommend reason is ..."} note = {'recomm_reason': "recommend reason is ..."}
data['note'] = json.dumps(note) data['note'] = json.dumps(note)
# 计算股债比 # 计算股债比
stock_weight = int( stock_weight = int(
......
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