Spaces:
Running
Running
camphong24032002
commited on
Commit
·
4d3f2f1
1
Parent(s):
e85aef4
change: update entire price
Browse files- services/indicator.py +2 -2
services/indicator.py
CHANGED
@@ -134,7 +134,7 @@ class Indicator:
|
|
134 |
updating_price = False
|
135 |
return {"message": "The market is in trading."}
|
136 |
end_date = datetime_now.date()
|
137 |
-
delta = timedelta(days=
|
138 |
start_date = end_date - delta
|
139 |
start_date = start_date.strftime(DATE_FORMAT)
|
140 |
end_date = end_date.strftime(DATE_FORMAT)
|
@@ -149,7 +149,7 @@ class Indicator:
|
|
149 |
end_date,
|
150 |
resolution="D",
|
151 |
type="stock"
|
152 |
-
).reset_index(drop=True).tail(
|
153 |
lst_time = list(df["time"])
|
154 |
df[["open", "high", "low", "close"]] = \
|
155 |
df[["open", "high", "low", "close"]] * 1000
|
|
|
134 |
updating_price = False
|
135 |
return {"message": "The market is in trading."}
|
136 |
end_date = datetime_now.date()
|
137 |
+
delta = timedelta(days=350)
|
138 |
start_date = end_date - delta
|
139 |
start_date = start_date.strftime(DATE_FORMAT)
|
140 |
end_date = end_date.strftime(DATE_FORMAT)
|
|
|
149 |
end_date,
|
150 |
resolution="D",
|
151 |
type="stock"
|
152 |
+
).reset_index(drop=True).tail(205)
|
153 |
lst_time = list(df["time"])
|
154 |
df[["open", "high", "low", "close"]] = \
|
155 |
df[["open", "high", "low", "close"]] * 1000
|