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
c730cd46
Commit
c730cd46
authored
Nov 10, 2018
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added 2 more table for funds
parent
fc8a8bea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
+59
-0
models.py
alphamind/data/dbmodel/models.py
+59
-0
No files found.
alphamind/data/dbmodel/models.py
View file @
c730cd46
...
...
@@ -12,6 +12,65 @@ Base = declarative_base()
metadata
=
Base
.
metadata
class
FundHolding
(
Base
):
__tablename__
=
'fund_holding'
fund_code
=
Column
(
String
(
15
),
primary_key
=
True
,
nullable
=
False
)
ticker
=
Column
(
String
(
15
),
nullable
=
False
)
short_name
=
Column
(
String
(
30
),
nullable
=
False
)
reportDate
=
Column
(
DateTime
,
primary_key
=
True
,
nullable
=
False
)
holdingsecType
=
Column
(
String
(
5
),
nullable
=
False
)
holdingSecID
=
Column
(
String
(
15
),
primary_key
=
True
,
nullable
=
False
)
holdingTicker
=
Column
(
String
(
15
),
nullable
=
False
)
holdingExchangeCd
=
Column
(
String
(
5
))
holdingsecShortName
=
Column
(
String
(
30
))
holdVolume
=
Column
(
Float
(
53
))
marketValue
=
Column
(
Float
(
53
))
ratioInNa
=
Column
(
Float
(
53
))
publishDate
=
Column
(
DateTime
,
nullable
=
False
)
currencyCd
=
Column
(
String
(
5
))
class
FundMaster
(
Base
):
__tablename__
=
'fund_master'
fund_code
=
Column
(
String
(
15
),
primary_key
=
True
)
ticker
=
Column
(
String
(
15
),
nullable
=
False
)
short_name
=
Column
(
String
(
30
),
nullable
=
False
)
tradeAbbrName
=
Column
(
String
(
20
))
category
=
Column
(
String
(
5
),
nullable
=
False
)
operationMode
=
Column
(
String
(
5
))
indexFund
=
Column
(
String
(
5
))
etfLof
=
Column
(
String
(
5
))
isQdii
=
Column
(
Integer
,
nullable
=
False
)
isFof
=
Column
(
Integer
,
nullable
=
False
)
isGuarFund
=
Column
(
Integer
,
nullable
=
False
)
guarPeriod
=
Column
(
Float
(
53
))
guarRatio
=
Column
(
Float
(
53
))
exchangeCd
=
Column
(
String
(
4
))
listStatusCd
=
Column
(
String
(
4
))
managerName
=
Column
(
String
(
50
))
status
=
Column
(
String
(
5
))
establishDate
=
Column
(
DateTime
)
listDate
=
Column
(
DateTime
)
delistDate
=
Column
(
DateTime
)
expireDate
=
Column
(
DateTime
)
managementCompany
=
Column
(
BigInteger
)
managementFullName
=
Column
(
String
(
50
))
custodian
=
Column
(
BigInteger
)
custodianFullName
=
Column
(
String
(
50
))
investField
=
Column
(
Text
)
investTarget
=
Column
(
Text
)
perfBenchmark
=
Column
(
Text
)
circulationShares
=
Column
(
Float
(
53
))
isClass
=
Column
(
Integer
)
idxID
=
Column
(
String
(
15
))
idxTicker
=
Column
(
String
(
15
))
idxShortName
=
Column
(
String
(
30
))
managementShortName
=
Column
(
String
(
30
))
custodianShortName
=
Column
(
String
(
30
))
class
Categories
(
Base
):
__tablename__
=
'categories'
...
...
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