Coverage for src/scrilla/static/config.py: 100%
4 statements
« prev ^ index » next coverage.py v6.4.2, created at 2022-07-18 18:14 +0000
« prev ^ index » next coverage.py v6.4.2, created at 2022-07-18 18:14 +0000
1dynamo_price_table_conf = {
2 'AttributeDefinitions': [
3 {
4 'AttributeName': 'ticker',
5 'AttributeType': 'S'
6 },
7 {
8 'AttributeName': 'date',
9 'AttributeType': 'S'
10 },
11 ],
12 'TableName': 'prices',
13 'KeySchema': [
14 {
15 'AttributeName': 'ticker',
16 'KeyType': 'HASH'
17 },
18 {
19 'AttributeName': 'date',
20 'KeyType': 'RANGE'
21 }
22 ],
23}
24dynamo_interest_table_conf = {
25 'AttributeDefinitions': [
26 {
27 'AttributeName': 'maturity',
28 'AttributeType': 'S'
29 },
30 {
31 'AttributeName': 'date',
32 'AttributeType': 'S'
33 },
34 ],
35 'TableName': 'interest',
36 'KeySchema': [
37 {
38 'AttributeName': 'maturity',
39 'KeyType': 'HASH'
40 },
41 {
42 'AttributeName': 'date',
43 'KeyType': 'RANGE'
44 }
45 ],
46}
47dynamo_correlation_table_conf = {
48 'AttributeDefinitions': [
49 {
50 'AttributeName': 'id',
51 'AttributeType': 'S'
52 },
53 {
54 'AttributeName': 'ticker_1',
55 'AttributeType': 'S'
56 },
57 {
58 'AttributeName': 'ticker_2',
59 'AttributeType': 'S'
60 },
61 {
62 'AttributeName': 'start_date',
63 'AttributeType': 'S'
64 },
65 {
66 'AttributeName': 'end_date',
67 'AttributeType': 'S'
68 },
69 {
70 'AttributeName': 'method',
71 'AttributeType': 'S'
72 },
73 {
74 'AttributeName': 'weekends',
75 'AttributeType': 'N'
76 },
77 ],
78 'TableName': 'correlations',
79 'KeySchema': [
80 {
81 'AttributeName': 'id',
82 'KeyType': 'HASH'
83 },
84 ],
85 'GlobalSecondaryIndexes': [
86 {
87 'IndexName': 'AssetTelescoping1',
88 'KeySchema': [
89 {
90 'AttributeName': 'ticker_1',
91 'KeyType': 'HASH'
92 },
93 {
94 'AttributeName': 'start_date',
95 'KeyType': 'RANGE'
96 }
97 ],
98 'Projection': {
99 'ProjectionType': 'KEYS_ONLY'
100 }
101 },
102 {
103 'IndexName': 'AssetTelescoping2',
104 'KeySchema': [
105 {
106 'AttributeName': 'ticker_2',
107 'KeyType': 'HASH'
108 },
109 {
110 'AttributeName': 'end_date',
111 'KeyType': 'RANGE'
112 },
113 ],
114 'Projection': {
115 'ProjectionType': 'KEYS_ONLY'
116 }
117 },
118 {
119 'IndexName': 'WeekendTelescoping',
120 'KeySchema': [
121 {
122 'AttributeName': 'weekends',
123 'KeyType': 'HASH'
124 }
125 ],
126 'Projection': {
127 'ProjectionType': 'KEYS_ONLY'
128 }
129 },
130 {
131 'IndexName': 'EstimationTelescoping',
132 'KeySchema': [
133 {
134 'AttributeName': 'method',
135 'KeyType': 'HASH'
136 },
137 ],
138 'Projection': {
139 'ProjectionType': 'ALL',
140 }
141 },
142 ]
143}
144dynamo_profile_table_conf = {
145 'AttributeDefinitions': [
146 {
147 'AttributeName': 'ticker',
148 'AttributeType': 'S'
149 },
150 {
151 'AttributeName': 'start_date',
152 'AttributeType': 'S'
153 },
154 {
155 'AttributeName': 'end_date',
156 'AttributeType': 'S'
157 },
158 {
159 'AttributeName': 'method',
160 'AttributeType': 'S'
161 },
162 {
163 'AttributeName': 'weekends',
164 'AttributeType': 'N'
165 }
166 ],
167 'TableName': 'profile',
168 'KeySchema': [
169 {
170 'AttributeName': 'ticker',
171 'KeyType': 'HASH'
172 },
173 {
174 'AttributeName': 'start_date',
175 'KeyType': 'RANGE'
176 }
177 ],
178 'GlobalSecondaryIndexes': [
179 {
180 'IndexName': 'DateTelescoping',
181 'KeySchema': [
182 {
183 'AttributeName': 'weekends',
184 'KeyType': 'HASH'
185 },
186 {
187 'AttributeName': 'end_date',
188 'KeyType': 'RANGE'
189 },
190 ],
191 'Projection': {
192 'ProjectionType': 'KEYS_ONLY'
193 }
194 },
195 {
196 'IndexName': 'EstimationTelescoping',
197 'KeySchema': [
198 {
199 'AttributeName': 'method',
200 'KeyType': 'HASH'
201 },
202 ],
203 'Projection': {
204 'ProjectionType': 'ALL',
205 }
206 }
207 ]
208}