feat(agent-office): /watch /unwatch /watchlist 봇 명령
This commit is contained in:
@@ -111,6 +111,29 @@ async def stock_holdings_brief() -> Dict[str, Any]:
|
||||
return resp.json()
|
||||
|
||||
|
||||
# --- stock watchlist (실시간 매매 알람) ---
|
||||
|
||||
async def watchlist_add(ticker: str) -> Dict[str, Any]:
|
||||
"""stock의 관심종목 추가 (POST, 이미 존재하면 멱등하게 갱신)."""
|
||||
resp = await _client.post(f"{STOCK_URL}/api/stock/watchlist", json={"ticker": ticker})
|
||||
resp.raise_for_status()
|
||||
return resp.json()
|
||||
|
||||
|
||||
async def watchlist_remove(ticker: str) -> Dict[str, Any]:
|
||||
"""stock의 관심종목 삭제."""
|
||||
resp = await _client.delete(f"{STOCK_URL}/api/stock/watchlist/{ticker}")
|
||||
resp.raise_for_status()
|
||||
return resp.json()
|
||||
|
||||
|
||||
async def watchlist_list() -> Dict[str, Any]:
|
||||
"""stock의 관심종목 목록 조회 → {"watchlist": [...]}."""
|
||||
resp = await _client.get(f"{STOCK_URL}/api/stock/watchlist")
|
||||
resp.raise_for_status()
|
||||
return resp.json()
|
||||
|
||||
|
||||
async def generate_music(payload: dict) -> Dict[str, Any]:
|
||||
resp = await _client.post(f"{MUSIC_LAB_URL}/api/music/generate", json=payload)
|
||||
resp.raise_for_status()
|
||||
|
||||
Reference in New Issue
Block a user