Skip to content

Commit

Permalink
zvdata as core
Browse files Browse the repository at this point in the history
Former-commit-id: 073cdd0
  • Loading branch information
foolcage committed Apr 20, 2020
1 parent 83a2f7c commit 638be0c
Show file tree
Hide file tree
Showing 158 changed files with 2,647 additions and 956 deletions.
Binary file added docs/data.eddx
Binary file not shown.
Binary file added docs/data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/factors/block_selector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from zvdata import IntervalLevel
from zvt.core import IntervalLevel
from zvt.domain import Block
from zvt.factors.money_flow_factor import BlockMoneyFlowFactor
from zvt.factors.target_selector import TargetSelector
Expand Down
2 changes: 1 addition & 1 deletion examples/factors/composite_selector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from examples.factors.technical_selector import TechnicalSelector
from zvdata import IntervalLevel
from zvt.core import IntervalLevel
from zvt.domain import Block
from zvt.factors.money_flow_factor import BlockMoneyFlowFactor
from zvt.factors.target_selector import TargetSelector
Expand Down
2 changes: 1 addition & 1 deletion examples/factors/technical_selector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from zvdata import IntervalLevel
from zvt.core import IntervalLevel
from zvt.domain import Stock
from zvt.factors.target_selector import TargetSelector
from zvt.factors.technical_factor import BullFactor
Expand Down
4 changes: 2 additions & 2 deletions examples/reports/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

from sqlalchemy import or_

from zvdata.utils.pd_utils import pd_is_not_null
from zvdata.utils.time_utils import to_pd_timestamp, now_time_str
from zvt.core import pd_is_not_null
from zvt.core import to_pd_timestamp, now_time_str
from zvt.domain import FinanceFactor, BalanceSheet, IncomeStatement


Expand Down
2 changes: 1 addition & 1 deletion examples/reports/report_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from apscheduler.schedulers.background import BackgroundScheduler

from zvdata import IntervalLevel
from zvt.core import IntervalLevel
from zvt import init_log
from zvt.domain import Block, BlockMoneyFlow, BlockCategory
from zvt.factors import TargetSelector
Expand Down
4 changes: 2 additions & 2 deletions examples/reports/report_core_compay.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

from examples.factors.fundamental_selector import FundamentalSelector
from examples.reports import get_subscriber_emails
from zvdata.api import get_entities
from zvdata.utils.time_utils import now_pd_timestamp, to_time_str
from zvt.core import get_entities
from zvt.core import now_pd_timestamp, to_time_str
from zvt import init_log
from zvt.domain import Stock
from zvt.factors.target_selector import TargetSelector
Expand Down
4 changes: 2 additions & 2 deletions examples/reports/report_cross_ma.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from apscheduler.schedulers.background import BackgroundScheduler

from zvdata.api import get_entities
from zvdata.utils.time_utils import now_pd_timestamp
from zvt.core import get_entities
from zvt.core import now_pd_timestamp
from zvt import init_log
from zvt.domain import Stock, StockTradeDay
from zvt.factors.ma.ma_factor import CrossMaFactor
Expand Down
2 changes: 1 addition & 1 deletion examples/reports/report_real.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from apscheduler.schedulers.background import BackgroundScheduler

from examples.factors.block_selector import BlockSelector
from zvdata.api import get_entities
from zvt.core import get_entities
from zvt import init_log
from zvt.domain import Stock1dKdata, BlockStock, Block, StockValuation, Stock
from zvt.factors import TargetSelector
Expand Down
2 changes: 1 addition & 1 deletion examples/reports/report_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from apscheduler.schedulers.background import BackgroundScheduler

from examples.reports import risky_company
from zvdata.api import get_entities, get_entity_code
from zvt.core import get_entities, get_entity_code
from zvt import init_log
from zvt.domain import Stock1dKdata, StockValuation, Stock
from zvt.factors import TargetSelector
Expand Down
2 changes: 1 addition & 1 deletion examples/reports/report_vol_up250.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from apscheduler.schedulers.background import BackgroundScheduler

from examples.reports import get_subscriber_emails
from zvdata.api import get_entities
from zvt.core import get_entities
from zvt import init_log
from zvt.domain import Stock, Stock1dKdata, StockValuation
from zvt.factors.ma.ma_factor import VolumeUpMa250Factor
Expand Down
2 changes: 1 addition & 1 deletion examples/trader/coin_traders.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from zvdata import IntervalLevel
from zvt.core import IntervalLevel
from zvt.factors.ma.ma_factor import CrossMaFactor
from zvt.factors.target_selector import TargetSelector

Expand Down
2 changes: 1 addition & 1 deletion examples/trader/stock_traders.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from zvdata import IntervalLevel
from zvt.core import IntervalLevel
from zvt.factors.ma.ma_factor import CrossMaFactor
from zvt.factors.target_selector import TargetSelector
from zvt.factors.technical_factor import BullFactor
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
zvdata == 1.2.3
requests == 2.20.1
SQLAlchemy == 1.2.14
pandas == 0.24.2
Expand All @@ -11,7 +10,6 @@ jqdatasdk == 1.7.8
demjson == 2.2.4
marshmallow-sqlalchemy == 0.19.0
marshmallow == 3.2.2
ccxt == 1.17.191
plotly==4.1.0
simplejson==3.16.0
html5lib == 1.0.1
Expand Down
Binary file removed research/imgs/gongzhonghao.jpg
Binary file not shown.
Loading

0 comments on commit 638be0c

Please sign in to comment.