Subham9126 commited on
Commit
eb15991
·
verified ·
1 Parent(s): 35da934

Upload 4 files

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. Dockerfile +29 -0
  3. api +3 -0
  4. config.json +13 -0
  5. holiday.json +390 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ api filter=lfs diff=lfs merge=lfs -text
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+
3
+ RUN apt-get update && \
4
+ apt-get install -y --no-install-recommends ca-certificates && \
5
+ rm -rf /var/lib/apt/lists/*
6
+
7
+ # HuggingFace Spaces requires non-root user
8
+ RUN useradd -m -u 1000 appuser
9
+
10
+ WORKDIR /app
11
+
12
+ # Copy pre-built binary (built with: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o api ./cmd/api)
13
+ COPY api .
14
+ COPY config.json .
15
+ COPY holiday.json .
16
+
17
+ # Create data directory
18
+ RUN mkdir -p /app/data && chown -R appuser:appuser /app
19
+
20
+ USER appuser
21
+
22
+ # HuggingFace Spaces ONLY exposes port 7860
23
+ EXPOSE 7860
24
+
25
+ ENV PIPE_API_PORT=7860
26
+ ENV PIPE_PARQUET_BASE=/app/data
27
+ ENV PIPE_HOLIDAY_FILE=/app/holiday.json
28
+
29
+ CMD ["./api", "-config", "/app/config.json", "-holidays", "/app/holiday.json"]
api ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efcaa9e436519f638338b357ffb5e378e2e47a1343306a2e723532b2149a36fd
3
+ size 37703864
config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mongo_uri": "mongodb://localhost:27018",
3
+ "database": "equity",
4
+ "collection": "bhavcopy",
5
+ "parquet_base_dir": "/app/data",
6
+ "workers": 3,
7
+ "hf_token": "",
8
+ "hf_dataset": "altool/ohlcdata",
9
+ "gh_token": "",
10
+ "gh_repo": "subhamgiri460/ohlc_data",
11
+ "holiday_file": "/app/holiday.json",
12
+ "api_port": 7860
13
+ }
holiday.json ADDED
@@ -0,0 +1,390 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ "2011-01-26",
3
+ "2011-02-16",
4
+ "2011-03-02",
5
+ "2011-04-01",
6
+ "2011-04-04",
7
+ "2011-04-12",
8
+ "2011-04-14",
9
+ "2011-04-22",
10
+ "2011-05-17",
11
+ "2011-08-15",
12
+ "2011-08-19",
13
+ "2011-08-31",
14
+ "2011-09-01",
15
+ "2011-10-06",
16
+ "2011-10-26",
17
+ "2011-10-27",
18
+ "2011-11-07",
19
+ "2011-11-10",
20
+ "2011-12-06",
21
+ "2012-01-26",
22
+ "2012-02-05",
23
+ "2012-02-16",
24
+ "2012-02-19",
25
+ "2012-02-20",
26
+ "2012-03-08",
27
+ "2012-03-23",
28
+ "2012-04-01",
29
+ "2012-04-02",
30
+ "2012-04-05",
31
+ "2012-04-06",
32
+ "2012-04-14",
33
+ "2012-05-01",
34
+ "2012-05-06",
35
+ "2012-08-15",
36
+ "2012-08-18",
37
+ "2012-08-20",
38
+ "2012-09-19",
39
+ "2012-10-02",
40
+ "2012-10-24",
41
+ "2012-10-26",
42
+ "2012-11-13",
43
+ "2012-11-14",
44
+ "2012-11-25",
45
+ "2012-11-28",
46
+ "2012-12-25",
47
+ "2013-01-25",
48
+ "2013-01-26",
49
+ "2013-02-19",
50
+ "2013-03-10",
51
+ "2013-03-27",
52
+ "2013-03-29",
53
+ "2013-04-01",
54
+ "2013-04-11",
55
+ "2013-04-14",
56
+ "2013-04-19",
57
+ "2013-04-24",
58
+ "2013-05-01",
59
+ "2013-05-25",
60
+ "2013-08-09",
61
+ "2013-08-15",
62
+ "2013-08-18",
63
+ "2013-09-09",
64
+ "2013-10-02",
65
+ "2013-10-13",
66
+ "2013-10-16",
67
+ "2013-11-03",
68
+ "2013-11-04",
69
+ "2013-11-15",
70
+ "2013-11-17",
71
+ "2013-12-25",
72
+ "2014-01-14",
73
+ "2014-02-19",
74
+ "2014-02-27",
75
+ "2014-03-17",
76
+ "2014-03-31",
77
+ "2014-04-01",
78
+ "2014-04-08",
79
+ "2014-04-14",
80
+ "2014-04-18",
81
+ "2014-04-24",
82
+ "2014-05-01",
83
+ "2014-05-14",
84
+ "2014-07-29",
85
+ "2014-08-15",
86
+ "2014-08-18",
87
+ "2014-08-29",
88
+ "2014-10-02",
89
+ "2014-10-03",
90
+ "2014-10-06",
91
+ "2014-10-15",
92
+ "2014-10-23",
93
+ "2014-10-24",
94
+ "2014-11-04",
95
+ "2014-11-06",
96
+ "2014-12-25",
97
+ "2015-01-04",
98
+ "2015-01-26",
99
+ "2015-02-17",
100
+ "2015-02-19",
101
+ "2015-02-28",
102
+ "2015-03-06",
103
+ "2015-03-21",
104
+ "2015-03-28",
105
+ "2015-04-01",
106
+ "2015-04-02",
107
+ "2015-04-03",
108
+ "2015-04-14",
109
+ "2015-05-01",
110
+ "2015-05-04",
111
+ "2015-07-18",
112
+ "2015-08-15",
113
+ "2015-08-18",
114
+ "2015-09-17",
115
+ "2015-09-25",
116
+ "2015-10-02",
117
+ "2015-10-22",
118
+ "2015-10-24",
119
+ "2015-11-11",
120
+ "2015-11-12",
121
+ "2015-11-25",
122
+ "2015-12-24",
123
+ "2015-12-25",
124
+ "2016-01-26",
125
+ "2016-02-19",
126
+ "2016-03-07",
127
+ "2016-03-24",
128
+ "2016-03-25",
129
+ "2016-04-01",
130
+ "2016-04-08",
131
+ "2016-04-14",
132
+ "2016-04-15",
133
+ "2016-04-19",
134
+ "2016-05-01",
135
+ "2016-05-21",
136
+ "2016-07-06",
137
+ "2016-08-15",
138
+ "2016-08-17",
139
+ "2016-09-05",
140
+ "2016-09-13",
141
+ "2016-10-02",
142
+ "2016-10-11",
143
+ "2016-10-12",
144
+ "2016-10-30",
145
+ "2016-10-31",
146
+ "2016-11-14",
147
+ "2016-12-12",
148
+ "2016-12-25",
149
+ "2017-01-26",
150
+ "2017-02-19",
151
+ "2017-02-21",
152
+ "2017-02-24",
153
+ "2017-03-13",
154
+ "2017-03-28",
155
+ "2017-04-01",
156
+ "2017-04-04",
157
+ "2017-04-09",
158
+ "2017-04-14",
159
+ "2017-05-01",
160
+ "2017-05-10",
161
+ "2017-06-26",
162
+ "2017-08-15",
163
+ "2017-08-17",
164
+ "2017-08-25",
165
+ "2017-09-02",
166
+ "2017-09-30",
167
+ "2017-10-01",
168
+ "2017-10-02",
169
+ "2017-10-19",
170
+ "2017-10-20",
171
+ "2017-11-04",
172
+ "2017-12-01",
173
+ "2017-12-25",
174
+ "2018-01-26",
175
+ "2018-02-13",
176
+ "2018-02-19",
177
+ "2018-03-02",
178
+ "2018-03-18",
179
+ "2018-03-25",
180
+ "2018-03-29",
181
+ "2018-03-30",
182
+ "2018-04-02",
183
+ "2018-04-14",
184
+ "2018-04-30",
185
+ "2018-05-01",
186
+ "2018-06-16",
187
+ "2018-08-15",
188
+ "2018-08-17",
189
+ "2018-08-22",
190
+ "2018-09-13",
191
+ "2018-09-20",
192
+ "2018-10-02",
193
+ "2018-10-18",
194
+ "2018-11-07",
195
+ "2018-11-08",
196
+ "2018-11-21",
197
+ "2018-11-23",
198
+ "2018-12-25",
199
+ "2019-02-19",
200
+ "2019-03-04",
201
+ "2019-03-21",
202
+ "2019-04-01",
203
+ "2019-04-17",
204
+ "2019-04-19",
205
+ "2019-04-29",
206
+ "2019-05-01",
207
+ "2019-06-05",
208
+ "2019-08-12",
209
+ "2019-08-15",
210
+ "2019-09-02",
211
+ "2019-09-10",
212
+ "2019-10-02",
213
+ "2019-10-08",
214
+ "2019-10-21",
215
+ "2019-10-27",
216
+ "2019-10-28",
217
+ "2019-11-12",
218
+ "2019-12-25",
219
+ "2020-01-26",
220
+ "2020-02-19",
221
+ "2020-02-21",
222
+ "2020-03-10",
223
+ "2020-03-25",
224
+ "2020-04-01",
225
+ "2020-04-02",
226
+ "2020-04-06",
227
+ "2020-04-10",
228
+ "2020-04-14",
229
+ "2020-05-01",
230
+ "2020-05-07",
231
+ "2020-05-25",
232
+ "2020-08-01",
233
+ "2020-08-15",
234
+ "2020-08-16",
235
+ "2020-08-22",
236
+ "2020-08-30",
237
+ "2020-10-02",
238
+ "2020-10-25",
239
+ "2020-10-30",
240
+ "2020-11-14",
241
+ "2020-11-16",
242
+ "2020-11-30",
243
+ "2020-12-25",
244
+ "2021-01-26",
245
+ "2021-02-19",
246
+ "2021-03-11",
247
+ "2021-03-29",
248
+ "2021-04-01",
249
+ "2021-04-02",
250
+ "2021-04-13",
251
+ "2021-04-14",
252
+ "2021-04-21",
253
+ "2021-04-25",
254
+ "2021-05-01",
255
+ "2021-05-13",
256
+ "2021-05-26",
257
+ "2021-07-21",
258
+ "2021-08-15",
259
+ "2021-08-16",
260
+ "2021-08-19",
261
+ "2021-09-10",
262
+ "2021-10-02",
263
+ "2021-10-15",
264
+ "2021-10-19",
265
+ "2021-11-04",
266
+ "2021-11-05",
267
+ "2021-11-19",
268
+ "2021-12-25",
269
+ "2022-01-26",
270
+ "2022-02-19",
271
+ "2022-03-01",
272
+ "2022-03-18",
273
+ "2022-04-01",
274
+ "2022-04-02",
275
+ "2022-04-10",
276
+ "2022-04-14",
277
+ "2022-04-15",
278
+ "2022-05-01",
279
+ "2022-05-03",
280
+ "2022-05-16",
281
+ "2022-07-10",
282
+ "2022-08-09",
283
+ "2022-08-15",
284
+ "2022-08-16",
285
+ "2022-08-31",
286
+ "2022-10-02",
287
+ "2022-10-05",
288
+ "2022-10-09",
289
+ "2022-10-24",
290
+ "2022-10-26",
291
+ "2022-11-08",
292
+ "2022-12-25",
293
+ "2023-01-26",
294
+ "2023-02-18",
295
+ "2023-02-19",
296
+ "2023-03-07",
297
+ "2023-03-22",
298
+ "2023-03-30",
299
+ "2023-04-01",
300
+ "2023-04-04",
301
+ "2023-04-07",
302
+ "2023-04-14",
303
+ "2023-04-22",
304
+ "2023-05-01",
305
+ "2023-05-05",
306
+ "2023-06-29",
307
+ "2023-07-29",
308
+ "2023-08-15",
309
+ "2023-08-16",
310
+ "2023-09-19",
311
+ "2023-10-02",
312
+ "2023-10-24",
313
+ "2023-11-12",
314
+ "2023-11-14",
315
+ "2023-11-27",
316
+ "2023-12-25",
317
+ "2024-01-22",
318
+ "2024-01-26",
319
+ "2024-02-19",
320
+ "2024-03-08",
321
+ "2024-03-25",
322
+ "2024-03-29",
323
+ "2024-04-01",
324
+ "2024-04-09",
325
+ "2024-04-11",
326
+ "2024-04-14",
327
+ "2024-04-17",
328
+ "2024-04-21",
329
+ "2024-05-01",
330
+ "2024-05-20",
331
+ "2024-05-23",
332
+ "2024-06-17",
333
+ "2024-07-17",
334
+ "2024-08-15",
335
+ "2024-09-07",
336
+ "2024-09-16",
337
+ "2024-10-02",
338
+ "2024-10-12",
339
+ "2024-11-02",
340
+ "2024-11-15",
341
+ "2024-11-20",
342
+ "2024-12-25",
343
+ "2025-01-26",
344
+ "2025-02-19",
345
+ "2025-02-26",
346
+ "2025-03-14",
347
+ "2025-03-30",
348
+ "2025-03-31",
349
+ "2025-04-01",
350
+ "2025-04-06",
351
+ "2025-04-10",
352
+ "2025-04-14",
353
+ "2025-04-18",
354
+ "2025-05-01",
355
+ "2025-05-12",
356
+ "2025-06-07",
357
+ "2025-07-06",
358
+ "2025-08-15",
359
+ "2025-08-27",
360
+ "2025-09-08",
361
+ "2025-10-02",
362
+ "2025-10-21",
363
+ "2025-10-22",
364
+ "2025-11-05",
365
+ "2025-12-25",
366
+ "2026-01-15",
367
+ "2026-01-26",
368
+ "2026-02-15",
369
+ "2026-02-19",
370
+ "2026-03-03",
371
+ "2026-03-19",
372
+ "2026-03-21",
373
+ "2026-03-26",
374
+ "2026-03-31",
375
+ "2026-04-01",
376
+ "2026-04-03",
377
+ "2026-04-14",
378
+ "2026-05-01",
379
+ "2026-05-28",
380
+ "2026-06-26",
381
+ "2026-08-15",
382
+ "2026-08-26",
383
+ "2026-09-14",
384
+ "2026-10-02",
385
+ "2026-10-20",
386
+ "2026-11-08",
387
+ "2026-11-10",
388
+ "2026-11-24",
389
+ "2026-12-25"
390
+ ]