本文整理汇总了Python中EventEngine.DyEvent.data['startDate']方法的典型用法代码示例。如果您正苦于以下问题:Python DyEvent.data['startDate']方法的具体用法?Python DyEvent.data['startDate']怎么用?Python DyEvent.data['startDate']使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EventEngine.DyEvent
的用法示例。
在下文中一共展示了DyEvent.data['startDate']方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _update
# 需要导入模块: from EventEngine import DyEvent [as 别名]
# 或者: from EventEngine.DyEvent import data['startDate'] [as 别名]
def _update(self, startDate, endDate, indicators, isForced=False, codes=None):
# update all stock A code table, trade day table and sector code table firstly
if not self._updateHistDaysBasic(startDate, endDate):
self._printCount()
self._eventEngine.put(DyEvent(DyEventType.fail))
return
# put event for 一键更新
event = DyEvent(DyEventType.stockDaysCommonUpdateFinish)
event.data['startDate'] = startDate
event.data['endDate'] = endDate
self._eventEngine.put(event)
# 更新日线数据
self._updateHistDays(startDate, endDate, indicators, isForced, codes)
示例2: _stockRegression
# 需要导入模块: from EventEngine import DyEvent [as 别名]
# 或者: from EventEngine.DyEvent import data['startDate'] [as 别名]
def _stockRegression(self):
strategyCls, param = self._widgetStrategy.getStrategy()
if strategyCls is None: return
data = {}
if not DyDateDlg(data).exec_():
return
# change UI
self._startRunningMutexAction(self._stockRegressionAction)
event = DyEvent(DyEventType.stockSelectStrategyRegressionReq)
event.data['class'] = strategyCls
event.data['param'] = param
event.data['startDate'] = data['startDate']
event.data['endDate'] = data['endDate']
self._mainEngine.eventEngine.put(event)