| | |
| | | from huaxin_client import l1_subscript_codes_manager |
| | | from third_data.history_k_data_util import JueJinHttpApi |
| | | from utils import tool |
| | | |
| | | |
| | |
| | | |
| | | |
| | | if __name__ == "__main__": |
| | | print(test_active_buy()) |
| | | results = JueJinHttpApi.get_exchanges_codes("SHSE,SZSE", sec_types=[8], skip_suspended=True, skip_st=True, |
| | | fields="symbol, sec_type, sec_id,sec_name, underlying_symbol, delisted_date") |
| | | fresults = [] |
| | | for r in results: |
| | | tool.get_now_date_str() |
| | | if int(tool.get_now_date_str('%Y%m%d')) >= int(r['delisted_date'].strftime('%Y%m%d')): |
| | | continue |
| | | fresults.append(r) |
| | | print(len(fresults)) |