This commit is contained in:
KienVT9 2025-05-22 19:04:57 +07:00
parent ac32800ba7
commit 7cc42ee6a1
7 changed files with 82 additions and 82 deletions

View file

@ -20,7 +20,7 @@ def get_user_api(user_id: str):
raise HTTPException(status_code=404, detail="Không tìm thấy userId")
@router.get("/account", response_model=AccountResponseSchema, tags=["Account"])
def get_account_info(userId: str = Query(..., description="ID của user để lấy API key/secret")):
def get_account_info(userId: str = Query(..., description="User ID to get API key/secret")):
try:
api_key, api_secret = get_user_api(userId)
client = get_bybit_client(api_key, api_secret)
@ -31,4 +31,4 @@ def get_account_info(userId: str = Query(..., description="ID của user để l
except HTTPException as e:
raise e
except Exception as e:
raise HTTPException(status_code=500, detail=f"Lỗi hệ thống: {e}")
raise HTTPException(status_code=500, detail=f"System error: {e}")