MCPcopy Create free account

hub / github.com/shidenggui/easyquant / functions

Functions136 in github.com/shidenggui/easyquant

↓ 9 callersMethodis_active
(self)
easyquant/push_engine/clock_engine.py:98
↓ 9 callersMethodput
(self, event)
easyquant/event_engine.py:74
↓ 9 callersMethodstart
启动主引擎
easyquant/main_engine.py:103
↓ 7 callersMethodtock
(self)
easyquant/push_engine/clock_engine.py:182
↓ 6 callersMethodregister
注册事件处理函数监听
easyquant/event_engine.py:59
↓ 5 callersMethod_register_moment
(self, clock_type, moment, is_trading_date=True, makeup=False, call=None)
easyquant/push_engine/clock_engine.py:222
↓ 4 callersMethodregister_clock_interval
(self, begin, trading, active_times)
unitest_demo.py:253
↓ 4 callersMethodstop
停止引擎
easyquant/event_engine.py:54
↓ 3 callersMethod_add_main_shutdown
(self, shutdown)
easyquant/main_engine.py:231
↓ 3 callersMethodload_strategy
动态加载策略 :param names: 策略名列表,元素为策略的 name 属性
easyquant/main_engine.py:180
↓ 3 callersMethodregister_interval
(self, interval_minute, trading=True)
easyquant/push_engine/clock_engine.py:232
↓ 3 callersMethodstart
(self)
easyquant/push_engine/base_engine.py:21
↓ 3 callersMethodupdate_next_time
下次激活时间 :return:
easyquant/push_engine/clock_engine.py:82
↓ 2 callersFunctionis_trade_date
(now_time)
easyquant/easydealutils/time.py:27
↓ 2 callersMethodload
(self, names, strategy_file)
easyquant/main_engine.py:118
↓ 2 callersMethodnow
now 时间戳统一接口 :return:
easyquant/push_engine/clock_engine.py:160
↓ 2 callersMethodpush_event_type
(self, clock_handler)
easyquant/push_engine/clock_engine.py:206
↓ 2 callersMethodpush_list_value
(self, listname, value)
easyquant/easydealutils/easyredis.py:50
↓ 2 callersMethodregister_clock_moent_makeup
(self, makeup)
unitest_demo.py:179
↓ 2 callersMethodregister_moment
(self, clock_type, moment, makeup=False)
easyquant/push_engine/clock_engine.py:219
↓ 2 callersMethodstrategy_listen_event
所有策略要监听的事件都绑定到这里 :param strategy: Strategy() :param _type: "listen" OR "unlisten" :return:
easyquant/main_engine.py:161
↓ 2 callersMethodunregister
注销事件处理函数
easyquant/event_engine.py:64
↓ 2 callersMethodwait
(self)
easyquant/push_engine/base_engine.py:46
↓ 1 callersMethod_init_clock_handler
注册默认的时钟事件 :return:
easyquant/push_engine/clock_engine.py:131
↓ 1 callersFunction_is_holiday
(day)
easyquant/easydealutils/time.py:9
↓ 1 callersMethod_register_interval
(self, interval_minute, trading=True, call=None)
easyquant/push_engine/clock_engine.py:235
↓ 1 callersMethod_tock
(self)
easyquant/push_engine/clock_engine.py:188
↓ 1 callersMethodbind_event
绑定事件
custom/fixedmainengine.py:77
↓ 1 callersMethodclock
(self, event)
easyquant/strategy/strategyTemplate.py:65
↓ 1 callersMethodfetch_quotation
(self)
easyquant/push_engine/base_engine.py:38
↓ 1 callersMethodfetch_quotation
(self)
custom/fixeddataengine.py:54
↓ 1 callersMethodfile2dict
(self, path)
easyquant/easydealutils/easyredis.py:17
↓ 1 callersFunctionget_broker_need_data
(choose_broker)
test.py:21
↓ 1 callersFunctionget_next_trade_date
:param now_time: datetime.datetime :return: >>> import datetime >>> get_next_trade_date(datetime.date(2016, 5, 5)) datetime.date(
easyquant/easydealutils/time.py:31
↓ 1 callersMethodget_strategy
(self, name)
easyquant/main_engine.py:203
↓ 1 callersMethodinit
(self)
easyquant/strategy/strategyTemplate.py:17
↓ 1 callersMethodinit
(self)
easyquant/push_engine/base_engine.py:42
↓ 1 callersFunctionis_holiday
(now_time)
easyquant/easydealutils/time.py:18
↓ 1 callersMethodis_tradetime_now
:return:
easyquant/push_engine/clock_engine.py:213
↓ 1 callersFunctionis_weekend
(now_time)
easyquant/easydealutils/time.py:23
↓ 1 callersMethodload
(self, names, strategy_file)
custom/fixedmainengine.py:41
↓ 1 callersMethodload_strategy
动态加载策略 :param names: 策略名列表,元素为策略的 name 属性
custom/fixedmainengine.py:93
↓ 1 callersMethodlog_handler
优先使用在此自定义 log 句柄, 否则返回None, 并使用主引擎日志句柄 :return: log_handler or None
easyquant/strategy/strategyTemplate.py:68
↓ 1 callersMethodlookup_redist_info
(self)
easyquant/easydealutils/easyredis.py:26
↓ 1 callersFunctionmain
()
easyquant/easydealutils/easyredis.py:63
↓ 1 callersMethodrun
(self, event)
easyquant/strategy/strategyTemplate.py:56
↓ 1 callersMethodset_key_value
(self, key, value)
easyquant/easydealutils/easyredis.py:30
↓ 1 callersMethodshutdown
关闭进程前调用该函数 :return:
easyquant/strategy/strategyTemplate.py:75
↓ 1 callersMethodstart
引擎启动
easyquant/event_engine.py:49
↓ 1 callersMethodstop
停止
easyquant/multiprocess/strategy_wrapper.py:22
↓ 1 callersMethodstrategy
:param event event.data 为所有股票的信息,结构如下 {'162411': {'ask1': '0.493', 'ask1_volume': '75500', 'ask2': '0.494',
easyquant/strategy/strategyTemplate.py:21
↓ 1 callersMethodunbind_event
移除事件
custom/fixedmainengine.py:85
Method__eq__
(self, other)
easyquant/push_engine/clock_engine.py:41
Method__getattr__
(self, item, *args, **kwargs)
easyquant/log_handler/default_handler.py:30
Method__hash__
(self)
easyquant/push_engine/clock_engine.py:47
Method__init__
初始化事件 / 行情 引擎并启动事件引擎
easyquant/main_engine.py:32
Method__init__
(self, event_type, data=None)
easyquant/event_engine.py:9
Method__init__
初始化事件引擎
easyquant/event_engine.py:17
Method__init__
(self, user, log_handler, main_engine)
easyquant/strategy/strategyTemplate.py:9
Method__init__
Log对象 :param name: log 名字 :param :logtype: 'stdout' 输出到屏幕, 'file' 输出到指定文件 :param :filename: log 文件名 :param :loglevel:
easyquant/log_handler/default_handler.py:13
Method__init__
@:param strategy 策略
easyquant/multiprocess/strategy_wrapper.py:8
Method__init__
(self, event_engine, clock_engine)
easyquant/push_engine/base_engine.py:13
Method__init__
(self, trading_time, clock_event)
easyquant/push_engine/clock_engine.py:16
Method__init__
:param interval: float(minute) :param trading: 在交易阶段才触发 :return:
easyquant/push_engine/clock_engine.py:22
Method__init__
:param clock_type: :param moment: datetime.time :param is_trading_date: bool(是否只有在交易日触发) :param makeup: 注册时,如果已经过了触发时
easyquant/push_engine/clock_engine.py:52
Method__init__
:param event_engine: :param event_engine: tzinfo :return:
easyquant/push_engine/clock_engine.py:112
Method__init__
(self, conf)
easyquant/easydealutils/easyredis.py:10
Method__init__
(self, broker, need_data='ht.json', quotation_engines=[FixedDataEngine], log_handler=DefaultL
custom/fixedmainengine.py:19
Method__init__
(self, event_engine, clock_engine, watch_stocks=None, s='sina')
custom/fixeddataengine.py:21
Method__process
事件处理
easyquant/event_engine.py:41
Method__run
启动引擎
easyquant/event_engine.py:31
Method_load_strategy
(self)
easyquant/main_engine.py:195
Method_load_strategy
(self)
custom/fixedmainengine.py:107
Method_open
()
easyquant/push_engine/clock_engine.py:138
Method_process
启动进程
easyquant/multiprocess/strategy_wrapper.py:72
Method_process_clock
处理时间
easyquant/multiprocess/strategy_wrapper.py:57
Method_process_control
(self)
custom/fixeddataengine.py:32
Method_process_event
处理事件
easyquant/multiprocess/strategy_wrapper.py:43
Method_shutdown
关闭进程前的处理 :return:
easyquant/main_engine.py:238
Methodadd_after_shutdown
(self, shutdown)
easyquant/main_engine.py:224
Methodadd_before_shutdown
(self, shutdown)
easyquant/main_engine.py:216
Methodcleanup
(self)
easyquant/easydealutils/easyredis.py:22
Methodclock
(event)
unitest_demo.py:192
Methodclock
在交易时间会定时推送 clock 事件 :param event: event.data.clock_event 为 [0.5, 1, 3, 5, 15, 30, 60] 单位为分钟, ['open', 'close'] 为开市、收市 event.data.
strategies/策略1_Demo.py:69
Methodclock_engine
:return:
unitest_demo.py:34
Methodclocktick
(self)
easyquant/push_engine/clock_engine.py:177
Methodclose
()
easyquant/push_engine/clock_engine.py:150
Methodcount
(event)
unitest_demo.py:293
Methoddelete_key
(self, key)
easyquant/easydealutils/easyredis.py:46
Methodfetch_quotation
(self)
test.py:37
Methodfetch_quotation
(self)
easyquant/push_engine/quotation_engine.py:15
Methodget_key_value
(self, key)
easyquant/easydealutils/easyredis.py:34
Methodget_keys
(self)
easyquant/easydealutils/easyredis.py:42
Methodget_list_len
(self, listname)
easyquant/easydealutils/easyredis.py:58
Methodget_quotation
(self, eventype)
easyquant/main_engine.py:209
Methodinit
(self)
test.py:34
Methodinit
(self)
strategies/策略1_Demo.py:11
Methodinit
(self)
easyquant/push_engine/quotation_engine.py:12
Methodinit
(self)
custom/fixeddataengine.py:50
Methodis_active
(self)
easyquant/push_engine/clock_engine.py:35
next →1–100 of 136, ranked by callers