Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/shidenggui/easyquant
/ functions
Functions
136 in github.com/shidenggui/easyquant
⨍
Functions
136
◇
Types & classes
20
Function
is_closing
(now_time, start=datetime.time(14, 54, 30))
easyquant/easydealutils/time.py:107
Function
is_continue
(now_time)
easyquant/easydealutils/time.py:94
Function
is_pause
:param now_time: :return:
easyquant/easydealutils/time.py:78
Function
is_tradetime
:param now_time: datetime.time() :return:
easyquant/easydealutils/time.py:60
Method
log_handler
自定义 log 记录方式
strategies/策略1_Demo.py:84
Method
main_engine
(self)
unitest_demo.py:30
Method
main_engine
(self)
unitest_demo.py:47
Method
now_dt
:return: datetime 类型, 带时区的时间戳.建议使用 arrow 库
easyquant/push_engine/clock_engine.py:168
Method
on_clock
推送时钟
easyquant/multiprocess/strategy_wrapper.py:37
Method
on_event
推送消息
easyquant/multiprocess/strategy_wrapper.py:30
Method
pause
(self)
custom/fixeddataengine.py:44
Method
pull_list_range
(self, listname, starpos=0, endpos=-1)
easyquant/easydealutils/easyredis.py:54
Method
push_quotation
(self)
easyquant/push_engine/base_engine.py:27
Method
push_quotation
(self)
custom/fixeddataengine.py:58
Method
queue_size
(self)
easyquant/event_engine.py:78
Method
save
(self)
easyquant/easydealutils/easyredis.py:38
Method
setUp
执行每个单元测试 前 都要执行的逻辑 :return:
unitest_demo.py:50
Method
shutdown
关闭进程前的调用 :return:
strategies/策略1_Demo.py:88
Method
start
(self)
easyquant/push_engine/clock_engine.py:174
Method
stop
(self)
easyquant/push_engine/base_engine.py:24
Method
stop
(self)
easyquant/push_engine/clock_engine.py:210
Method
strategy
:param event event.data 为所有股票的信息,结构如下 {'162411': {'ask1': '0.493', 'ask1_volume': '75500', 'ask2': '0.494',
strategies/策略1_Demo.py:26
Method
strategy
(self, event)
strategies/策略2_Demo.py:7
Method
tearDown
执行每个单元测试 后 都要执行的逻辑 :return:
unitest_demo.py:82
Method
test_clock_moment_is_active
(self)
unitest_demo.py:118
Method
test_clock_update_next_time
(self)
unitest_demo.py:142
Method
test_register_clock_interval_not_trading_false
(self)
unitest_demo.py:242
Method
test_register_clock_interval_not_trading_true
(self)
unitest_demo.py:220
Method
test_register_clock_interval_trading_false
(self)
unitest_demo.py:231
Method
test_register_clock_interval_trading_true
(self)
unitest_demo.py:209
Method
test_register_clock_moment_makeup
(self)
unitest_demo.py:171
Method
test_register_clock_moment_not_makeup
(self)
unitest_demo.py:175
Method
test_set_now
1. 重设 clock_engine 的时间 2. 通过 mock 来重设时间戳 3. mock 只能重设 time.time 函数的时间戳,但是不能重设 datetime.datetime.now 函数的时间戳,详情见: http://stacko
unitest_demo.py:88
Method
test_tick_interval_event
测试 tick 中的时间间隔事件 时间间隔事件 从开始前1分钟一直到收市后1分钟, 触发所有的已定义时钟事件 :return:
unitest_demo.py:283
Method
test_tick_moment_event
测试 tick 中的时刻时钟事件 时间间隔事件 每隔25分钟触发一次,连续进行8天 :return:
unitest_demo.py:328
Method
work
(self)
custom/fixeddataengine.py:47
← previous
101–136 of 136, ranked by callers