| | |
| | | datas = datas[-10:] |
| | | for data in datas: |
| | | limit_up_price = float(gpcode_manager.get_limit_up_price_by_preprice(code, data["pre_close"])) |
| | | if abs(limit_up_price - data["high"]) < 0.01: |
| | | if abs(limit_up_price - data["high"]) < 0.001: |
| | | date = data['bob'].strftime("%Y-%m-%d") |
| | | return round((datas[-1]["close"] - data["close"]) / data["close"], 4), date |
| | | return 0, '' |
| | |
| | | date = data['bob'].strftime("%Y-%m-%d") |
| | | if data["high"] > max_price: |
| | | max_price = data["high"] |
| | | if abs(limit_up_price - data["high"]) < 0.01: |
| | | if abs(limit_up_price - data["high"]) < 0.001: |
| | | limit_ups.append((date, True)) |
| | | limit_up_count += 1 |
| | | else: |