| | |
| | | return json.dumps({"errcode": 0, "list": fresults, "day": day}) |
| | | |
| | | |
| | | def getLimitUpInfo(): |
| | | list_ = [] |
| | | page_size = 20 |
| | | MAX_SIZE = 150 |
| | | for i in range(0, 10): |
| | | result_str = daBanList(DABAN_TYPE_LIMIT_UP, page_size=page_size, index=len(list_)) |
| | | result = json.loads(result_str) |
| | | temp_list = result["list"] |
| | | list_ += temp_list |
| | | if len(temp_list) < page_size: |
| | | result['list'] = list_ |
| | | return json.dumps(result) |
| | | elif len(list_) > MAX_SIZE: |
| | | return json.dumps(result) |
| | | return None |
| | | |
| | | |
| | | def getHistoryLimitUpInfo(day): |
| | | fresults = [] |
| | | for i in range(0, 100): |
| | |
| | | # print(r) |
| | | # result = getCodeJingXuanBlocks("000756", True) |
| | | # for x in result: |
| | | result = getHistoryCodesByPlateOrderByLZCS("801074", "2025-05-16", "1025") |
| | | print(result) |
| | | results = getLimitUpInfoNew() |
| | | results = json.loads(results) |
| | | for d in results['list']: |
| | | print(len(d), d) |
| | | |
| | | # request_new_blocks_codes([("机器人", "801159")]) |
| | | # result = getCodesByPlate("801159") # getHistoryLimitUpInfo("2024-02-19") |