bug fixes
Browse files
app.py
CHANGED
|
@@ -496,7 +496,7 @@ def get_all_currency():
|
|
| 496 |
@app.get("/get_index_price/{index_name}")
|
| 497 |
def get_index_price(index_name: str):
|
| 498 |
r = requests.get(f"https://dps.psx.com.pk/timeseries/int/{index_name}")
|
| 499 |
-
response = IndexPrice.
|
| 500 |
|
| 501 |
formatted_data = [
|
| 502 |
DataIndex(
|
|
|
|
| 496 |
@app.get("/get_index_price/{index_name}")
|
| 497 |
def get_index_price(index_name: str):
|
| 498 |
r = requests.get(f"https://dps.psx.com.pk/timeseries/int/{index_name}")
|
| 499 |
+
response = IndexPrice.model_validate(r.json())
|
| 500 |
|
| 501 |
formatted_data = [
|
| 502 |
DataIndex(
|