Skip to content

Commit

Permalink
1)add hidden tags in setting
Browse files Browse the repository at this point in the history
2)improve zen factor
3)add some em api
4)fix docs
  • Loading branch information
foolcage committed Jan 17, 2025
1 parent 3e12e39 commit 10ffd9e
Show file tree
Hide file tree
Showing 21 changed files with 895 additions and 140 deletions.
6 changes: 4 additions & 2 deletions docs/source/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@ API
:template: custom-module-template.rst
:recursive:

zvt
zvt.api
zvt.autocode
zvt.consts
zvt.common
zvt.contract
zvt.domain
zvt.factors
zvt.fill_project
zvt.informer
zvt.main
zvt.misc
zvt.ml
zvt.plugin
zvt.recorders
zvt.rest
zvt.samples
zvt.tag
zvt.trader
zvt.trading
zvt.ui
zvt.utils
10 changes: 5 additions & 5 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sphinx==4.4.0
sphinx_autodoc_typehints==1.15.3
rst2pdf==0.99
sphinx==8.1.3
sphinx_autodoc_typehints==3.0.1
rst2pdf==0.103.1
ipython==8.29.0
sphinx_rtd_theme==1.0.0
readthedocs-sphinx-search==0.1.1
sphinx_rtd_theme==3.0.2
readthedocs-sphinx-search==0.3.2
10 changes: 6 additions & 4 deletions src/zvt/factors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-#

# the __all__ is generated
__all__ = []

Expand Down Expand Up @@ -35,11 +37,11 @@

__all__ += _macd_all

# import all from submodule z
from .z import *
from .z import __all__ as _z_all
# import all from submodule zen
from .zen import *
from .zen import __all__ as _zen_all

__all__ += _z_all
__all__ += _zen_all

# import all from submodule technical_factor
from .technical_factor import *
Expand Down
1 change: 1 addition & 0 deletions src/zvt/factors/macd/macd_factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ def compute_result(self):
f = GoldCrossFactor(provider="em", entity_provider="em", entity_ids=["stock_sz_000338"])
f.drawer().draw(show=True)


# the __all__ is generated
__all__ = ["MacdFactor", "BullFactor", "KeepBullFactor", "LiveOrDeadFactor", "GoldCrossFactor"]
18 changes: 0 additions & 18 deletions src/zvt/factors/z/__init__.py

This file was deleted.

24 changes: 0 additions & 24 deletions src/zvt/factors/z/domain/__init__.py

This file was deleted.

18 changes: 0 additions & 18 deletions src/zvt/factors/z/domain/stock_1d_z_factor.py

This file was deleted.

18 changes: 0 additions & 18 deletions src/zvt/factors/z/domain/stock_1wk_z_factor.py

This file was deleted.

26 changes: 26 additions & 0 deletions src/zvt/factors/zen/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-#

# the __all__ is generated
__all__ = []

# __init__.py structure:
# common code of the package
# export interface in __all__ which contains __all__ of its sub modules

# import all from submodule zen_factor
from .zen_factor import *
from .zen_factor import __all__ as _zen_factor_all

__all__ += _zen_factor_all

# import all from submodule base_factor
from .base_factor import *
from .base_factor import __all__ as _base_factor_all

__all__ += _base_factor_all

# import all from submodule domain
from .domain import *
from .domain import __all__ as _domain_all

__all__ += _domain_all
Loading

0 comments on commit 10ffd9e

Please sign in to comment.