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
17d5cd7f
Commit
17d5cd7f
authored
Dec 09, 2017
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update models and readme
parent
6d729030
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
README.md
README.md
+3
-3
models.py
alphamind/data/dbmodel/models.py
+2
-1
No files found.
README.md
View file @
17d5cd7f
...
@@ -48,11 +48,11 @@ python setup.py install
...
@@ -48,11 +48,11 @@ python setup.py install
## 数据源
## 数据源
为了尽可能的保证多因子研究工具的适用性,几乎所有的函数功能都不依赖一个具体的外部数据源。但是为了整个体系的完整性,
我们在工具包中也提供了一个数据源的参考实现。这个数据源的参考实现来自于
``通联数据``
提供的股票因子数据和风险模型数据等,具体细节可以参考:
[
优矿
](
https://uqer.io
)
。
我们在工具包中也提供了一个数据源的参考实现。这个数据源的参考实现来自于
``通联数据``
提供的股票因子数据和风险模型数据等,具体细节可以参考:
[
优矿
](
https://uqer.io
)
。
该数据源使用RMDBS,供参考的数据库可以是
,例如:Postgresql或者MySQL
。在工具包中我们已经提供了命令行工具,帮助用户一键配置好数据库。步骤如下:
该数据源使用RMDBS,供参考的数据库可以是
Postgresql
。在工具包中我们已经提供了命令行工具,帮助用户一键配置好数据库。步骤如下:
下面的步骤以Ubuntun上Postgresql为例子
,Windows服务器以及SQL server等其他RMDBS的配置类似。
下面的步骤以Ubuntun上Postgresql为例子
:
*
安装数据库软件
*
安装数据库软件
...
...
alphamind/data/dbmodel/models.py
View file @
17d5cd7f
...
@@ -870,7 +870,8 @@ class Models(Base):
...
@@ -870,7 +870,8 @@ class Models(Base):
update_time
=
Column
(
DateTime
,
nullable
=
False
)
update_time
=
Column
(
DateTime
,
nullable
=
False
)
model_desc
=
Column
(
JSONB
,
nullable
=
False
)
model_desc
=
Column
(
JSONB
,
nullable
=
False
)
is_primary
=
Column
(
Boolean
)
is_primary
=
Column
(
Boolean
)
model_id
=
Column
(
Integer
,
primary_key
=
True
,
server_default
=
text
(
"nextval('models_model_id_seq'::regclass)"
))
#model_id = Column(Integer, primary_key=True, server_default=text("nextval('models_model_id_seq'::regclass)"))
model_id
=
Column
(
Integer
,
primary_key
=
True
,
autoincrement
=
True
)
class
Performance
(
Base
):
class
Performance
(
Base
):
...
...
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