MCPcopy Create free account

hub / github.com/shidenggui/easyquant / functions

Functions136 in github.com/shidenggui/easyquant

Functionis_closing
(now_time, start=datetime.time(14, 54, 30))
easyquant/easydealutils/time.py:107
Functionis_continue
(now_time)
easyquant/easydealutils/time.py:94
Functionis_pause
:param now_time: :return:
easyquant/easydealutils/time.py:78
Functionis_tradetime
:param now_time: datetime.time() :return:
easyquant/easydealutils/time.py:60
Methodlog_handler
自定义 log 记录方式
strategies/策略1_Demo.py:84
Methodmain_engine
(self)
unitest_demo.py:30
Methodmain_engine
(self)
unitest_demo.py:47
Methodnow_dt
:return: datetime 类型, 带时区的时间戳.建议使用 arrow 库
easyquant/push_engine/clock_engine.py:168
Methodon_clock
推送时钟
easyquant/multiprocess/strategy_wrapper.py:37
Methodon_event
推送消息
easyquant/multiprocess/strategy_wrapper.py:30
Methodpause
(self)
custom/fixeddataengine.py:44
Methodpull_list_range
(self, listname, starpos=0, endpos=-1)
easyquant/easydealutils/easyredis.py:54
Methodpush_quotation
(self)
easyquant/push_engine/base_engine.py:27
Methodpush_quotation
(self)
custom/fixeddataengine.py:58
Methodqueue_size
(self)
easyquant/event_engine.py:78
Methodsave
(self)
easyquant/easydealutils/easyredis.py:38
MethodsetUp
执行每个单元测试 前 都要执行的逻辑 :return:
unitest_demo.py:50
Methodshutdown
关闭进程前的调用 :return:
strategies/策略1_Demo.py:88
Methodstart
(self)
easyquant/push_engine/clock_engine.py:174
Methodstop
(self)
easyquant/push_engine/base_engine.py:24
Methodstop
(self)
easyquant/push_engine/clock_engine.py:210
Methodstrategy
:param event event.data 为所有股票的信息,结构如下 {'162411': {'ask1': '0.493', 'ask1_volume': '75500', 'ask2': '0.494',
strategies/策略1_Demo.py:26
Methodstrategy
(self, event)
strategies/策略2_Demo.py:7
MethodtearDown
执行每个单元测试 后 都要执行的逻辑 :return:
unitest_demo.py:82
Methodtest_clock_moment_is_active
(self)
unitest_demo.py:118
Methodtest_clock_update_next_time
(self)
unitest_demo.py:142
Methodtest_register_clock_interval_not_trading_false
(self)
unitest_demo.py:242
Methodtest_register_clock_interval_not_trading_true
(self)
unitest_demo.py:220
Methodtest_register_clock_interval_trading_false
(self)
unitest_demo.py:231
Methodtest_register_clock_interval_trading_true
(self)
unitest_demo.py:209
Methodtest_register_clock_moment_makeup
(self)
unitest_demo.py:171
Methodtest_register_clock_moment_not_makeup
(self)
unitest_demo.py:175
Methodtest_set_now
1. 重设 clock_engine 的时间 2. 通过 mock 来重设时间戳 3. mock 只能重设 time.time 函数的时间戳,但是不能重设 datetime.datetime.now 函数的时间戳,详情见: http://stacko
unitest_demo.py:88
Methodtest_tick_interval_event
测试 tick 中的时间间隔事件 时间间隔事件 从开始前1分钟一直到收市后1分钟, 触发所有的已定义时钟事件 :return:
unitest_demo.py:283
Methodtest_tick_moment_event
测试 tick 中的时刻时钟事件 时间间隔事件 每隔25分钟触发一次,连续进行8天 :return:
unitest_demo.py:328
Methodwork
(self)
custom/fixeddataengine.py:47
← previous101–136 of 136, ranked by callers