Skip to content

Commit

Permalink
fix wrong exchange issue
Browse files Browse the repository at this point in the history
  • Loading branch information
foolcage committed Aug 20, 2021
1 parent 6d556a5 commit 447a226
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, day_data=False,
# 310004 港股通(深)
codes = ['310001', '310002']

super().__init__(force_update, sleeping_time, ['sh', 'sz'], None, codes, day_data, real_time=real_time,
super().__init__(force_update, sleeping_time, ['cn'], None, codes, day_data, real_time=real_time,
fix_duplicate_way='ignore', start_timestamp=start_timestamp, end_timestamp=end_timestamp)

def init_timestamps(self, entity):
Expand Down
8 changes: 4 additions & 4 deletions zvt/recorders/joinquant/overall/cross_market_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@


class CrossMarketSummaryRecorder(TimeSeriesDataRecorder):
entity_provider = 'exchange'
entity_provider = 'joinquant'
entity_schema = Index

provider = 'joinquant'
data_schema = CrossMarketSummary

def __init__(self,
force_update=False, sleeping_time=5, real_time=False,
force_update=False, sleeping_time=5, real_time=False,
fix_duplicate_way='add') -> None:

# 聚宽编码
Expand All @@ -25,7 +25,7 @@ def __init__(self,
# 310004 港股通(深)

codes = ['310001', '310002', '310003', '310004']
super().__init__(force_update, sleeping_time, ['sz'], None, codes, True, real_time=real_time,
super().__init__(force_update, sleeping_time, ['cn'], None, codes, True, real_time=real_time,
fix_duplicate_way=fix_duplicate_way)

def init_entities(self):
Expand Down Expand Up @@ -64,4 +64,4 @@ def get_data_map(self):
if __name__ == '__main__':
CrossMarketSummaryRecorder().run()
# the __all__ is generated
__all__ = ['CrossMarketSummaryRecorder']
__all__ = ['CrossMarketSummaryRecorder']

0 comments on commit 447a226

Please sign in to comment.