Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
alpha-mind
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dr.李
alpha-mind
Commits
904b7f15
Commit
904b7f15
authored
Oct 18, 2017
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added map frequency
parent
7f11b195
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
api.py
alphamind/api.py
+19
-1
No files found.
alphamind/api.py
View file @
904b7f15
...
...
@@ -36,6 +36,23 @@ from alphamind.execution.pipeline import ExecutionPipeline
from
alphamind.utilities
import
alpha_logger
def
map_freq
(
freq
):
if
freq
==
'1m'
:
horizon
=
21
elif
freq
==
'1w'
:
horizon
=
4
elif
freq
==
'2w'
:
horizon
=
8
elif
freq
==
'3w'
:
horizon
=
12
elif
freq
==
'1d'
:
horizon
=
0
else
:
raise
ValueError
(
"Unrecognized freq: {0}"
.
format
(
freq
))
return
horizon
__all__
=
[
'SqlEngine'
,
'factor_analysis'
,
...
...
@@ -61,5 +78,6 @@ __all__ = [
'ThresholdExecutor'
,
'TargetVolExecutor'
,
'ExecutionPipeline'
,
'alpha_logger'
'alpha_logger'
,
'map_freq'
]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment