update
This commit is contained in:
parent
27f8001874
commit
6e3c3c3e09
@ -126,6 +126,14 @@ async def get_stock_data_all(stock_code: str):
|
|||||||
|
|
||||||
@router.post('/{stock_code}/analysis', summary="获取股票分析数据")
|
@router.post('/{stock_code}/analysis', summary="获取股票分析数据")
|
||||||
async def get_stock_analysis(stock_code: str, current_user: Dict[str, Any] = Depends(get_current_user)):
|
async def get_stock_analysis(stock_code: str, current_user: Dict[str, Any] = Depends(get_current_user)):
|
||||||
|
|
||||||
|
# 检查stock_code是否存在
|
||||||
|
codes = get_db_manager().search_stock(stock_code)
|
||||||
|
if not codes or len(codes) == 0:
|
||||||
|
raise HTTPException(status_code=400, detail="您输入的股票代码不存在,请检查后重新输入。")
|
||||||
|
|
||||||
|
stock_code = codes[0]["stock_code"]
|
||||||
|
|
||||||
url = 'https://mate.aimateplus.com/v1/workflows/run'
|
url = 'https://mate.aimateplus.com/v1/workflows/run'
|
||||||
token = 'app-nWuCOa0YfQVtAosTY3Jr5vFV'
|
token = 'app-nWuCOa0YfQVtAosTY3Jr5vFV'
|
||||||
headers = {
|
headers = {
|
||||||
|
|||||||
@ -29,7 +29,7 @@ services:
|
|||||||
cryptoai-api:
|
cryptoai-api:
|
||||||
build: .
|
build: .
|
||||||
container_name: cryptoai-api
|
container_name: cryptoai-api
|
||||||
image: cryptoai-api:0.1.9
|
image: cryptoai-api:0.1.20
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user