camphong24032002 commited on
Commit
90e3571
·
1 Parent(s): e96d69f

Test auto update

Browse files
Files changed (1) hide show
  1. routes/data.py +14 -0
routes/data.py CHANGED
@@ -9,6 +9,20 @@ import json
9
  router = APIRouter()
10
 
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  @router.post(
13
  "/get_price",
14
  name="Get price",
 
9
  router = APIRouter()
10
 
11
 
12
+ @router.get(
13
+ "/update_rsi",
14
+ name="Update RSI data",
15
+ status_code=status.HTTP_200_OK
16
+ )
17
+ async def update_rsi_date():
18
+ Indicator.get_rsi(
19
+ symbol="FPT",
20
+ periods=14,
21
+ smooth_k=3,
22
+ smooth_d=3
23
+ )
24
+
25
+
26
  @router.post(
27
  "/get_price",
28
  name="Get price",