-
Notifications
You must be signed in to change notification settings - Fork 873
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1)add return_unfinished arg for recorder 2)improve tags
- Loading branch information
Showing
27 changed files
with
622 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# -*- coding: utf-8 -*- | ||
from examples.recorder_utils import run_data_recorder | ||
from zvt.api.selector import get_entity_ids_by_filter | ||
from zvt.domain import StockEvents, BlockStock | ||
from zvt.tag import StockAutoTagger | ||
|
||
if __name__ == "__main__": | ||
data_provider = "em" | ||
sleeping_time = 0.5 | ||
normal_stock_ids = get_entity_ids_by_filter( | ||
provider="em", ignore_delist=True, ignore_st=False, ignore_new_stock=False | ||
) | ||
|
||
run_data_recorder( | ||
entity_ids=normal_stock_ids, | ||
day_data=False, | ||
domain=StockEvents, | ||
data_provider=data_provider, | ||
force_update=False, | ||
sleeping_time=sleeping_time, | ||
return_unfinished=True, | ||
) | ||
|
||
run_data_recorder( | ||
entity_ids=normal_stock_ids, | ||
day_data=True, | ||
domain=BlockStock, | ||
data_provider=data_provider, | ||
force_update=False, | ||
sleeping_time=sleeping_time, | ||
return_unfinished=True, | ||
) | ||
|
||
StockAutoTagger().tag() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
import json | ||
|
||
from examples.data_runner.kdata_runner import record_stock_data, record_stock_news, record_stock_events | ||
from examples.reports.report_tops import report_top_stocks, report_top_blocks | ||
from examples.data_runner.kdata_runner import record_stock_data | ||
from examples.reports.report_tops import report_top_stocks | ||
from examples.reports.report_vol_up import report_vol_up_stocks | ||
from examples.utils import get_hot_topics | ||
from zvt import zvt_config | ||
from zvt.factors.top_stocks import compute_top_stocks | ||
from zvt.informer import EmailInformer | ||
from zvt.utils import current_date | ||
|
||
if __name__ == "__main__": | ||
|
||
# record_stock_news() | ||
|
||
record_stock_data() | ||
# record_stock_events() | ||
compute_top_stocks() | ||
|
||
report_top_stocks() | ||
# report_top_blocks() | ||
report_vol_up_stocks() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.