Spaces:
Sleeping
Sleeping
records
Browse files
main.py
CHANGED
@@ -122,5 +122,5 @@ def get_stock_data(ticker):
|
|
122 |
@app.get("/ticker/{ticker}")
|
123 |
def read_item(ticker: str):
|
124 |
stock_data = get_stock_data(ticker)
|
125 |
-
result = stock_data.to_json(orient="
|
126 |
return result
|
|
|
122 |
@app.get("/ticker/{ticker}")
|
123 |
def read_item(ticker: str):
|
124 |
stock_data = get_stock_data(ticker)
|
125 |
+
result = stock_data.to_json(orient="records")
|
126 |
return result
|