update
This commit is contained in:
parent
ac32800ba7
commit
7cc42ee6a1
7 changed files with 82 additions and 82 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue