| | |
| | | from settings.trade_setting import TradeBlockBuyModeManager |
| | | from third_data.history_k_data_util import HistoryKDatasUtils |
| | | from utils import tool |
| | | |
| | | |
| | | def test_active_buy(): |
| | |
| | | |
| | | |
| | | if __name__ == "__main__": |
| | | block_codes = {"000333"} |
| | | print(block_codes | {"000222"}) |
| | | |
| | | print(TradeBlockBuyModeManager().can_buy_unique_block(), bin(TradeBlockBuyModeManager().get_mode())) |
| | | print(TradeBlockBuyModeManager().add_unique_block()) |
| | | print(TradeBlockBuyModeManager().can_buy_unique_block(), bin(TradeBlockBuyModeManager().get_mode())) |
| | | print(TradeBlockBuyModeManager().remove_unique_block()) |
| | | print(TradeBlockBuyModeManager().can_buy_unique_block(), bin(TradeBlockBuyModeManager().get_mode())) |
| | | __days = HistoryKDatasUtils.get_latest_trading_date_cache(6) |
| | | __days.insert(0, tool.get_now_date_str()) |
| | | print(__days) |