-
Notifications
You must be signed in to change notification settings - Fork 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Add StockEvents and recorder for it
2. Add TopStocks to show custom factor persistence
- Loading branch information
Showing
21 changed files
with
581 additions
and
101 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
requests==2.28.2 | ||
SQLAlchemy == 1.4.46 | ||
SQLAlchemy == 1.4.52 | ||
pandas==1.5.3 | ||
arrow==1.2.3 | ||
openpyxl==3.1.1 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
from sqlalchemy import Column, String, DateTime | ||
from sqlalchemy.orm import declarative_base | ||
|
||
from zvt.contract import Mixin | ||
from zvt.contract.register import register_schema | ||
|
||
EventsBase = declarative_base() | ||
|
||
|
||
class StockEvents(EventsBase, Mixin): | ||
__tablename__ = "stock_events" | ||
event_type = Column(String) | ||
specific_event_type = Column(String) | ||
notice_date = Column(DateTime) | ||
level1_content = Column(String) | ||
level2_content = Column(String) | ||
|
||
|
||
register_schema(providers=["em"], db_name="stock_events", schema_base=EventsBase, entity_type="stock") | ||
# the __all__ is generated | ||
__all__ = ["StockEvents"] |
Oops, something went wrong.