From ecd297ea5c4876ef8b1f09e74816c88f7bb95183 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 08 五月 2024 18:16:34 +0800 Subject: [PATCH] 任何票,只有首次才可以激进下单,之后每次下单要看总卖额,当总卖额≥500万,才可以激进下单。 --- test/test.py | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/test/test.py b/test/test.py index fdaa657..076951a 100644 --- a/test/test.py +++ b/test/test.py @@ -1,3 +1,5 @@ +from huaxin_client import l1_subscript_codes_manager +from third_data.history_k_data_util import JueJinHttpApi from utils import tool @@ -18,4 +20,12 @@ 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)) -- Gitblit v1.8.0