price=float(fund['trade']) netvalue = float(['单位净值']) discount = (price-netvalue) / netvalue * 100 fund['溢价率'] = discount self.dump_mongodb(fund) fund['update_time'] = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') try: price=float(fund['trade']) netvalue =...
text = f'{bond_nm} {increase_rt},价格:{full_price}; 正股{sincrease_rt}; 规模:{curr_iss_amt}; 溢价率:{premium_rt}' t = threading.Thread(target=self.notify, args=(text,)) t.start() @@ -216,5 +222,5 @@ def monitor(self):if...
'put_convert_price': '回售触发价', 'convert_dt': '转股起始日', 'short_maturity_dt': '到期时间', 'volume': '成交额(万元)', 'maturity_dt': '到期时间', 'volume': '成交额(万元)', 'force_redeem_price': '强赎价格', 'year_left': '剩余时间', # 'next_put_dt': '回售起始日',...