chore: initialize lhbfx project and documentation
This commit is contained in:
21
backend/scripts/generate_warnings.py
Normal file
21
backend/scripts/generate_warnings.py
Normal file
@ -0,0 +1,21 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from _bootstrap import add_src_to_path
|
||||
|
||||
add_src_to_path()
|
||||
|
||||
from lhbfx.pipeline import generate_warnings
|
||||
|
||||
|
||||
def main() -> None:
|
||||
result = generate_warnings()
|
||||
print(
|
||||
"预警生成完成:"
|
||||
f"sell_alert={result['sell_alert']}, "
|
||||
f"slow_exit_watch={result['slow_exit_watch']}, "
|
||||
f"total={result['total']}"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user