2026-03-23 17:24:28,465 - mcp.server.lowlevel.server - DEBUG - Initializing server 'KIS MCP Server' 2026-03-23 17:24:28,465 - mcp.server.lowlevel.server - DEBUG - Registering handler for ListToolsRequest 2026-03-23 17:24:28,465 - mcp.server.lowlevel.server - DEBUG - Registering handler for CallToolRequest 2026-03-23 17:24:28,465 - mcp.server.lowlevel.server - DEBUG - Registering handler for ListResourcesRequest 2026-03-23 17:24:28,465 - mcp.server.lowlevel.server - DEBUG - Registering handler for ReadResourceRequest 2026-03-23 17:24:28,465 - mcp.server.lowlevel.server - DEBUG - Registering handler for PromptListRequest 2026-03-23 17:24:28,465 - mcp.server.lowlevel.server - DEBUG - Registering handler for GetPromptRequest 2026-03-23 17:24:28,465 - mcp.server.lowlevel.server - DEBUG - Registering handler for ListResourceTemplatesRequest 2026-03-23 17:24:28,475 - asyncio - DEBUG - Using selector: EpollSelector 2026-03-23 17:24:28,496 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:24:28,499 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:24:28,549 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:24:28,549 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:24:28,576 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:24:28,576 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:24:28,576 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:24:28,576 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:24:28,576 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:24:28,576 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:24:28,647 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:24:28 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQn3Qyh6Fw0zzzR06zzEjX2E0jYYz300059J000^70'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'b5b9ddda269111f1aab16389000a9fa7'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:24:28,648 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:24:28,648 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:24:28,648 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:24:28,648 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:24:28,648 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:24:28,648 - httpcore.connection - DEBUG - close.started 2026-03-23 17:24:28,648 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:24:28,783 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:24:28,804 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:24:28,804 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:24:28,826 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:24:28,827 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:24:28,827 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:24:28,827 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:24:28,827 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:24:28,827 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:24:28,858 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:24:28 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQn3RwCaFw0zzzR06zzEiXqE0jYYz10003TY000CCc'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b5df4c50269111f1b477ff70f598c9f5'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:24:28,858 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:24:28,858 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:24:28,858 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:24:28,858 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:24:28,858 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:24:28,858 - httpcore.connection - DEBUG - close.started 2026-03-23 17:24:28,859 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:24:29,084 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:24:29,106 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:24:29,107 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:24:29,131 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:24:29,131 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:24:29,131 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:24:29,131 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:24:29,131 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:24:29,131 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:24:29,163 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:24:29 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQn3T6AJFw0zzzR06zzEiXqE0jYYz10001Ms000wTb'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b60dad16269111f1b4e88712f7385490'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:24:29,163 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:24:29,163 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:24:29,163 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:24:29,164 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:24:29,164 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:24:29,164 - httpcore.connection - DEBUG - close.started 2026-03-23 17:24:29,164 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:24:29,386 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:24:29,406 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:24:29,406 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:24:29,429 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:24:29,429 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:24:29,429 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:24:29,429 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:24:29,429 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:24:29,429 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:24:29,477 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:24:29 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQn3UF9FFw0zzzR06zzEjX2E0jYYz30005g5000D5Q'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b63dc9a6269111f1baab577a477ae7f3'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:24:29,477 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:24:29,477 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:24:29,477 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:24:29,477 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:24:29,477 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:24:29,478 - httpcore.connection - DEBUG - close.started 2026-03-23 17:24:29,478 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:24:29", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:24:28"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:24:29"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:24:29"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:25:29,528 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:25:29,529 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:25:29,573 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:25:29,573 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:25:29,598 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:25:29,598 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:25:29,598 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:25:29,598 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:25:29,598 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:25:29,598 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:25:29,663 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:25:29 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQn73jcdFw0zzzR06zzEjX2E0jYYz300059R000mfo'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'da17fbb2269111f1abc0e734ff3d0f2e'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:25:29,664 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:25:29,664 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:25:29,664 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:25:29,664 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:25:29,664 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:25:29,664 - httpcore.connection - DEBUG - close.started 2026-03-23 17:25:29,664 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:25:29,830 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:25:29,850 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:25:29,850 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:25:29,874 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:25:29,874 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:25:29,875 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:25:29,875 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:25:29,875 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:25:29,875 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:25:29,913 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:25:29 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQn74oJWFw0zzzR06zzEjX2E0jYYz30005cB000LN2'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da439bfa269111f1be57e3b155d216ae'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:25:29,914 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:25:29,914 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:25:29,914 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:25:29,914 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:25:29,914 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:25:29,914 - httpcore.connection - DEBUG - close.started 2026-03-23 17:25:29,914 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:25:30,131 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:25:30,152 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:25:30,152 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:25:30,180 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:25:30,180 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:25:30,180 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:25:30,180 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:25:30,180 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:25:30,180 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:25:30,213 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:25:30 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQn75yXhFw0zzzR06zzEjX2E0jYYz300060Y000BJo'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da715a04269111f19b0c1301590defa2'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:25:30,213 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:25:30,213 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:25:30,213 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:25:30,214 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:25:30,214 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:25:30,214 - httpcore.connection - DEBUG - close.started 2026-03-23 17:25:30,214 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:25:30,432 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:25:30,453 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:25:30,453 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:25:30,481 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:25:30,481 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:25:30,481 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:25:30,481 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:25:30,481 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:25:30,481 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:25:30,519 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:25:30 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQn777rrFw0zzzR06zzEiXqE0jYYz10001Ms0013QR'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da9fe694269111f1b762032fcf0d9bcd'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:25:30,519 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:25:30,519 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:25:30,519 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:25:30,519 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:25:30,519 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:25:30,520 - httpcore.connection - DEBUG - close.started 2026-03-23 17:25:30,520 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:25:30", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:25:29"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:25:30"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:25:30"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:26:30,618 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:26:30,618 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:26:30,647 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:26:30,647 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:26:30,671 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:26:30,671 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:26:30,671 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:26:30,671 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:26:30,672 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:26:30,672 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:26:30,740 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:26:30 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnAgj46Fw0zzzR06zzEiXqE0jYYz10004Ne000pmH'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'fe7fa946269111f19caeff9b0a9b4ecc'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:26:30,740 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:26:30,741 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:26:30,741 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:26:30,741 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:26:30,741 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:26:30,741 - httpcore.connection - DEBUG - close.started 2026-03-23 17:26:30,741 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:26:30,919 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:26:30,939 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:26:30,939 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:26:30,966 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:26:30,966 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:26:30,966 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:26:30,966 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:26:30,967 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:26:30,967 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:26:30,997 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:26:30 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnAhqmlFw0zzzR06zzEjX2E0jYYz30006oV0002At'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'feac1580269111f1a6020742792c7cc7'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:26:30,997 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:26:30,998 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:26:30,998 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:26:30,998 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:26:30,998 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:26:30,998 - httpcore.connection - DEBUG - close.started 2026-03-23 17:26:30,998 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:26:31,219 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:26:31,244 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:26:31,244 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:26:31,270 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:26:31,270 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:26:31,270 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:26:31,270 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:26:31,270 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:26:31,270 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:26:31,314 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:26:31 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnAj0gaFw0zzzR06zzEjX2E0jYYz30006v000009e'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fedc6b86269111f1bcfc47dc5adf8d43'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:26:31,314 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:26:31,314 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:26:31,314 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:26:31,314 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:26:31,314 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:26:31,315 - httpcore.connection - DEBUG - close.started 2026-03-23 17:26:31,315 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:26:31,520 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:26:31,541 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:26:31,541 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:26:31,569 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:26:31,569 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:26:31,569 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:26:31,569 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:26:31,569 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:26:31,569 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:26:31,600 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:26:31 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnAk9bSFw0zzzR06zzEjX2E0jYYz30006mU0002iZ'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'ff08323e269111f1b66f0ff71e779fa8'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:26:31,600 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:26:31,600 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:26:31,600 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:26:31,600 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:26:31,600 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:26:31,600 - httpcore.connection - DEBUG - close.started 2026-03-23 17:26:31,601 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:26:31", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:26:30"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:26:31"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:26:31"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:27:31,697 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:27:31,698 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:27:31,720 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:27:31,720 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:27:31,743 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:27:31,743 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:27:31,744 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:27:31,744 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:27:31,744 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:27:31,744 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:27:31,812 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:27:31 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnELh7IFw0zzzR06zzEjX2E0jYYz300059R000nkr'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'22e65c08269211f1add59f40ce63f0ef'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:27:31,813 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:27:31,813 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:27:31,813 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:27:31,813 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:27:31,813 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:27:31,813 - httpcore.connection - DEBUG - close.started 2026-03-23 17:27:31,813 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:27:31,999 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:27:32,019 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:27:32,019 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:27:32,048 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:27:32,049 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:27:32,049 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:27:32,049 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:27:32,049 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:27:32,049 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:27:32,088 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:27:32 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnEMrq^Fw0zzzR06zzEjX2E0jYYz30007Pf000050'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'2315bd68269211f1b6b4c39380072e24'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:27:32,088 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:27:32,088 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:27:32,103 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:27:32,103 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:27:32,103 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:27:32,103 - httpcore.connection - DEBUG - close.started 2026-03-23 17:27:32,103 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:27:32,299 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:27:32,319 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:27:32,319 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:27:32,343 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:27:32,343 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:27:32,343 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:27:32,344 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:27:32,344 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:27:32,344 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:27:32,376 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:27:32 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnENzcUFw0zzzR06zzEjX2E0jYYz30006mU0009W_'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'2341b242269211f198266fa72560bf3e'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:27:32,376 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:27:32,376 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:27:32,376 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:27:32,376 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:27:32,376 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:27:32,376 - httpcore.connection - DEBUG - close.started 2026-03-23 17:27:32,377 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:27:32,603 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:27:32,622 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:27:32,623 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:27:32,649 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:27:32,650 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:27:32,650 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:27:32,650 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:27:32,650 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:27:32,650 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:27:32,674 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 08:27:32 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQnEP9sYFw0zzzR06zzEiXqE0jYYz10001Ms001Gcm'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 17:27:32,675 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 17:27:32,675 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:27:32,675 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:27:32,675 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:27:32,675 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:27:33,285 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:27:33,314 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:27:33,314 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:27:33,332 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:27:33,332 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:27:33,332 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:27:33,332 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:27:33,332 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:27:33,332 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:27:33,352 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:27:33 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnERi_LFw0zzzR06zzEiXqE0jYYz10001Ms001GgS'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'23d6be82269211f1829d0b0c41931e89'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:27:33,352 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:27:33,353 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:27:33,353 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:27:33,353 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:27:33,353 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:27:33,353 - httpcore.connection - DEBUG - close.started 2026-03-23 17:27:33,353 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:27:33", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:27:32"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:27:32"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:27:33"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:28:33,457 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:28:33,458 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:28:33,481 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:28:33,481 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:28:33,505 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:28:33,505 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:28:33,505 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:28:33,505 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:28:33,505 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:28:33,505 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:28:33,575 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:28:33 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnI1Iz4Fw0zzzR06zzEiXqE0jYYz10004NQ000UQA'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'47b5e72e269211f1a661679ce304eed6'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:28:33,575 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:28:33,576 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:28:33,576 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:28:33,576 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:28:33,576 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:28:33,576 - httpcore.connection - DEBUG - close.started 2026-03-23 17:28:33,576 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:28:33,759 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:28:33,778 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:28:33,778 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:28:33,804 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:28:33,804 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:28:33,804 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:28:33,804 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:28:33,804 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:28:33,804 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:28:33,833 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:28:33 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnI2RXIFw0zzzR06zzEjX2E0jYYz30006mU000GoH'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'47e32dce269211f19fefdfdbac160d7a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:28:33,833 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:28:33,833 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:28:33,833 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:28:33,833 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:28:33,833 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:28:33,833 - httpcore.connection - DEBUG - close.started 2026-03-23 17:28:33,834 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:28:34,061 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:28:34,081 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:28:34,081 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:28:34,105 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:28:34,105 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:28:34,105 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:28:34,105 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:28:34,105 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:28:34,105 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:28:34,130 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:28:34 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnI3^t4Fw0zzzR06zzEjX2E0jYYz30006mU000Gqj'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'4810c81a269211f1b7c5435ad20c5e6c'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:28:34,130 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:28:34,130 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:28:34,131 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:28:34,131 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:28:34,131 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:28:34,131 - httpcore.connection - DEBUG - close.started 2026-03-23 17:28:34,131 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:28:34,361 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:28:34,387 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:28:34,387 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:28:34,410 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:28:34,410 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:28:34,411 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:28:34,411 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:28:34,411 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:28:34,411 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:28:34,438 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:28:34 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnI4jwaFw0zzzR06zzEiXqE0jYYz10003TY000b3P'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'483fa1e4269211f190d8fb9b699cbc7a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:28:34,438 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:28:34,438 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:28:34,439 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:28:34,439 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:28:34,439 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:28:34,439 - httpcore.connection - DEBUG - close.started 2026-03-23 17:28:34,439 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:28:34", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:28:33"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:28:34"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:28:34"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:29:34,535 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:29:34,535 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:29:34,556 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:29:34,556 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:29:34,578 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:29:34,579 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:29:34,579 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:29:34,579 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:29:34,579 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:29:34,579 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:29:34,647 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:29:34 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnLeHRDFw0zzzR06zzEjX2E0jYYz300059J000a5x'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'6c1d111e269211f1b3184b2eb770d9f8'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:29:34,647 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:29:34,648 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:29:34,648 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:29:34,648 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:29:34,648 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:29:34,648 - httpcore.connection - DEBUG - close.started 2026-03-23 17:29:34,648 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:29:34,837 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:29:34,859 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:29:34,859 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:29:34,884 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:29:34,884 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:29:34,884 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:29:34,884 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:29:34,884 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:29:34,884 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:29:34,917 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:29:34 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnLfSxgFw0zzzR06zzEiXqE0jYYz10003wb000Wu3'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c4bdabc269211f196fe2fd02fa86eee'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:29:34,917 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:29:34,917 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:29:34,917 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:29:34,917 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:29:34,917 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:29:34,918 - httpcore.connection - DEBUG - close.started 2026-03-23 17:29:34,918 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:29:35,137 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:29:35,157 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:29:35,157 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:29:35,183 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:29:35,183 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:29:35,183 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:29:35,183 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:29:35,183 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:29:35,183 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:29:35,213 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:29:35 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnLg_9rFw0zzzR06zzEiXqE0jYYz10003wb000WwC'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c78d4b8269211f19f3b77729f34858d'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:29:35,213 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:29:35,213 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:29:35,214 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:29:35,214 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:29:35,214 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:29:35,214 - httpcore.connection - DEBUG - close.started 2026-03-23 17:29:35,214 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:29:35,438 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:29:35,458 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:29:35,458 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:29:35,483 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:29:35,484 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:29:35,484 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:29:35,484 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:29:35,484 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:29:35,484 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:29:35,527 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:29:35 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnLhjAlFw0zzzR06zzEiXqE0jYYz10005UX0002Zh'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6ca733bc269211f19d80c3a251a8442c'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:29:35,528 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:29:35,528 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:29:35,528 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:29:35,528 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:29:35,528 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:29:35,528 - httpcore.connection - DEBUG - close.started 2026-03-23 17:29:35,528 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:29:35", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:29:34"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:29:35"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:29:35"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:30:35,623 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:30:35,624 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:30:35,644 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:30:35,644 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:30:35,670 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:30:35,670 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:30:35,671 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:30:35,671 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:30:35,671 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:30:35,671 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:30:35,739 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:30:35 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnPJKetFw0zzzR06zzEjX2E0jYYz300059R000pIL'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'90874c40269211f1b43e173f9140f13e'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:30:35,739 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:30:35,739 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:30:35,740 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:30:35,740 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:30:35,740 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:30:35,740 - httpcore.connection - DEBUG - close.started 2026-03-23 17:30:35,740 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:30:35,925 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:30:35,946 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:30:35,947 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:30:35,973 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:30:35,973 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:30:35,973 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:30:35,973 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:30:35,973 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:30:35,973 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:30:36,004 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:30:36 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnPKV0fFw0zzzR06zzEiXqE0jYYz10005qC0003cQ'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'90b4fb72269211f1abe71ba5da4d1220'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:30:36,004 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:30:36,004 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:30:36,004 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:30:36,004 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:30:36,004 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:30:36,004 - httpcore.connection - DEBUG - close.started 2026-03-23 17:30:36,005 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:30:36,227 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:30:36,247 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:30:36,247 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:30:36,272 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:30:36,272 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:30:36,272 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:30:36,272 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:30:36,272 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:30:36,272 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:30:36,301 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:30:36 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnPLbHgFw0zzzR06zzEiXqE0jYYz10002bN0017Yc'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'90e26166269211f1aca80ba998ef2e59'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:30:36,302 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:30:36,302 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:30:36,302 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:30:36,302 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:30:36,302 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:30:36,302 - httpcore.connection - DEBUG - close.started 2026-03-23 17:30:36,302 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:30:36,527 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:30:36,547 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:30:36,548 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:30:36,574 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:30:36,574 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:30:36,575 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:30:36,575 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:30:36,575 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:30:36,575 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:30:36,605 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 08:30:36 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQnPMmUrFw0zzzR06zzEiXqE0jYYz10005AE000HUG'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 17:30:36,605 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 17:30:36,605 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:30:36,605 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:30:36,605 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:30:36,605 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:30:37,213 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:30:37,234 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:30:37,234 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:30:37,276 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:30:37,276 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:30:37,276 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:30:37,276 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:30:37,276 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:30:37,276 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:30:37,306 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:30:37 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnPPS9jFw0zzzR06zzEiXqE0jYYz10005qC0003n8'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'917b7b1c269211f1abfb6f9867ae6fa2'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:30:37,306 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:30:37,306 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:30:37,306 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:30:37,306 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:30:37,306 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:30:37,306 - httpcore.connection - DEBUG - close.started 2026-03-23 17:30:37,307 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:30:37", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:30:36"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:30:36"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:30:37"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:31:37,393 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:31:37,393 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:31:37,416 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:31:37,416 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:31:37,442 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:31:37,442 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:31:37,442 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:31:37,442 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:31:37,442 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:31:37,442 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:31:37,511 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:31:37 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnSyxtfFw0zzzR06zzEiXqE0jYYz10004Ne000siK'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'b558f456269211f1a180bf394b8409a2'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:31:37,512 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:31:37,512 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:31:37,513 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:31:37,513 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:31:37,513 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:31:37,513 - httpcore.connection - DEBUG - close.started 2026-03-23 17:31:37,513 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:31:37,695 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:31:37,719 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:31:37,719 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:31:37,743 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:31:37,743 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:31:37,743 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:31:37,743 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:31:37,743 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:31:37,743 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:31:37,781 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:31:37 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnT06j2Fw0zzzR06zzEiXqE0jYYz10005AE000O2G'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b5872204269211f1b3111b081cc50626'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:31:37,781 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:31:37,781 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:31:37,781 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:31:37,781 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:31:37,781 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:31:37,781 - httpcore.connection - DEBUG - close.started 2026-03-23 17:31:37,781 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:31:37,997 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:31:38,021 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:31:38,021 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:31:38,048 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:31:38,049 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:31:38,049 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:31:38,049 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:31:38,049 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:31:38,049 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:31:38,080 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:31:38 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnT1GmdFw0zzzR06zzEjX2E0jYYz300005l000E5d'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b5b4d32a269211f1b24a33cb58c698a5'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:31:38,080 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:31:38,080 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:31:38,080 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:31:38,080 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:31:38,081 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:31:38,081 - httpcore.connection - DEBUG - close.started 2026-03-23 17:31:38,081 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:31:38,298 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:31:38,320 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:31:38,320 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:31:38,345 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:31:38,345 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:31:38,346 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:31:38,346 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:31:38,346 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:31:38,346 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:31:38,382 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:31:38 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnT2Q4sFw0zzzR06zzEjX2E0jYYz30000IC000AS2'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b5e2fe30269211f1adf00f3da0886f38'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:31:38,383 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:31:38,383 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:31:38,383 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:31:38,383 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:31:38,383 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:31:38,383 - httpcore.connection - DEBUG - close.started 2026-03-23 17:31:38,383 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:31:38", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:31:37"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:31:38"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:31:38"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:32:38,477 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:32:38,478 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:32:38,505 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:32:38,506 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:32:38,530 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:32:38,530 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:32:38,530 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:32:38,530 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:32:38,530 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:32:38,530 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:32:38,601 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:32:38 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnWbzZuFw0zzzR06zzEiXqE0jYYz10004Ne000tSd'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'd9c22d6c269211f1aa874f809098ad50'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:32:38,601 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:32:38,601 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:32:38,602 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:32:38,602 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:32:38,602 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:32:38,602 - httpcore.connection - DEBUG - close.started 2026-03-23 17:32:38,602 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:32:38,779 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:32:38,799 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:32:38,799 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:32:38,822 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:32:38,823 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:32:38,823 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:32:38,823 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:32:38,823 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:32:38,823 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:32:38,852 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:32:38 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnWd6QZFw0zzzR06zzEiXqE0jYYz10005AE000U1J'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd9edde8a269211f1aeb28fa2d191ecab'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:32:38,852 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:32:38,852 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:32:38,852 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:32:38,852 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:32:38,852 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:32:38,853 - httpcore.connection - DEBUG - close.started 2026-03-23 17:32:38,853 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:32:39,080 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:32:39,127 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:32:39,127 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:32:39,152 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:32:39,152 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:32:39,152 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:32:39,152 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:32:39,152 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:32:39,152 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:32:39,202 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:32:39 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnWeNs9Fw0zzzR06zzEjX2E0jYYz30000Ot000G5r'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da2324dc269211f1a4f75f38f8558ad0'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:32:39,202 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:32:39,202 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:32:39,203 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:32:39,203 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:32:39,203 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:32:39,203 - httpcore.connection - DEBUG - close.started 2026-03-23 17:32:39,203 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:32:39,380 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:32:39,400 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:32:39,400 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:32:39,429 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:32:39,429 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:32:39,429 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:32:39,429 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:32:39,429 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:32:39,429 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:32:39,463 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:32:39 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnWfQp9Fw0zzzR06zzEiXqE0jYYz10005AE000U5Y'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da4b4c78269211f1b8afdbdc743e1fea'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:32:39,463 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:32:39,463 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:32:39,464 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:32:39,464 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:32:39,464 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:32:39,464 - httpcore.connection - DEBUG - close.started 2026-03-23 17:32:39,464 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:32:39", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:32:38"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:32:39"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:32:39"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:33:39,561 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:33:39,561 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:33:39,583 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:33:39,584 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:33:39,610 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:33:39,610 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:33:39,611 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:33:39,611 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:33:39,611 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:33:39,611 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:33:39,677 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:33:39 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQn^GzqVFw0zzzR06zzEjX2E0jYYz300059L000AGw'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'fe29f69e269211f1b72c4b947dc84259'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:33:39,677 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:33:39,677 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:33:39,678 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:33:39,678 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:33:39,678 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:33:39,678 - httpcore.connection - DEBUG - close.started 2026-03-23 17:33:39,678 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:33:39,862 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:33:39,885 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:33:39,885 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:33:39,909 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:33:39,909 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:33:39,909 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:33:39,909 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:33:39,910 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:33:39,910 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:33:39,959 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:33:39 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQn^I9R_Fw0zzzR06zzEjX2E0jYYz30000Ot000N2^'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fe584b84269211f1b7d2d36d08d04829'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:33:39,960 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:33:39,960 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:33:39,960 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:33:39,960 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:33:39,960 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:33:39,960 - httpcore.connection - DEBUG - close.started 2026-03-23 17:33:39,960 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:33:40,163 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:33:40,185 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:33:40,185 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:33:40,208 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:33:40,208 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:33:40,208 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:33:40,208 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:33:40,208 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:33:40,208 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:33:40,251 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:33:40 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQn^JHhIFw0zzzR06zzEiXqE0jYYz10006zG0000pE'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fe86cda6269211f1940003f339c71b18'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:33:40,252 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:33:40,252 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:33:40,252 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:33:40,252 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:33:40,252 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:33:40,252 - httpcore.connection - DEBUG - close.started 2026-03-23 17:33:40,252 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:33:40,465 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:33:40,487 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:33:40,487 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:33:40,514 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:33:40,514 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:33:40,514 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:33:40,514 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:33:40,514 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:33:40,514 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:33:40,543 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:33:40 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQn^KRhpFw0zzzR06zzEjX2E0jYYz30001I^0008UJ'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'feb33c38269211f1b800534e3ff33aae'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:33:40,543 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:33:40,543 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:33:40,543 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:33:40,543 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:33:40,543 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:33:40,543 - httpcore.connection - DEBUG - close.started 2026-03-23 17:33:40,543 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:33:40", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:33:39"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:33:40"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:33:40"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:34:40,638 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:34:40,638 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:34:40,684 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:34:40,685 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:34:40,710 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:34:40,710 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:34:40,710 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:34:40,710 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:34:40,710 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:34:40,710 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:34:40,777 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:34:40 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnbu4SrFw0zzzR06zzEiXqE0jYYz10004Ne000ucJ'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'22949804269311f1a4882bf147d21a4c'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:34:40,777 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:34:40,777 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:34:40,778 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:34:40,778 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:34:40,778 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:34:40,778 - httpcore.connection - DEBUG - close.started 2026-03-23 17:34:40,778 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:34:40,939 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:34:40,959 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:34:40,959 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:34:40,983 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:34:40,983 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:34:40,983 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:34:40,983 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:34:40,983 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:34:40,983 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:34:41,034 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:34:41 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnbv6v7Fw0zzzR06zzEjX2E0jYYz30001qG0003o2'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'22c18cb0269311f1ba0a4bb0439b0c00'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:34:41,034 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:34:41,034 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:34:41,034 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:34:41,034 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:34:41,034 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:34:41,035 - httpcore.connection - DEBUG - close.started 2026-03-23 17:34:41,035 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:34:41,240 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:34:41,265 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:34:41,265 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:34:41,288 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:34:41,289 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:34:41,289 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:34:41,289 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:34:41,289 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:34:41,289 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:34:41,321 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:34:41 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnbwHu3Fw0zzzR06zzEiXqE0jYYz10007980004^n'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'22ed1858269311f1a09327513e0c3c52'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:34:41,321 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:34:41,321 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:34:41,321 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:34:41,321 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:34:41,322 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:34:41,322 - httpcore.connection - DEBUG - close.started 2026-03-23 17:34:41,322 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:34:41,542 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:34:41,563 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:34:41,563 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:34:41,587 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:34:41,587 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:34:41,587 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:34:41,587 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:34:41,587 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:34:41,587 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:34:41,612 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 08:34:41 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQnbxQD7Fw0zzzR06zzEjX2E0jYYz30001I^000F8k'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 17:34:41,612 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 17:34:41,612 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:34:41,612 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:34:41,612 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:34:41,612 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:34:42,220 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:34:42,242 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:34:42,242 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:34:42,268 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:34:42,268 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:34:42,268 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:34:42,268 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:34:42,268 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:34:42,268 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:34:42,299 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:34:42 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnc00yhFw0zzzR06zzEiXqE0jYYz10006zG00078R'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'23823a14269311f1b176df2acf38a84e'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:34:42,300 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:34:42,300 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:34:42,300 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:34:42,300 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:34:42,300 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:34:42,300 - httpcore.connection - DEBUG - close.started 2026-03-23 17:34:42,300 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:34:42", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:34:41"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:34:41"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:34:42"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:35:42,396 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:35:42,396 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:35:42,440 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:35:42,440 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:35:42,467 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:35:42,467 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:35:42,467 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:35:42,467 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:35:42,467 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:35:42,467 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:35:42,530 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:35:42 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnf_dDHFw0zzzR06zzEjX2E0jYYz300059R000sCe'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'4763aee0269311f1b60b5f3503d3469b'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:35:42,530 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:35:42,530 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:35:42,530 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:35:42,530 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:35:42,530 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:35:42,531 - httpcore.connection - DEBUG - close.started 2026-03-23 17:35:42,531 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:35:42,698 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:35:42,719 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:35:42,719 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:35:42,744 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:35:42,745 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:35:42,745 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:35:42,745 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:35:42,745 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:35:42,745 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:35:42,774 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:35:42 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnfagyTFw0zzzR06zzEjX2E0jYYz30002A80004EM'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'478e14be269311f19be4032261bcbcdd'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:35:42,774 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:35:42,774 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:35:42,775 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:35:42,775 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:35:42,775 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:35:42,775 - httpcore.connection - DEBUG - close.started 2026-03-23 17:35:42,775 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:35:42,999 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:35:43,022 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:35:43,022 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:35:43,049 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:35:43,049 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:35:43,050 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:35:43,050 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:35:43,050 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:35:43,050 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:35:43,079 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:35:43 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnfbrdKFw0zzzR06zzEjX2E0jYYz30000Ot000^Wj'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'47bcb6e8269311f1b532abfe53e5119a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:35:43,079 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:35:43,079 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:35:43,079 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:35:43,079 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:35:43,079 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:35:43,079 - httpcore.connection - DEBUG - close.started 2026-03-23 17:35:43,079 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:35:43,300 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:35:43,321 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:35:43,321 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:35:43,347 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:35:43,347 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:35:43,348 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:35:43,348 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:35:43,348 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:35:43,348 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:35:43,391 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:35:43 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnfd1ECFw0zzzR06zzEjX2E0jYYz30001qG000AoE'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'47ec3a58269311f19c15d3e2de72e199'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:35:43,391 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:35:43,391 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:35:43,391 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:35:43,391 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:35:43,391 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:35:43,391 - httpcore.connection - DEBUG - close.started 2026-03-23 17:35:43,392 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:35:43", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:35:42"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:35:43"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:35:43"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:36:43,486 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:36:43,486 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:36:43,530 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:36:43,530 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:36:43,556 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:36:43,556 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:36:43,556 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:36:43,556 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:36:43,556 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:36:43,556 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:36:43,637 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:36:43 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnjEfttFw0zzzR06zzEjX2E0jYYz300059R000smX'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'6bcd809e269311f1ba22cf7b77c5eab1'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:36:43,637 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:36:43,637 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:36:43,638 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:36:43,638 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:36:43,638 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:36:43,638 - httpcore.connection - DEBUG - close.started 2026-03-23 17:36:43,638 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:36:43,788 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:36:43,808 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:36:43,808 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:36:43,834 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:36:43,834 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:36:43,835 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:36:43,835 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:36:43,835 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:36:43,835 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:36:43,889 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:36:43 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnjFkZWFw0zzzR06zzEjX2E0jYYz30002A8000AsN'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6bfb5d84269311f1aba1e77705757f92'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:36:43,889 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:36:43,889 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:36:43,889 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:36:43,889 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:36:43,889 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:36:43,889 - httpcore.connection - DEBUG - close.started 2026-03-23 17:36:43,889 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:36:44,089 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:36:44,110 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:36:44,110 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:36:44,138 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:36:44,138 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:36:44,138 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:36:44,138 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:36:44,139 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:36:44,139 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:36:44,178 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:36:44 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnjGvOPFw0zzzR06zzEiXqE0jYYz100006600022s'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c27bc76269311f1931b8ff35f1abda1'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:36:44,178 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:36:44,178 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:36:44,178 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:36:44,178 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:36:44,179 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:36:44,179 - httpcore.connection - DEBUG - close.started 2026-03-23 17:36:44,179 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:36:44,390 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:36:44,412 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:36:44,412 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:36:44,435 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:36:44,436 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:36:44,436 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:36:44,436 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:36:44,436 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:36:44,436 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:36:44,467 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:36:44 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnjI3MmFw0zzzR06zzEiXqE0jYYz10007lt0004XS'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c53d32e269311f1932e87fe2ac1c387'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:36:44,468 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:36:44,468 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:36:44,468 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:36:44,468 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:36:44,468 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:36:44,468 - httpcore.connection - DEBUG - close.started 2026-03-23 17:36:44,469 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:36:44", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:36:43"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:36:44"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:36:44"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:37:44,564 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:37:44,564 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:37:44,591 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:37:44,591 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:37:44,614 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:37:44,614 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:37:44,614 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:37:44,614 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:37:44,614 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:37:44,614 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:37:44,677 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:37:44 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnmra74Fw0zzzR06zzEiXqE0jYYz10004NQ000XJo'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'90319f24269311f1a774af84637042ba'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:37:44,678 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:37:44,678 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:37:44,678 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:37:44,678 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:37:44,678 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:37:44,678 - httpcore.connection - DEBUG - close.started 2026-03-23 17:37:44,678 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:37:44,866 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:37:44,888 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:37:44,888 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:37:44,913 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:37:44,913 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:37:44,913 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:37:44,913 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:37:44,913 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:37:44,913 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:37:44,960 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:37:44 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnmsk7JFw0zzzR06zzEiXqE0jYYz10007SU000HYz'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'90621690269311f19d1bb70758cc66e2'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:37:44,961 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:37:44,961 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:37:44,961 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:37:44,961 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:37:44,961 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:37:44,961 - httpcore.connection - DEBUG - close.started 2026-03-23 17:37:44,961 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:37:45,166 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:37:45,191 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:37:45,191 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:37:45,216 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:37:45,216 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:37:45,216 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:37:45,216 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:37:45,217 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:37:45,217 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:37:45,251 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:37:45 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnmtuijFw0zzzR06zzEjX2E0jYYz30002dV0008hD'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'908ec6ea269311f1b99eabaa79871b77'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:37:45,251 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:37:45,251 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:37:45,251 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:37:45,251 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:37:45,251 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:37:45,252 - httpcore.connection - DEBUG - close.started 2026-03-23 17:37:45,252 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:37:45,469 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:37:45,491 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:37:45,491 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:37:45,517 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:37:45,517 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:37:45,518 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:37:45,518 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:37:45,518 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:37:45,518 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:37:45,553 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:37:45 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnmv3E1Fw0zzzR06zzEjX2E0jYYz300037100001E'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'90bccaea269311f1baad032096943c5d'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:37:45,554 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:37:45,554 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:37:45,554 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:37:45,554 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:37:45,554 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:37:45,554 - httpcore.connection - DEBUG - close.started 2026-03-23 17:37:45,554 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:37:45", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:37:44"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:37:45"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:37:45"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:38:45,651 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:38:45,651 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:38:45,674 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:38:45,674 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:38:45,699 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:38:45,699 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:38:45,700 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:38:45,700 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:38:45,700 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:38:45,700 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:38:45,769 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:38:45 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnqWcXBFw0zzzR06zzEiXqE0jYYz10004NG000C1A'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'b49b7402269311f1a866d7fb5215cb6c'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:38:45,769 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:38:45,769 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:38:45,769 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:38:45,769 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:38:45,769 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:38:45,770 - httpcore.connection - DEBUG - close.started 2026-03-23 17:38:45,770 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:38:45,953 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:38:45,974 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:38:45,974 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:38:46,001 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:38:46,001 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:38:46,001 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:38:46,001 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:38:46,001 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:38:46,002 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:38:46,046 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:38:46 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnqXmLiFw0zzzR06zzEjX2E0jYYz30003Th0000Pt'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b4cad440269311f1b237fb5747547e96'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:38:46,046 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:38:46,046 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:38:46,046 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:38:46,046 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:38:46,046 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:38:46,046 - httpcore.connection - DEBUG - close.started 2026-03-23 17:38:46,046 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:38:46,255 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:38:46,276 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:38:46,277 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:38:46,302 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:38:46,303 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:38:46,303 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:38:46,303 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:38:46,303 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:38:46,303 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:38:46,333 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:38:46 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnqYv8gFw0zzzR06zzEiXqE0jYYz1000798000Uz^'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b4f6ff52269311f1b34b4792de6fb875'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:38:46,334 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:38:46,334 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:38:46,334 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:38:46,334 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:38:46,334 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:38:46,334 - httpcore.connection - DEBUG - close.started 2026-03-23 17:38:46,334 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:38:46,556 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:38:46,606 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:38:46,606 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:38:46,630 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:38:46,630 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:38:46,630 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:38:46,630 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:38:46,630 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:38:46,631 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:38:46,653 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 08:38:46 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQnq^AYlFw0zzzR06zzEjX2E0jYYz30002dV000FOX'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 17:38:46,653 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 17:38:46,653 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:38:46,653 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:38:46,653 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:38:46,654 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:38:47,261 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:38:47,284 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:38:47,284 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:38:47,310 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:38:47,310 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:38:47,310 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:38:47,311 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:38:47,311 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:38:47,311 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:38:47,354 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:38:47 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnqalzLFw0zzzR06zzEiXqE0jYYz10000rv0003b1'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b592c09a269311f189a5a3a304f0009a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:38:47,354 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:38:47,354 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:38:47,354 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:38:47,354 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:38:47,354 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:38:47,355 - httpcore.connection - DEBUG - close.started 2026-03-23 17:38:47,355 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:38:47", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:38:46"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:38:46"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:38:47"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:39:47,453 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:39:47,454 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:39:47,495 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:39:47,495 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:39:47,519 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:39:47,519 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:39:47,519 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:39:47,519 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:39:47,519 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:39:47,519 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:39:47,595 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:39:47 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnuCTZ1Fw0zzzR06zzEjX2E0jYYz300059R000uOA'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'd974d3d6269311f1b9b2c7d3ea698ebc'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:39:47,596 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:39:47,596 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:39:47,596 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:39:47,596 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:39:47,596 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:39:47,596 - httpcore.connection - DEBUG - close.started 2026-03-23 17:39:47,597 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:39:47,756 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:39:47,777 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:39:47,777 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:39:47,803 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:39:47,803 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:39:47,804 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:39:47,804 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:39:47,804 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:39:47,804 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:39:47,835 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:39:47 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnuDYPEFw0zzzR06zzEiXqE0jYYz10000rv000Ak0'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd99f9972269311f1b6724f8a8623c7b3'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:39:47,835 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:39:47,835 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:39:47,836 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:39:47,836 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:39:47,836 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:39:47,836 - httpcore.connection - DEBUG - close.started 2026-03-23 17:39:47,836 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:39:48,058 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:39:48,085 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:39:48,085 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:39:48,220 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:39:48,220 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:39:48,220 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:39:48,220 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:39:48,221 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:39:48,221 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:39:48,549 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:39:48 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnuF8O7Fw0zzzR06zzEjX2E0jYYz30003tz00000q'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da04e6e2269311f1b96a6f7c8005f880'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:39:48,550 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:39:48,550 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:39:48,550 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:39:48,550 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:39:48,550 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:39:48,550 - httpcore.connection - DEBUG - close.started 2026-03-23 17:39:48,550 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:39:48,558 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:39:48,577 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:39:48,577 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:39:48,679 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:39:48,679 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:39:48,680 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:39:48,680 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:39:48,680 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:39:48,680 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:39:48,771 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:39:48 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnuGs35Fw0zzzR06zzEiXqE0jYYz10007SU000Uyc'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da2e3d76269311f1b9514730b5f21f67'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:39:48,772 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:39:48,772 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:39:48,772 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:39:48,772 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:39:48,772 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:39:48,772 - httpcore.connection - DEBUG - close.started 2026-03-23 17:39:48,772 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:39:48", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:39:47"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:39:48"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:39:48"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:40:48,868 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:40:48,868 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:40:48,889 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:40:48,889 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:40:48,919 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:40:48,919 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:40:48,919 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:40:48,919 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:40:48,919 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:40:48,919 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:40:48,984 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:40:48 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQnxqeWhFw0zzzR06zzEiXqE0jYYz10004Ne000yIY'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'fe0cd824269311f1aa93fbc02b321b62'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:40:48,985 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:40:48,985 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:40:48,985 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:40:48,985 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:40:48,985 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:40:48,985 - httpcore.connection - DEBUG - close.started 2026-03-23 17:40:48,985 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:40:49,168 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:40:49,190 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:40:49,190 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:40:49,217 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:40:49,217 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:40:49,217 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:40:49,217 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:40:49,217 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:40:49,217 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:40:49,269 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:40:49 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQnxro5GFw0zzzR06zzEiXqE0jYYz10000b2000Jzv'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fe3d76d2269311f1b0b8bfc192d2ecdb'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:40:49,270 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:40:49,270 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:40:49,270 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:40:49,270 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:40:49,270 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:40:49,270 - httpcore.connection - DEBUG - close.started 2026-03-23 17:40:49,270 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:40:49,469 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:40:49,492 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:40:49,492 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:40:49,517 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:40:49,517 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:40:49,517 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:40:49,517 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:40:49,517 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:40:49,517 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:40:49,548 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:40:49 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQnxswy8Fw0zzzR06zzEiXqE0jYYz10000rv000Han'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fe681518269311f1bb2723fa377e698c'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:40:49,548 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:40:49,548 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:40:49,548 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:40:49,548 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:40:49,548 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:40:49,548 - httpcore.connection - DEBUG - close.started 2026-03-23 17:40:49,549 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:40:49,771 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:40:49,803 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:40:49,803 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:40:49,829 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:40:49,830 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:40:49,830 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:40:49,830 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:40:49,830 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:40:49,830 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:40:49,867 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 08:40:49 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQnxuAEPFw0zzzR06zzEiXqE0jYYz10001dm0000XW'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 17:40:49,867 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 17:40:49,867 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:40:49,867 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:40:49,867 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:40:49,867 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:40:50,475 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:40:50,499 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:40:50,499 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:40:50,525 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:40:50,526 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:40:50,526 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:40:50,526 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:40:50,526 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:40:50,526 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:40:50,566 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:40:50 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQnxwo7FFw0zzzR06zzEiXqE0jYYz10001dm0000^V'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'ff034e66269311f1a5c253a130cefa2c'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:40:50,566 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:40:50,566 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:40:50,566 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:40:50,566 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:40:50,566 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:40:50,566 - httpcore.connection - DEBUG - close.started 2026-03-23 17:40:50,566 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:40:50", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:40:49"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:40:49"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:40:50"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:41:50,637 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:41:50,638 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:41:50,659 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:41:50,659 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:41:50,682 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:41:50,682 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:41:50,683 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:41:50,683 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:41:50,683 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:41:50,683 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:41:50,748 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:41:50 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQo1YHE5Fw0zzzR06zzEjX2E0jYYz300059R000vc0'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'22dd2dc0269411f1bee13fde2a8a30ed'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:41:50,749 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:41:50,749 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:41:50,749 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:41:50,749 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:41:50,749 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:41:50,749 - httpcore.connection - DEBUG - close.started 2026-03-23 17:41:50,749 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:41:50,938 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:41:50,958 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:41:50,958 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:41:50,985 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:41:50,985 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:41:50,985 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:41:50,985 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:41:50,985 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:41:50,985 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:41:51,016 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:41:51 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQo1ZRaoFw0zzzR06zzEjX2E0jYYz30002dV000YjB'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'230b798c269411f1b06d7bdfe0b07eda'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:41:51,016 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:41:51,017 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:41:51,017 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:41:51,017 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:41:51,017 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:41:51,017 - httpcore.connection - DEBUG - close.started 2026-03-23 17:41:51,017 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:41:51,239 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:41:51,261 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:41:51,261 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:41:51,286 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:41:51,286 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:41:51,286 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:41:51,286 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:41:51,286 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:41:51,286 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:41:51,316 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:41:51 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQo1^^s6Fw0zzzR06zzEjX2E0jYYz30003Kf000N9A'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'23392404269411f1b74203c67144f355'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:41:51,316 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:41:51,316 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:41:51,316 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:41:51,317 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:41:51,317 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:41:51,317 - httpcore.connection - DEBUG - close.started 2026-03-23 17:41:51,317 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:41:51,540 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:41:51,560 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:41:51,560 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:41:51,589 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:41:51,589 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:41:51,589 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:41:51,589 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:41:51,589 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:41:51,590 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:41:51,621 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 08:41:51 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQo1_k0cFw0zzzR06zzEjX2E0jYYz3000371000Qgw'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 17:41:51,621 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 17:41:51,621 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:41:51,621 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:41:51,621 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:41:51,621 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:41:52,228 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:41:52,251 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:41:52,251 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:41:52,277 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:41:52,277 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:41:52,278 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:41:52,278 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:41:52,278 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:41:52,278 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:41:52,322 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:41:52 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQo1cNcWFw0zzzR06zzEjX2E0jYYz30004f200008y'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'23d2a4e4269411f1b0c77fc2655a8c0e'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:41:52,322 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:41:52,322 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:41:52,322 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:41:52,322 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:41:52,322 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:41:52,322 - httpcore.connection - DEBUG - close.started 2026-03-23 17:41:52,322 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:41:52", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:41:51"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:41:51"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:41:52"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:42:52,419 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:42:52,420 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:42:52,467 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:42:52,467 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:42:52,493 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:42:52,493 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:42:52,493 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:42:52,493 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:42:52,493 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:42:52,493 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:42:52,561 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:42:52 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQo5E49HFw0zzzR06zzEiXqE0jYYz10004Ne000zTz'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'47b4dad0269411f1ac48d715170327d9'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:42:52,561 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:42:52,561 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:42:52,561 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:42:52,561 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:42:52,562 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:42:52,562 - httpcore.connection - DEBUG - close.started 2026-03-23 17:42:52,562 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:42:52,721 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:42:52,742 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:42:52,742 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:42:52,766 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:42:52,766 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:42:52,766 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:42:52,766 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:42:52,766 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:42:52,766 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:42:52,794 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:42:52 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQo5F71gFw0zzzR06zzEiXqE0jYYz10001xh0007XL'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'47ddf8d4269411f1a08783b73b9ed59a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:42:52,795 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:42:52,795 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:42:52,795 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:42:52,795 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:42:52,795 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:42:52,795 - httpcore.connection - DEBUG - close.started 2026-03-23 17:42:52,795 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:42:53,021 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:42:53,043 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:42:53,044 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:42:53,070 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:42:53,070 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:42:53,070 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:42:53,070 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:42:53,070 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:42:53,070 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:42:53,103 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:42:53 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQo5GHY6Fw0zzzR06zzEjX2E0jYYz30002dV000dO3'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'480ce91e269411f1a1d443a01f859b07'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:42:53,103 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:42:53,103 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:42:53,103 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:42:53,103 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:42:53,103 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:42:53,103 - httpcore.connection - DEBUG - close.started 2026-03-23 17:42:53,103 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:42:53,322 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:42:53,344 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:42:53,344 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:42:53,371 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:42:53,371 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:42:53,371 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:42:53,371 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:42:53,372 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:42:53,372 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:42:53,460 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:42:53 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQo5HQepFw0zzzR06zzEiXqE0jYYz10001Tv000HKB'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'4842ebe0269411f1a3fbaff5b6777217'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:42:53,461 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:42:53,461 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:42:53,461 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:42:53,461 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:42:53,461 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:42:53,461 - httpcore.connection - DEBUG - close.started 2026-03-23 17:42:53,462 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:42:53", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:42:52"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:42:53"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:42:53"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:43:53,557 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:43:53,557 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:43:53,580 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:43:53,580 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:43:53,603 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:43:53,603 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:43:53,603 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:43:53,603 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:43:53,604 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:43:53,604 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:43:53,669 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:43:53 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQo8rBg8Fw0zzzR06zzEiXqE0jYYz10004NQ000Z7I'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'6c21284c269411f1b531f3e95dceda24'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:43:53,669 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:43:53,670 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:43:53,670 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:43:53,670 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:43:53,670 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:43:53,670 - httpcore.connection - DEBUG - close.started 2026-03-23 17:43:53,670 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:43:53,859 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:43:53,878 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:43:53,878 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:43:53,902 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:43:53,902 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:43:53,902 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:43:53,902 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:43:53,902 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:43:53,902 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:43:53,940 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:43:53 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQo8sLT0Fw0zzzR06zzEjX2E0jYYz30002dV000kKn'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c5027c8269411f1ba8067d939cb69d1'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:43:53,941 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:43:53,941 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:43:53,941 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:43:53,941 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:43:53,941 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:43:53,941 - httpcore.connection - DEBUG - close.started 2026-03-23 17:43:53,941 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:43:54,159 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:43:54,179 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:43:54,179 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:43:54,203 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:43:54,203 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:43:54,204 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:43:54,204 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:43:54,204 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:43:54,204 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:43:54,234 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:43:54 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQo8tTtTFw0zzzR06zzEjX2E0jYYz30005DC0002SH'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c7cf21c269411f1a917a77d1f0c55ac'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:43:54,234 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:43:54,234 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:43:54,234 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:43:54,234 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:43:54,234 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:43:54,234 - httpcore.connection - DEBUG - close.started 2026-03-23 17:43:54,234 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:43:54,461 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:43:54,498 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:43:54,498 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:43:54,520 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:43:54,521 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:43:54,521 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:43:54,521 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:43:54,521 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:43:54,521 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:43:54,550 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:43:54 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQo8ufmkFw0zzzR06zzEiXqE0jYYz10001xh000Ec1'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6cacf1ce269411f1b1f1ef06e8fdf3f9'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:43:54,550 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:43:54,551 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:43:54,551 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:43:54,551 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:43:54,551 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:43:54,551 - httpcore.connection - DEBUG - close.started 2026-03-23 17:43:54,551 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:43:54", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:43:53"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:43:54"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:43:54"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:44:54,646 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:44:54,646 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:44:54,670 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:44:54,670 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:44:54,696 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:44:54,696 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:44:54,697 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:44:54,697 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:44:54,697 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:44:54,697 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:44:54,758 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:44:54 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQoCWEJsFw0zzzR06zzEiXqE0jYYz10004Ne0010hj'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'908adfa2269411f1ae2ac309e9bdcf85'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:44:54,759 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:44:54,759 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:44:54,759 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:44:54,759 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:44:54,759 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:44:54,759 - httpcore.connection - DEBUG - close.started 2026-03-23 17:44:54,759 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:44:54,947 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:44:54,971 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:44:54,971 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:44:54,996 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:44:54,996 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:44:54,997 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:44:54,997 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:44:54,997 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:44:54,997 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:44:55,049 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:44:55 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQoCXObmFw0zzzR06zzEiXqE0jYYz10000b2000jGG'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'90bbf5d8269411f1b6970b7a193e3000'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:44:55,050 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:44:55,050 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:44:55,050 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:44:55,050 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:44:55,050 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:44:55,050 - httpcore.connection - DEBUG - close.started 2026-03-23 17:44:55,050 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:44:55,248 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:44:55,270 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:44:55,270 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:44:55,308 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:44:55,308 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:44:55,309 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:44:55,309 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:44:55,309 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:44:55,309 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:44:55,358 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:44:55 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQoCY^tyFw0zzzR06zzEiXqE0jYYz10001Tv000UtU'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'90eba486269411f1b6ae573b2980371f'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:44:55,358 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:44:55,358 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:44:55,358 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:44:55,359 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:44:55,359 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:44:55,359 - httpcore.connection - DEBUG - close.started 2026-03-23 17:44:55,359 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:44:55,549 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:44:55,599 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:44:55,599 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:44:55,622 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:44:55,622 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:44:55,622 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:44:55,622 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:44:55,622 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:44:55,622 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:44:55,651 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 08:44:55 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQoCZkp^Fw0zzzR06zzEiXqE0jYYz10001Tv000Uvc'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 17:44:55,652 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 17:44:55,652 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:44:55,652 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:44:55,652 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:44:55,652 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:44:56,260 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:44:56,281 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:44:56,519 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:44:56,545 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:44:56,545 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:44:56,545 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:44:56,546 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:44:56,546 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:44:56,546 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:44:56,578 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:44:56 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQoCbIR^Fw0zzzR06zzEiXqE0jYYz10000b2000jS7'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'91a5a3cc269411f1a5cd1f30c5ed9ff0'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:44:56,578 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:44:56,578 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:44:56,578 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:44:56,578 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:44:56,578 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:44:56,579 - httpcore.connection - DEBUG - close.started 2026-03-23 17:44:56,579 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:44:56", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:44:55"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:44:55"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:44:56"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:45:56,673 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:45:56,673 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:45:56,695 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:45:56,696 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:45:56,722 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:45:56,722 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:45:56,722 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:45:56,722 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:45:56,723 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:45:56,723 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:45:56,792 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:45:56 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQoGCqI6Fw0zzzR06zzEjX2E0jYYz300059R000y8Z'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'b5846a4e269411f1bf8d9b3a2773d8b8'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:45:56,792 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:45:56,792 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:45:56,792 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:45:56,792 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:45:56,793 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:45:56,793 - httpcore.connection - DEBUG - close.started 2026-03-23 17:45:56,793 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:45:56,975 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:45:56,996 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:45:56,996 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:45:57,025 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:45:57,025 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:45:57,025 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:45:57,025 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:45:57,025 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:45:57,025 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:45:57,059 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:45:57 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQoGE0ZbFw0zzzR06zzEiXqE0jYYz10000b2000qiC'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b5b23adc269411f19656836138bab9ee'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:45:57,059 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:45:57,059 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:45:57,059 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:45:57,059 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:45:57,059 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:45:57,059 - httpcore.connection - DEBUG - close.started 2026-03-23 17:45:57,059 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:45:57,275 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:45:57,299 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:45:57,299 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:45:57,326 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:45:57,327 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:45:57,327 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:45:57,327 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:45:57,327 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:45:57,327 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:45:57,354 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:45:57 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQoGF9G8Fw0zzzR06zzEjX2E0jYYz30002dV000xnG'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b5df92d4269411f1ac8fc7cdffb5473f'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:45:57,354 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:45:57,355 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:45:57,355 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:45:57,355 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:45:57,355 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:45:57,355 - httpcore.connection - DEBUG - close.started 2026-03-23 17:45:57,355 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:45:57,578 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:45:57,600 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:45:57,600 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:45:57,626 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:45:57,627 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:45:57,627 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:45:57,627 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:45:57,627 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:45:57,627 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:45:57,677 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 08:45:57 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQoGGIn2Fw0zzzR06zzEjX2E0jYYz30002dV000xp2'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 17:45:57,677 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 17:45:57,677 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:45:57,677 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:45:57,677 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:45:57,677 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:45:58,285 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:45:58,307 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:45:58,308 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:45:58,334 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:45:58,334 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:45:58,335 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:45:58,335 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:45:58,335 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:45:58,335 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:45:58,365 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:45:58 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQoGIzxSFw0zzzR06zzEiXqE0jYYz10001xh000T1m'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b679a23e269411f1b34a8f22d6144537'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:45:58,365 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:45:58,365 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:45:58,365 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:45:58,365 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:45:58,366 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:45:58,366 - httpcore.connection - DEBUG - close.started 2026-03-23 17:45:58,366 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:45:58", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:45:57"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:45:57"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:45:58"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:46:58,424 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:46:58,424 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:46:58,446 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:46:58,446 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:46:58,474 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:46:58,475 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:46:58,475 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:46:58,475 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:46:58,475 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:46:58,475 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:46:58,540 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:46:58 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQoJsPohFw0zzzR06zzEjX2E0jYYz300059R000yo_'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'da52508e269411f1896e33079efdcf27'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:46:58,541 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:46:58,541 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:46:58,541 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:46:58,541 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:46:58,541 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:46:58,541 - httpcore.connection - DEBUG - close.started 2026-03-23 17:46:58,541 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:46:58,725 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:46:58,751 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:46:58,751 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:46:58,777 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:46:58,777 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:46:58,777 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:46:58,777 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:46:58,777 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:46:58,778 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:46:58,808 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:46:58 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQoJt^VkFw0zzzR06zzEiXqE0jYYz10000b2000x_3'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da808fda269411f1a47f07e50316202a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:46:58,808 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:46:58,808 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:46:58,809 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:46:58,809 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:46:58,809 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:46:58,809 - httpcore.connection - DEBUG - close.started 2026-03-23 17:46:58,809 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:46:59,026 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:46:59,049 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:46:59,049 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:46:59,074 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:46:59,075 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:46:59,075 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:46:59,075 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:46:59,075 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:46:59,075 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:46:59,106 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:46:59 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQoJugWoFw0zzzR06zzEjX2E0jYYz30005DC000NHw'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'daae3822269411f1a0e0570e0ae36a2c'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:46:59,106 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:46:59,106 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:46:59,106 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:46:59,106 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:46:59,107 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:46:59,107 - httpcore.connection - DEBUG - close.started 2026-03-23 17:46:59,107 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:46:59,327 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:46:59,349 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:46:59,349 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:46:59,395 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:46:59,395 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:46:59,396 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:46:59,396 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:46:59,396 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:46:59,396 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:46:59,437 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:46:59 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQoJvvK_Fw0zzzR06zzEjX2E0jYYz300060R0005P0'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'dae05d34269411f1acd1430050e010f4'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:46:59,438 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:46:59,438 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:46:59,438 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:46:59,438 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:46:59,438 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:46:59,438 - httpcore.connection - DEBUG - close.started 2026-03-23 17:46:59,438 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:46:59", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:46:58"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:46:59"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:46:59"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:47:59,480 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:47:59,480 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:47:59,526 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:47:59,526 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:47:59,550 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:47:59,551 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:47:59,551 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:47:59,551 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:47:59,551 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:47:59,551 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:47:59,621 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:47:59 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQoNXPd5Fw0zzzR06zzEiXqE0jYYz10004Ne0012s9'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'feba47b0269411f1b1121b852deda7de'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:47:59,622 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:47:59,622 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:47:59,622 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:47:59,622 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:47:59,622 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:47:59,622 - httpcore.connection - DEBUG - close.started 2026-03-23 17:47:59,622 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:47:59,781 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:47:59,806 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:47:59,806 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:47:59,833 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:47:59,833 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:47:59,833 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:47:59,833 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:47:59,833 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:47:59,833 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:47:59,869 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:47:59 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQoNYTz_Fw0zzzR06zzEiXqE0jYYz10001Tv000mkX'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fee58baa269411f1b6c54bd38ba28fbb'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:47:59,869 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:47:59,869 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:47:59,869 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:47:59,869 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:47:59,869 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:47:59,869 - httpcore.connection - DEBUG - close.started 2026-03-23 17:47:59,869 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:48:00,083 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:48:00,106 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:48:00,106 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:48:00,160 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:48:00,160 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:48:00,160 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:48:00,160 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:48:00,160 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:48:00,160 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:48:00,203 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:48:00 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQoNZiPlFw0zzzR06zzEjX2E0jYYz300060R000CED'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'ff18a008269411f1ae640334120a404c'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:48:00,203 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:48:00,203 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:48:00,203 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:48:00,203 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:48:00,203 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:48:00,204 - httpcore.connection - DEBUG - close.started 2026-03-23 17:48:00,204 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:48:00,386 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:48:00,407 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:48:00,407 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:48:00,431 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:48:00,431 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:48:00,431 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:48:00,431 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:48:00,431 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:48:00,431 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:48:00,504 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:48:00 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQoN^kERFw0zzzR06zzEiXqE0jYYz10001Tv000moe'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'ff469986269411f1b3b5534ce614a02a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:48:00,504 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:48:00,504 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:48:00,504 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:48:00,504 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:48:00,504 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:48:00,505 - httpcore.connection - DEBUG - close.started 2026-03-23 17:48:00,505 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:48:00", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:47:59"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:48:00"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:48:00"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:49:00,600 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:49:00,600 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:49:00,622 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:49:00,622 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:49:00,646 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:49:00,646 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:49:00,647 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:49:00,647 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:49:00,647 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:49:00,647 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:49:00,716 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:49:00 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQoRAU87Fw0zzzR06zzEiXqE0jYYz10004NG000De5'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'2324dd90269511f1b1fd2fa563c160f6'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:49:00,716 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:49:00,716 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:49:00,716 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:49:00,717 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:49:00,717 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:49:00,717 - httpcore.connection - DEBUG - close.started 2026-03-23 17:49:00,717 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:49:00,901 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:49:00,923 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:49:00,923 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:49:00,952 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:49:00,952 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:49:00,952 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:49:00,952 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:49:00,953 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:49:00,953 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:49:00,996 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:49:00 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQoRBciAFw0zzzR06zzEjX2E0jYYz300060R000Ipg'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'2354f94e269511f19b0c9bff429c625c'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:49:00,997 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:49:00,997 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:49:00,997 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:49:00,997 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:49:00,997 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:49:00,997 - httpcore.connection - DEBUG - close.started 2026-03-23 17:49:00,997 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:49:01,203 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:49:01,226 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:49:01,226 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:49:01,251 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:49:01,252 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:49:01,252 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:49:01,252 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:49:01,252 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:49:01,252 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:49:01,287 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:49:01 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQoRClhPFw0zzzR06zzEjX2E0jYYz3000371001ApZ'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'23817ef6269511f1a9ca7b9c1926cc15'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:49:01,287 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:49:01,287 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:49:01,287 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:49:01,288 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:49:01,288 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:49:01,288 - httpcore.connection - DEBUG - close.started 2026-03-23 17:49:01,288 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:49:01,504 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:49:01,527 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:49:01,528 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:49:01,551 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:49:01,552 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:49:01,552 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:49:01,552 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:49:01,552 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:49:01,552 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:49:01,582 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:49:01 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQoRDtxIFw0zzzR06zzEjX2E0jYYz30005cX000Q1I'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'23ae6862269511f18f40c33b3f38b440'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:49:01,582 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:49:01,582 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:49:01,582 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:49:01,582 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:49:01,582 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:49:01,582 - httpcore.connection - DEBUG - close.started 2026-03-23 17:49:01,583 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:49:01", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:49:00"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:49:01"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:49:01"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:50:01,680 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:50:01,681 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:50:01,726 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:50:01,726 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:50:01,753 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:50:01,753 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:50:01,753 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:50:01,753 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:50:01,754 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:50:01,754 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:50:01,850 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:50:01 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQoUnesrFw0zzzR06zzEjX2E0jYYz300059L000BvA'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'47950b46269511f18c4f63df9c8cf8b6'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:50:01,850 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:50:01,850 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:50:01,850 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:50:01,851 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:50:01,851 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:50:01,851 - httpcore.connection - DEBUG - close.started 2026-03-23 17:50:01,851 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:50:01,977 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:50:01,998 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:50:01,998 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:50:02,026 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:50:02,027 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:50:02,027 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:50:02,027 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:50:02,027 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:50:02,027 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:50:02,065 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:50:02 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQoUobMfFw0zzzR06zzEiXqE0jYYz10004Qt0001_h'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'47bb562a269511f1a607a77e4060fd38'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:50:02,065 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:50:02,066 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:50:02,066 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:50:02,066 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:50:02,066 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:50:02,066 - httpcore.connection - DEBUG - close.started 2026-03-23 17:50:02,066 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:50:02,280 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:50:02,301 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:50:02,301 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:50:02,326 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:50:02,326 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:50:02,327 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:50:02,327 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:50:02,327 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:50:02,327 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:50:02,379 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:50:02 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQoUpje^Fw0zzzR06zzEiXqE0jYYz10004a900003d'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'47eb260c269511f1b157ab4192ab06e1'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:50:02,379 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:50:02,379 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:50:02,379 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:50:02,379 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:50:02,379 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:50:02,379 - httpcore.connection - DEBUG - close.started 2026-03-23 17:50:02,380 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:50:02,580 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:50:02,601 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:50:02,601 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:50:02,627 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:50:02,627 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:50:02,628 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:50:02,628 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:50:02,628 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:50:02,628 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:50:02,653 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 08:50:02 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQoUqtTHFw0zzzR06zzEjX2E0jYYz30007Kb0000Gy'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 17:50:02,653 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 17:50:02,653 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:50:02,653 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:50:02,653 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:50:02,654 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:50:03,261 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:50:03,282 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:50:03,282 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:50:03,308 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:50:03,309 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:50:03,309 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:50:03,309 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:50:03,309 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:50:03,309 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:50:03,352 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:50:03 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQoUtWPKFw0zzzR06zzEiXqE0jYYz10004a9000062'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'487fbcea269511f1972f13ae82102214'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:50:03,352 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:50:03,352 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:50:03,352 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:50:03,352 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:50:03,352 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:50:03,353 - httpcore.connection - DEBUG - close.started 2026-03-23 17:50:03,353 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:50:03", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:50:02"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:50:02"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:50:03"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:51:03,447 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:51:03,448 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:51:03,489 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:51:03,489 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:51:03,513 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:51:03,514 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:51:03,514 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:51:03,514 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:51:03,514 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:51:03,514 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:51:03,581 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:51:03 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQoYVAkuFw0zzzR06zzEjX2E0jYYz300059R0011Qh'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'6c60be70269511f18d55afa24e73e4b1'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:51:03,582 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:51:03,582 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:51:03,582 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:51:03,582 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:51:03,582 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:51:03,582 - httpcore.connection - DEBUG - close.started 2026-03-23 17:51:03,583 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:51:03,749 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:51:03,770 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:51:03,771 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:51:03,795 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:51:03,795 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:51:03,795 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:51:03,795 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:51:03,795 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:51:03,795 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:51:03,835 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:51:03 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQoYWF9sFw0zzzR06zzEjX2E0jYYz30007Gs0008Po'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c8c725e269511f18c3c8f85fe03d328'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:51:03,835 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:51:03,835 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:51:03,835 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:51:03,835 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:51:03,835 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:51:03,836 - httpcore.connection - DEBUG - close.started 2026-03-23 17:51:03,836 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:51:04,052 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:51:04,072 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:51:04,072 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:51:04,099 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:51:04,099 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:51:04,099 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:51:04,099 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:51:04,099 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:51:04,099 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:51:04,136 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:51:04 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQoYXPr_Fw0zzzR06zzEiXqE0jYYz10004Qt0008_h'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6cba68e4269511f18dc63becdf2dce4b'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:51:04,136 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:51:04,136 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:51:04,136 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:51:04,137 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:51:04,137 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:51:04,137 - httpcore.connection - DEBUG - close.started 2026-03-23 17:51:04,137 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:51:04,354 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:51:04,401 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:51:04,416 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:51:04,445 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:51:04,445 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:51:04,445 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:51:04,445 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:51:04,445 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:51:04,445 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:51:04,477 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:51:04 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQoYYi85Fw0zzzR06zzEiXqE0jYYz10004X60008Q1'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6ceea71c269511f198a3cf43dff92dd4'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:51:04,477 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:51:04,477 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:51:04,477 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:51:04,478 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:51:04,478 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:51:04,478 - httpcore.connection - DEBUG - close.started 2026-03-23 17:51:04,478 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:51:04", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:51:03"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:51:04"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:51:04"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:52:04,536 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:52:04,537 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:52:04,579 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:52:04,579 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:52:04,603 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:52:04,604 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:52:04,604 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:52:04,604 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:52:04,604 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:52:04,604 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:52:04,670 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:52:04 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQoa8CtsFw0zzzR06zzEjX2E0jYYz300059R0012BF'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'90ca0ee2269511f1b5230bdad86db6e0'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:52:04,670 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:52:04,670 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:52:04,671 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:52:04,671 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:52:04,671 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:52:04,671 - httpcore.connection - DEBUG - close.started 2026-03-23 17:52:04,671 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:52:04,837 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:52:04,856 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:52:04,856 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:52:04,879 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:52:04,880 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:52:04,880 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:52:04,880 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:52:04,880 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:52:04,880 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:52:04,906 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:52:04 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQoa9FSeFw0zzzR06zzEjX2E0jYYz30007Kb000DgP'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'90f377d2269511f1a8bdf34fd764a379'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:52:04,907 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:52:04,907 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:52:04,907 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:52:04,907 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:52:04,907 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:52:04,907 - httpcore.connection - DEBUG - close.started 2026-03-23 17:52:04,907 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:52:05,139 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:52:05,159 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:52:05,159 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:52:05,186 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:52:05,186 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:52:05,186 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:52:05,186 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:52:05,186 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:52:05,186 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:52:05,221 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:52:05 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQoaAQW2Fw0zzzR06zzEjX2E0jYYz30007Gs000FFF'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'91236230269511f1ba9c6356ed97c282'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:52:05,221 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:52:05,221 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:52:05,221 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:52:05,221 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:52:05,221 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:52:05,222 - httpcore.connection - DEBUG - close.started 2026-03-23 17:52:05,222 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:52:05,440 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:52:05,463 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:52:05,463 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:52:05,489 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:52:05,490 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:52:05,490 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:52:05,490 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:52:05,490 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:52:05,490 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:52:05,526 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:52:05 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQoaB_AEFw0zzzR06zzEjX2E0jYYz30007Gs000FHr'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'91521e40269511f1a8e563f52fc7b13d'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:52:05,527 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:52:05,527 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:52:05,527 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:52:05,527 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:52:05,527 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:52:05,527 - httpcore.connection - DEBUG - close.started 2026-03-23 17:52:05,527 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:52:05", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:52:04"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:52:05"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:52:05"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:53:05,622 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:53:05,622 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:53:05,666 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:53:05,666 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:53:05,690 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:53:05,690 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:53:05,690 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:53:05,690 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:53:05,690 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:53:05,690 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:53:05,785 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:53:05 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQodlDWeFw0zzzR06zzEjX2E0jYYz300059L000CI5'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'b536ddfa269511f1b606fff4fcd8b485'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:53:05,785 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:53:05,785 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:53:05,785 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:53:05,785 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:53:05,786 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:53:05,786 - httpcore.connection - DEBUG - close.started 2026-03-23 17:53:05,786 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:53:05,923 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:53:05,944 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:53:05,944 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:53:06,004 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:53:06,004 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:53:06,004 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:53:06,004 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:53:06,004 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:53:06,004 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:53:06,042 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:53:06 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQodmR_mFw0zzzR06zzEiXqE0jYYz10004My000NtJ'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b563f286269511f196016f6d259e04cb'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:53:06,042 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:53:06,042 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:53:06,042 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:53:06,042 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:53:06,043 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:53:06,043 - httpcore.connection - DEBUG - close.started 2026-03-23 17:53:06,043 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:53:06,225 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:53:06,248 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:53:06,248 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:53:06,277 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:53:06,277 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:53:06,277 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:53:06,277 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:53:06,277 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:53:06,277 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:53:06,313 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:53:06 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQodnUTJFw0zzzR06zzEjX2E0jYYz30007Gs000M3l'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b58d75a2269511f1ae0ff32c916a2797'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:53:06,314 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:53:06,314 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:53:06,314 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:53:06,314 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:53:06,314 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:53:06,314 - httpcore.connection - DEBUG - close.started 2026-03-23 17:53:06,314 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:53:06,525 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:53:06,545 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:53:06,545 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:53:06,569 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:53:06,570 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:53:06,570 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:53:06,570 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:53:06,570 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:53:06,570 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:53:06,597 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 08:53:06 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQodo_KCFw0zzzR06zzEjX2E0jYYz30007nb000APb'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 17:53:06,598 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 17:53:06,598 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:53:06,598 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:53:06,598 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:53:06,598 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:53:07,205 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:53:07,227 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:53:07,227 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:53:07,261 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:53:07,261 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:53:07,262 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:53:07,262 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:53:07,262 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:53:07,262 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:53:07,313 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:53:07 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQodrEL6Fw0zzzR06zzEjX2E0jYYz30007nb000AUd'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b625ea62269511f1b309c3725d863fbe'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:53:07,313 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:53:07,313 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:53:07,313 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:53:07,313 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:53:07,313 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:53:07,314 - httpcore.connection - DEBUG - close.started 2026-03-23 17:53:07,314 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:53:07", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:53:06"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:53:06"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:53:07"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:54:07,408 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:54:07,409 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:54:07,451 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:54:07,452 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:54:07,478 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:54:07,478 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:54:07,478 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:54:07,478 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:54:07,478 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:54:07,478 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:54:07,543 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:54:07 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQohSuzuFw0zzzR06zzEiXqE0jYYz10004Ne0016fX'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'da06f96c269511f1b6f153d4c95d1b59'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:54:07,543 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:54:07,543 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:54:07,543 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:54:07,544 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:54:07,544 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:54:07,544 - httpcore.connection - DEBUG - close.started 2026-03-23 17:54:07,544 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:54:07,710 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:54:07,733 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:54:07,733 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:54:07,757 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:54:07,757 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:54:07,758 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:54:07,758 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:54:07,758 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:54:07,758 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:54:07,786 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:54:07 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQohTzP2Fw0zzzR06zzEiXqE0jYYz10001Tv001PfI'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da3158e2269511f19aaa7b6bc6495564'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:54:07,786 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:54:07,786 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:54:07,786 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:54:07,786 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:54:07,786 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:54:07,786 - httpcore.connection - DEBUG - close.started 2026-03-23 17:54:07,786 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:54:08,010 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:54:08,035 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:54:08,035 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:54:08,058 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:54:08,059 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:54:08,059 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:54:08,059 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:54:08,059 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:54:08,059 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:54:08,089 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:54:08 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQohV9NrFw0zzzR06zzEjX2E0jYYz30007Gs000Snu'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da5fb75a269511f1b9283770f619338d'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:54:08,090 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:54:08,090 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:54:08,090 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:54:08,090 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:54:08,090 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:54:08,090 - httpcore.connection - DEBUG - close.started 2026-03-23 17:54:08,090 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:54:08,312 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:54:08,332 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:54:08,332 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:54:08,361 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:54:08,361 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:54:08,361 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:54:08,361 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:54:08,361 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:54:08,361 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:54:08,396 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:54:08 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQohWJMiFw0zzzR06zzEiXqE0jYYz10004My000V82'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da8e54b6269511f1ac83d72ee48bf50f'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:54:08,396 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:54:08,396 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:54:08,396 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:54:08,396 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:54:08,397 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:54:08,397 - httpcore.connection - DEBUG - close.started 2026-03-23 17:54:08,397 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:54:08", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:54:07"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:54:08"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:54:08"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:55:08,488 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:55:08,489 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:55:08,531 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:55:08,532 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:55:08,555 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:55:08,556 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:55:08,556 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:55:08,556 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:55:08,556 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:55:08,556 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:55:08,622 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:55:08 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQol5uzFFw0zzzR06zzEiXqE0jYYz10004Ne0017FM'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'fe6ede14269511f1b7e6638e30be3470'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:55:08,622 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:55:08,622 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:55:08,622 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:55:08,622 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:55:08,622 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:55:08,622 - httpcore.connection - DEBUG - close.started 2026-03-23 17:55:08,623 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:55:08,790 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:55:08,812 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:55:08,812 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:55:08,837 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:55:08,838 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:55:08,838 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:55:08,838 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:55:08,838 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:55:08,838 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:55:08,868 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:55:08 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQol6zNZFw0zzzR06zzEiXqE0jYYz10004My000_uj'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fe99d556269511f1bf16e3cff1128fc0'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:55:08,869 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:55:08,869 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:55:08,869 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:55:08,869 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:55:08,869 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:55:08,869 - httpcore.connection - DEBUG - close.started 2026-03-23 17:55:08,869 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:55:09,091 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:55:09,112 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:55:09,112 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:55:09,140 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:55:09,140 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:55:09,140 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:55:09,140 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:55:09,140 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:55:09,140 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:55:09,212 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:55:09 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQol89u2Fw0zzzR06zzEjX2E0jYYz30007Kb000YHa'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fece5056269511f1aecdc31ab5e66995'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:55:09,212 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:55:09,213 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:55:09,213 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:55:09,213 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:55:09,213 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:55:09,213 - httpcore.connection - DEBUG - close.started 2026-03-23 17:55:09,213 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:55:09,391 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:55:09,412 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:55:09,412 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:55:09,442 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:55:09,442 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:55:09,442 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:55:09,442 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:55:09,442 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:55:09,442 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:55:09,474 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:55:09 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQol9JmTFw0zzzR06zzEiXqE0jYYz10004X6000^61'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fef61118269511f197f8bf274fa8af54'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:55:09,475 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:55:09,475 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:55:09,475 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:55:09,475 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:55:09,475 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:55:09,475 - httpcore.connection - DEBUG - close.started 2026-03-23 17:55:09,475 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:55:09", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:55:08"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:55:09"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:55:09"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:56:09,570 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:56:09,570 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:56:09,614 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:56:09,614 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:56:09,638 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:56:09,639 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:56:09,639 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:56:09,639 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:56:09,639 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:56:09,639 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:56:09,713 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:56:09 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQooiwybFw0zzzR06zzEiXqE0jYYz10004Ne0017ko'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'22d89952269611f1ad0c3bb9a2889881'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:56:09,713 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:56:09,713 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:56:09,714 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:56:09,714 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:56:09,714 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:56:09,714 - httpcore.connection - DEBUG - close.started 2026-03-23 17:56:09,714 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:56:09,871 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:56:09,891 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:56:09,891 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:56:09,917 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:56:09,918 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:56:09,918 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:56:09,918 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:56:09,918 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:56:09,918 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:56:09,953 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:56:09 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQoojzf8Fw0zzzR06zzEjX2E0jYYz30007Kb000dAl'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'23029cde269611f1b67fb3ef7b1726c9'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:56:09,953 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:56:09,954 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:56:09,954 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:56:09,954 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:56:09,954 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:56:09,954 - httpcore.connection - DEBUG - close.started 2026-03-23 17:56:09,954 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:56:10,172 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:56:10,191 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:56:10,191 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:56:10,216 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:56:10,216 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:56:10,217 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:56:10,217 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:56:10,217 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:56:10,217 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:56:10,250 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:56:10 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQool9L2Fw0zzzR06zzEiXqE0jYYz10005wT00094t'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'232fe0fe269611f1ab7a932b76d88b34'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:56:10,250 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:56:10,250 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:56:10,250 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:56:10,250 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:56:10,250 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:56:10,251 - httpcore.connection - DEBUG - close.started 2026-03-23 17:56:10,251 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:56:10,472 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:56:10,493 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:56:10,493 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:56:10,520 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:56:10,521 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:56:10,521 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:56:10,521 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:56:10,521 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:56:10,521 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:56:10,553 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:56:10 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQoomJuuFw0zzzR06zzEiXqE0jYYz10004Qt000cpE'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'235e2b80269611f18146f77fff190790'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:56:10,553 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:56:10,554 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:56:10,554 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:56:10,554 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:56:10,554 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:56:10,554 - httpcore.connection - DEBUG - close.started 2026-03-23 17:56:10,554 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:56:10", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:56:09"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:56:10"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:56:10"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:57:10,652 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:57:10,652 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:57:10,697 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:57:10,697 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:57:10,720 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:57:10,720 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:57:10,721 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:57:10,721 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:57:10,721 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:57:10,721 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:57:10,815 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:57:10 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQosNx1ZFw0zzzR06zzEiXqE0jYYz10004NG000EUN'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'4743f9a8269611f1b9b36b99c05971c6'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:57:10,816 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:57:10,816 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:57:10,816 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:57:10,816 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:57:10,816 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:57:10,816 - httpcore.connection - DEBUG - close.started 2026-03-23 17:57:10,816 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:57:10,953 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:57:10,976 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:57:10,976 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:57:11,001 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:57:11,001 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:57:11,001 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:57:11,001 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:57:11,001 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:57:11,001 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:57:11,035 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:57:11 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQosP0hvFw0zzzR06zzEjX2E0jYYz30000g0000GJ3'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'476b161e269611f1bde5eb2916b58a12'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:57:11,035 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:57:11,035 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:57:11,035 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:57:11,035 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:57:11,035 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:57:11,036 - httpcore.connection - DEBUG - close.started 2026-03-23 17:57:11,036 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:57:11,254 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:57:11,274 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:57:11,274 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:57:11,299 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:57:11,299 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:57:11,300 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:57:11,300 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:57:11,300 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:57:11,300 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:57:11,338 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:57:11 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQosQATWFw0zzzR06zzEiXqE0jYYz10004X6000liC'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'4799340e269611f18d92db7a0aa25c9c'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:57:11,338 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:57:11,338 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:57:11,338 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:57:11,338 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:57:11,338 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:57:11,339 - httpcore.connection - DEBUG - close.started 2026-03-23 17:57:11,339 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:57:11,555 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:57:11,576 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:57:11,577 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:57:11,601 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:57:11,601 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:57:11,601 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:57:11,601 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:57:11,601 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:57:11,602 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:57:11,623 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 08:57:11 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQosRILYFw0zzzR06zzEiXqE0jYYz10004Qt000i5x'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 17:57:11,623 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 17:57:11,623 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:57:11,623 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:57:11,623 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:57:11,624 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:57:12,231 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:57:12,252 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:57:12,252 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:57:12,275 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:57:12,275 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:57:12,275 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:57:12,275 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:57:12,275 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:57:12,275 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:57:12,319 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:57:12 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQosTrd7Fw0zzzR06zzEjX2E0jYYz30007Kb000kMt'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'482edf18269611f1a2ea835bdf17f0d1'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:57:12,319 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:57:12,319 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:57:12,319 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:57:12,319 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:57:12,319 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:57:12,320 - httpcore.connection - DEBUG - close.started 2026-03-23 17:57:12,320 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:57:12", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:57:11"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:57:11"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:57:12"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:58:12,415 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:58:12,415 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:58:12,481 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:58:12,494 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:58:12,517 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:58:12,517 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:58:12,517 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:58:12,517 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:58:12,517 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:58:12,517 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:58:12,595 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:58:12 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQow3fCkFw0zzzR06zzEjX2E0jYYz300059J000lCG'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'6c15a7b8269611f194401f558ea95cf8'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:58:12,595 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:58:12,595 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:58:12,596 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:58:12,596 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:58:12,596 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:58:12,596 - httpcore.connection - DEBUG - close.started 2026-03-23 17:58:12,596 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:58:12,716 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:58:12,737 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:58:12,737 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:58:12,762 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:58:12,762 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:58:12,762 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:58:12,762 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:58:12,762 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:58:12,762 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:58:12,793 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:58:12 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQow4bpMFw0zzzR06zzEjX2E0jYYz30000g0000NZQ'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c3aa63a269611f194cd5348416befab'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:58:12,794 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:58:12,794 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:58:12,794 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:58:12,794 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:58:12,794 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:58:12,794 - httpcore.connection - DEBUG - close.started 2026-03-23 17:58:12,794 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:58:13,016 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:58:13,038 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:58:13,038 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:58:13,064 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:58:13,064 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:58:13,064 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:58:13,064 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:58:13,064 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:58:13,064 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:58:13,095 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:58:13 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQow5klJFw0zzzR06zzEjX2E0jYYz30007Kb000rD_'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c68a120269611f189c7bf1001907a86'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:58:13,095 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:58:13,095 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:58:13,095 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:58:13,095 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:58:13,095 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:58:13,096 - httpcore.connection - DEBUG - close.started 2026-03-23 17:58:13,096 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:58:13,318 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:58:13,338 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:58:13,338 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:58:13,362 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:58:13,362 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:58:13,363 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:58:13,363 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:58:13,363 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:58:13,363 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:58:13,415 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:58:13 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQow6x5AFw0zzzR06zzEjX2E0jYYz30000ZX000LDf'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c99aa7c269611f19d5377e3be6105c5'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:58:13,415 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:58:13,416 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:58:13,416 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:58:13,416 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:58:13,416 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:58:13,416 - httpcore.connection - DEBUG - close.started 2026-03-23 17:58:13,416 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:58:13", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:58:12"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:58:13"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:58:13"}}]} {"sent": 0, "last_key": null} 2026-03-23 17:59:13,511 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 17:59:13,511 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:59:13,553 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:59:13,554 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 17:59:13,580 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:59:13,580 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:59:13,580 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:59:13,580 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:59:13,580 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:59:13,580 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:59:13,668 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:59:13 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQozgcTXFw0zzzR06zzEiXqE0jYYz10004Ne0019TU'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'907bd546269611f1aff4eb5ba45ca1fc'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:59:13,669 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 17:59:13,669 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:59:13,669 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:59:13,669 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:59:13,669 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:59:13,669 - httpcore.connection - DEBUG - close.started 2026-03-23 17:59:13,669 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:59:13,812 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:59:13,835 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:59:13,836 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:59:13,857 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:59:13,857 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:59:13,857 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:59:13,857 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:59:13,858 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:59:13,858 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:59:13,895 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:59:13 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQozhg7tFw0zzzR06zzEiXqE0jYYz10005wT000Tc2'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'90a5eca0269611f1a64657e944235f10'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:59:13,895 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 17:59:13,895 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:59:13,895 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:59:13,895 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:59:13,895 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:59:13,896 - httpcore.connection - DEBUG - close.started 2026-03-23 17:59:13,896 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:59:14,113 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:59:14,135 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:59:14,135 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:59:14,155 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:59:14,155 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:59:14,155 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:59:14,155 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:59:14,155 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:59:14,155 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:59:14,182 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:59:14 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQozimvnFw0zzzR06zzEjX2E0jYYz30000ZX000R^N'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'90d1c370269611f1b041bb13815aeca5'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:59:14,182 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 17:59:14,182 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:59:14,182 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:59:14,182 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:59:14,182 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:59:14,182 - httpcore.connection - DEBUG - close.started 2026-03-23 17:59:14,182 - httpcore.connection - DEBUG - close.complete 2026-03-23 17:59:14,415 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 17:59:14,435 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 17:59:14,435 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 17:59:14,462 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 17:59:14,462 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 17:59:14,462 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 17:59:14,462 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 17:59:14,462 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 17:59:14,462 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 17:59:14,492 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 08:59:14 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQozjz51Fw0zzzR06zzEjX2E0jYYz30001dm0005kk'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'91013448269611f1bd982f6dad0614fb'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 17:59:14,492 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 17:59:14,492 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 17:59:14,493 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 17:59:14,493 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 17:59:14,493 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 17:59:14,493 - httpcore.connection - DEBUG - close.started 2026-03-23 17:59:14,493 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 17:59:14", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 17:59:13"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 17:59:14"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 17:59:14"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:00:14,588 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:00:14,589 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:00:14,637 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:00:14,637 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:00:14,662 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:00:14,662 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:00:14,663 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:00:14,663 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:00:14,663 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:00:14,663 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:00:14,743 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:00:14 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQp3LcAdFw0zzzR06zzEjX2E0jYYz300059L000CnU'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'b4e3713c269611f1aaed838cc5362bbb'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:00:14,744 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:00:14,744 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:00:14,744 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:00:14,744 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:00:14,744 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:00:14,744 - httpcore.connection - DEBUG - close.started 2026-03-23 18:00:14,744 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:00:14,891 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:00:14,917 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:00:14,917 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:00:14,973 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:00:14,973 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:00:14,973 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:00:14,973 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:00:14,974 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:00:14,974 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:00:15,023 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:00:15 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQp3MoVkFw0zzzR06zzEiXqE0jYYz10006zZ000AM0'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b5157be6269611f1914f7b3b69125c40'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:00:15,023 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:00:15,023 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:00:15,024 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:00:15,024 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:00:15,024 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:00:15,024 - httpcore.connection - DEBUG - close.started 2026-03-23 18:00:15,024 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:00:15,191 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:00:15,214 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:00:15,214 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:00:15,237 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:00:15,237 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:00:15,238 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:00:15,238 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:00:15,238 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:00:15,238 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:00:15,288 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:00:15 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQp3No^SFw0zzzR06zzEjX2E0jYYz30001o_00063u'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b53d6502269611f1be6a230124535ccd'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:00:15,288 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:00:15,288 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:00:15,288 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:00:15,288 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:00:15,288 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:00:15,289 - httpcore.connection - DEBUG - close.started 2026-03-23 18:00:15,289 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:00:15,492 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:00:15,512 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:00:15,512 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:00:15,583 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:00:15,583 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:00:15,583 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:00:15,583 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:00:15,583 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:00:15,583 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:00:15,730 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 09:00:15 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQp3PA5gFw0zzzR06zzEiXqE0jYYz10007Q^0001SU'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 18:00:15,730 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 18:00:15,731 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:00:15,731 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:00:15,731 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:00:15,731 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:00:16,338 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:00:16,361 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:00:16,361 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:00:16,386 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:00:16,387 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:00:16,387 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:00:16,387 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:00:16,387 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:00:16,387 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:00:16,424 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:00:16 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQp3SD94Fw0zzzR06zzEjX2E0jYYz30001o_0006BR'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b5eb635a269611f1be2733ad498ffdb4'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:00:16,425 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:00:16,425 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:00:16,425 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:00:16,425 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:00:16,425 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:00:16,425 - httpcore.connection - DEBUG - close.started 2026-03-23 18:00:16,425 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:00:16", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:00:15"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:00:15"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:00:16"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:01:16,521 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:01:16,521 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:01:16,567 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:01:16,567 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:01:16,592 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:01:16,592 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:01:16,592 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:01:16,592 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:01:16,592 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:01:16,592 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:01:16,662 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:01:16 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQp71sVeFw0zzzR06zzEjX2E0jYYz300059L000Cvi'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'd9cd7e0c269611f1ad8b6be21540cdf2'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:01:16,662 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:01:16,662 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:01:16,662 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:01:16,662 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:01:16,663 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:01:16,663 - httpcore.connection - DEBUG - close.started 2026-03-23 18:01:16,663 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:01:16,822 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:01:16,841 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:01:16,842 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:01:16,865 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:01:16,866 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:01:16,866 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:01:16,866 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:01:16,866 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:01:16,866 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:01:16,904 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:01:16 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQp72vX3Fw0zzzR06zzEjX2E0jYYz30002OI0003Yy'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd9f7d300269611f1be29ebf20069fe80'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:01:16,904 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:01:16,904 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:01:16,905 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:01:16,905 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:01:16,905 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:01:16,905 - httpcore.connection - DEBUG - close.started 2026-03-23 18:01:16,905 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:01:17,123 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:01:17,144 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:01:17,144 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:01:17,168 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:01:17,169 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:01:17,169 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:01:17,169 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:01:17,169 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:01:17,169 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:01:17,201 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:01:17 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQp745SUFw0zzzR06zzEjX2E0jYYz30000ZX000d3I'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da2538a4269611f1b7f82f2a28fca3cc'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:01:17,202 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:01:17,202 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:01:17,202 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:01:17,202 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:01:17,202 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:01:17,202 - httpcore.connection - DEBUG - close.started 2026-03-23 18:01:17,202 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:01:17,424 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:01:17,447 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:01:17,447 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:01:17,472 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:01:17,472 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:01:17,472 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:01:17,472 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:01:17,473 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:01:17,473 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:01:17,512 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:01:17 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQp75EjiFw0zzzR06zzEiXqE0jYYz10005wT000eCF'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da540882269611f1bfff4f372ee01eca'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:01:17,512 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:01:17,512 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:01:17,512 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:01:17,512 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:01:17,512 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:01:17,513 - httpcore.connection - DEBUG - close.started 2026-03-23 18:01:17,513 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:01:17", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:01:16"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:01:17"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:01:17"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:02:17,607 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:02:17,608 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:02:17,651 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:02:17,651 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:02:17,678 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:02:17,678 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:02:17,679 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:02:17,679 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:02:17,679 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:02:17,679 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:02:17,746 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:02:17 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpAetD2Fw0zzzR06zzEjX2E0jYYz300059R0017JY'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'fe360a2a269611f1acf1d337cabcfad1'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:02:17,746 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:02:17,746 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:02:17,747 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:02:17,747 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:02:17,747 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:02:17,747 - httpcore.connection - DEBUG - close.started 2026-03-23 18:02:17,747 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:02:17,909 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:02:17,934 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:02:17,934 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:02:17,960 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:02:17,960 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:02:17,960 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:02:17,960 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:02:17,960 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:02:17,960 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:02:17,996 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:02:17 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpAfya^Fw0zzzR06zzEjX2E0jYYz30007Kb001GIZ'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fe619bae269611f1a989b30a092f5773'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:02:17,996 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:02:17,996 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:02:17,996 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:02:17,996 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:02:17,996 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:02:17,996 - httpcore.connection - DEBUG - close.started 2026-03-23 18:02:17,996 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:02:18,211 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:02:18,232 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:02:18,233 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:02:18,257 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:02:18,257 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:02:18,257 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:02:18,257 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:02:18,257 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:02:18,257 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:02:18,293 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:02:18 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpAh7BvFw0zzzR06zzEiXqE0jYYz10007gd0008gY'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fe8ecffc269611f1b4c013ea4b979410'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:02:18,294 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:02:18,294 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:02:18,294 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:02:18,294 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:02:18,294 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:02:18,294 - httpcore.connection - DEBUG - close.started 2026-03-23 18:02:18,294 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:02:18,511 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:02:18,540 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:02:18,540 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:02:18,566 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:02:18,566 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:02:18,566 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:02:18,566 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:02:18,567 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:02:18,567 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:02:18,607 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:02:18 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpAiIxFFw0zzzR06zzEjX2E0jYYz30002to00010_'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'febf03d4269611f1b869ff3ae5221ec1'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:02:18,608 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:02:18,608 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:02:18,608 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:02:18,608 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:02:18,608 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:02:18,608 - httpcore.connection - DEBUG - close.started 2026-03-23 18:02:18,608 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:02:18", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:02:17"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:02:18"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:02:18"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:03:18,703 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:03:18,703 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:03:18,744 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:03:18,744 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:03:18,767 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:03:18,767 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:03:18,767 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:03:18,767 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:03:18,767 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:03:18,767 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:03:18,837 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:03:18 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpEJvR5Fw0zzzR06zzEiXqE0jYYz10004Ne001C2n'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'22a000d2269711f186f9531c7fc68a88'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:03:18,837 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:03:18,837 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:03:18,837 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:03:18,837 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:03:18,837 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:03:18,838 - httpcore.connection - DEBUG - close.started 2026-03-23 18:03:18,838 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:03:19,005 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:03:19,026 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:03:19,026 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:03:19,053 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:03:19,053 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:03:19,054 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:03:19,054 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:03:19,054 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:03:19,054 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:03:19,093 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:03:19 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpEL29tFw0zzzR06zzEiXqE0jYYz10000YE00029K'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'22cc3418269711f1afd0cf2a2a78fe74'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:03:19,093 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:03:19,093 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:03:19,093 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:03:19,093 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:03:19,093 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:03:19,093 - httpcore.connection - DEBUG - close.started 2026-03-23 18:03:19,094 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:03:19,307 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:03:19,327 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:03:19,327 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:03:19,355 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:03:19,355 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:03:19,356 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:03:19,356 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:03:19,356 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:03:19,356 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:03:19,393 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:03:19 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpEMAuiFw0zzzR06zzEjX2E0jYYz30002og000A5_'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'22fa2f3a269711f19c202ba4d3762074'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:03:19,394 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:03:19,394 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:03:19,394 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:03:19,394 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:03:19,394 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:03:19,394 - httpcore.connection - DEBUG - close.started 2026-03-23 18:03:19,394 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:03:19,609 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:03:19,629 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:03:19,629 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:03:19,656 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:03:19,657 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:03:19,657 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:03:19,657 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:03:19,657 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:03:19,657 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:03:19,696 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 09:03:19 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQpENKt2Fw0zzzR06zzEjX2E0jYYz30002to0006TP'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 18:03:19,697 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 18:03:19,697 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:03:19,697 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:03:19,697 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:03:19,697 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:03:20,304 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:03:20,325 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:03:20,325 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:03:20,349 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:03:20,349 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:03:20,349 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:03:20,349 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:03:20,349 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:03:20,349 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:03:20,410 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:03:20 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpEPyVjFw0zzzR06zzEiXqE0jYYz10000B60008be'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'239501e0269711f1962ccf0d015dd0fd'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:03:20,411 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:03:20,411 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:03:20,411 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:03:20,411 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:03:20,411 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:03:20,411 - httpcore.connection - DEBUG - close.started 2026-03-23 18:03:20,411 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:03:20", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:03:19"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:03:19"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:03:20"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:04:20,506 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:04:20,507 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:04:20,550 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:04:20,550 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:04:20,575 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:04:20,576 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:04:20,576 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:04:20,576 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:04:20,576 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:04:20,576 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:04:20,671 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:04:20 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpHzl5cFw0zzzR06zzEiXqE0jYYz10004Ne001Ccw'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'477ac072269711f1925fb7b32112c9b4'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:04:20,671 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:04:20,671 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:04:20,672 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:04:20,672 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:04:20,672 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:04:20,672 - httpcore.connection - DEBUG - close.started 2026-03-23 18:04:20,672 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:04:20,808 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:04:20,847 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:04:20,860 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:04:20,886 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:04:20,886 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:04:20,886 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:04:20,886 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:04:20,886 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:04:20,886 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:04:20,935 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:04:20 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpI0ttpFw0zzzR06zzEiXqE0jYYz10000ZQ0008Z_'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'47a859b0269711f1bb3ddb87a6166f45'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:04:20,935 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:04:20,935 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:04:20,935 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:04:20,935 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:04:20,936 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:04:20,936 - httpcore.connection - DEBUG - close.started 2026-03-23 18:04:20,936 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:04:21,109 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:04:21,129 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:04:21,129 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:04:21,156 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:04:21,156 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:04:21,156 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:04:21,156 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:04:21,156 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:04:21,156 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:04:21,197 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:04:21 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpI1vUTFw0zzzR06zzEiXqE0jYYz10005wT000y8s'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'47d04984269711f1a800bfc305a08fde'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:04:21,197 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:04:21,197 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:04:21,197 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:04:21,197 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:04:21,197 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:04:21,197 - httpcore.connection - DEBUG - close.started 2026-03-23 18:04:21,197 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:04:21,411 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:04:21,431 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:04:21,431 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:04:21,459 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:04:21,459 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:04:21,459 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:04:21,459 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:04:21,459 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:04:21,459 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:04:21,503 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:04:21 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpI35j0Fw0zzzR06zzEjX2E0jYYz30002v2000EOP'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'47ff356e269711f1bbfbff4df3c79148'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:04:21,503 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:04:21,503 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:04:21,503 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:04:21,503 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:04:21,503 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:04:21,504 - httpcore.connection - DEBUG - close.started 2026-03-23 18:04:21,504 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:04:21", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:04:20"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:04:21"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:04:21"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:05:21,598 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:05:21,599 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:05:21,641 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:05:21,641 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:05:21,665 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:05:21,665 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:05:21,666 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:05:21,666 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:05:21,666 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:05:21,666 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:05:21,735 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:05:21 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpLcjzTFw0zzzR06zzEjX2E0jYYz300059J000ne^'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'6be0823a269711f1b10aef0cca9b1bcb'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:05:21,736 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:05:21,736 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:05:21,736 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:05:21,736 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:05:21,736 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:05:21,736 - httpcore.connection - DEBUG - close.started 2026-03-23 18:05:21,736 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:05:21,899 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:05:21,921 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:05:21,921 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:05:21,947 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:05:21,947 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:05:21,947 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:05:21,947 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:05:21,947 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:05:21,947 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:05:21,986 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:05:21 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpLdqE8Fw0zzzR06zzEiXqE0jYYz100013Y0002J1'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c0c688c269711f192850f5b5d0f9656'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:05:21,987 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:05:21,987 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:05:21,987 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:05:21,987 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:05:21,987 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:05:21,987 - httpcore.connection - DEBUG - close.started 2026-03-23 18:05:21,987 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:05:22,201 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:05:22,223 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:05:22,223 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:05:22,281 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:05:22,281 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:05:22,281 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:05:22,281 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:05:22,281 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:05:22,281 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:05:22,318 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:05:22 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpLf6TRFw0zzzR06zzEjX2E0jYYz30007Kb001ZYD'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c3f030a269711f1bd13579aadfd053d'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:05:22,319 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:05:22,319 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:05:22,319 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:05:22,319 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:05:22,319 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:05:22,319 - httpcore.connection - DEBUG - close.started 2026-03-23 18:05:22,319 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:05:22,502 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:05:22,522 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:05:22,522 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:05:22,545 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:05:22,546 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:05:22,546 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:05:22,546 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:05:22,546 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:05:22,546 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:05:22,581 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:05:22 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpLg7GMFw0zzzR06zzEiXqE0jYYz10000j3000AiZ'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c674d9c269711f1bf15037cbd0720a6'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:05:22,581 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:05:22,581 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:05:22,581 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:05:22,581 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:05:22,581 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:05:22,582 - httpcore.connection - DEBUG - close.started 2026-03-23 18:05:22,582 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:05:22", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:05:21"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:05:22"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:05:22"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:06:22,679 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:06:22,679 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:06:22,719 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:06:22,719 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:06:22,747 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:06:22,747 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:06:22,748 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:06:22,748 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:06:22,748 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:06:22,748 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:06:22,825 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:06:22 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpPHls0Fw0zzzR06zzEiXqE0jYYz10004Ne001DvX'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'904a2838269711f19423a78c0513bd2f'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:06:22,826 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:06:22,826 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:06:22,826 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:06:22,826 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:06:22,826 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:06:22,826 - httpcore.connection - DEBUG - close.started 2026-03-23 18:06:22,826 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:06:22,983 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:06:23,003 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:06:23,003 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:06:23,029 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:06:23,029 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:06:23,029 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:06:23,029 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:06:23,029 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:06:23,029 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:06:23,059 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:06:23 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpPIpfxFw0zzzR06zzEiXqE0jYYz10001Fg0004jj'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'90736586269711f1a84033451afe30e2'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:06:23,059 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:06:23,059 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:06:23,060 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:06:23,060 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:06:23,060 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:06:23,060 - httpcore.connection - DEBUG - close.started 2026-03-23 18:06:23,060 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:06:23,281 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:06:23,301 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:06:23,301 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:06:23,326 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:06:23,327 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:06:23,327 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:06:23,327 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:06:23,327 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:06:23,327 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:06:23,362 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:06:23 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpPJyJDFw0zzzR06zzEiXqE0jYYz10000j3000HQ^'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'90a14a8c269711f1bb0eeb5283203a4f'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:06:23,362 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:06:23,362 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:06:23,362 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:06:23,362 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:06:23,362 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:06:23,362 - httpcore.connection - DEBUG - close.started 2026-03-23 18:06:23,362 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:06:23,582 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:06:23,602 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:06:23,602 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:06:23,630 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:06:23,630 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:06:23,630 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:06:23,630 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:06:23,630 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:06:23,630 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:06:23,662 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 09:06:23 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQpPL8soFw0zzzR06zzEiXqE0jYYz10000j3000HSe'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 18:06:23,663 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 18:06:23,663 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:06:23,663 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:06:23,663 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:06:23,663 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:06:24,271 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:06:24,293 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:06:24,293 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:06:24,320 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:06:24,320 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:06:24,320 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:06:24,320 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:06:24,320 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:06:24,320 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:06:24,352 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:06:24 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpPNkxTFw0zzzR06zzEiXqE0jYYz10001X80000PA'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'913895ea269711f1bc2bbbb7104bc43d'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:06:24,352 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:06:24,352 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:06:24,352 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:06:24,352 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:06:24,352 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:06:24,352 - httpcore.connection - DEBUG - close.started 2026-03-23 18:06:24,352 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:06:24", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:06:23"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:06:23"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:06:24"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:07:24,450 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:07:24,451 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:07:24,501 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:07:24,501 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:07:24,525 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:07:24,525 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:07:24,526 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:07:24,526 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:07:24,526 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:07:24,526 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:07:24,593 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:07:24 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpSxRKSFw0zzzR06zzEjX2E0jYYz300059J000oJb'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'b51b259a269711f1b2d607c50b062a8a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:07:24,593 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:07:24,593 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:07:24,593 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:07:24,593 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:07:24,593 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:07:24,593 - httpcore.connection - DEBUG - close.started 2026-03-23 18:07:24,594 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:07:24,754 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:07:24,779 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:07:24,779 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:07:24,805 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:07:24,805 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:07:24,806 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:07:24,806 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:07:24,806 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:07:24,806 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:07:24,835 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:07:24 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpSyVg^Fw0zzzR06zzEiXqE0jYYz10001X80006oR'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b5458970269711f1985707bf6ba1bf1b'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:07:24,835 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:07:24,835 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:07:24,835 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:07:24,835 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:07:24,835 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:07:24,836 - httpcore.connection - DEBUG - close.started 2026-03-23 18:07:24,836 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:07:25,052 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:07:25,072 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:07:25,072 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:07:25,097 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:07:25,097 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:07:25,097 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:07:25,097 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:07:25,097 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:07:25,097 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:07:25,152 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:07:25 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpSzauVFw0zzzR06zzEiXqE0jYYz10001qb00008b'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b575f0ce269711f19bd437487fed991d'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:07:25,153 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:07:25,153 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:07:25,153 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:07:25,153 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:07:25,153 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:07:25,153 - httpcore.connection - DEBUG - close.started 2026-03-23 18:07:25,153 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:07:25,353 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:07:25,374 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:07:25,374 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:07:25,398 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:07:25,398 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:07:25,398 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:07:25,398 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:07:25,398 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:07:25,398 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:07:25,428 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:07:25 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpT0jvRFw0zzzR06zzEjX2E0jYYz30004BC000CPo'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b5a02a6a269711f1b2830fcf8b94cf7b'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:07:25,428 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:07:25,428 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:07:25,428 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:07:25,428 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:07:25,429 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:07:25,429 - httpcore.connection - DEBUG - close.started 2026-03-23 18:07:25,429 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:07:25", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:07:24"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:07:25"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:07:25"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:08:25,524 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:08:25,525 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:08:25,566 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:08:25,566 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:08:25,590 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:08:25,591 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:08:25,591 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:08:25,591 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:08:25,591 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:08:25,591 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:08:25,661 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:08:25 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpWaNcQFw0zzzR06zzEjX2E0jYYz300059R001BAW'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'd9816282269711f1b3bcbf470a0dadf9'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:08:25,661 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:08:25,661 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:08:25,661 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:08:25,661 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:08:25,661 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:08:25,662 - httpcore.connection - DEBUG - close.started 2026-03-23 18:08:25,662 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:08:25,825 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:08:25,845 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:08:25,845 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:08:25,874 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:08:25,875 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:08:25,875 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:08:25,875 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:08:25,875 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:08:25,875 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:08:25,901 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:08:25 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpWbSerFw0zzzR06zzEjX2E0jYYz30003UQ000Up9'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd9aba60a269711f1987c4b3115a7fa3a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:08:25,901 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:08:25,901 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:08:25,901 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:08:25,901 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:08:25,902 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:08:25,902 - httpcore.connection - DEBUG - close.started 2026-03-23 18:08:25,902 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:08:26,126 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:08:26,147 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:08:26,147 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:08:26,171 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:08:26,171 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:08:26,171 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:08:26,171 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:08:26,172 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:08:26,172 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:08:26,202 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:08:26 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpWca5pFw0zzzR06zzEjX2E0jYYz30003UQ000UrL'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd9d97c4c269711f1a63e835aa4681501'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:08:26,202 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:08:26,202 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:08:26,202 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:08:26,202 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:08:26,202 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:08:26,203 - httpcore.connection - DEBUG - close.started 2026-03-23 18:08:26,203 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:08:26,427 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:08:26,447 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:08:26,447 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:08:26,473 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:08:26,473 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:08:26,473 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:08:26,473 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:08:26,474 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:08:26,474 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:08:26,504 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:08:26 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpWdjA0Fw0zzzR06zzEjX2E0jYYz30003UQ000Utj'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'da07c908269711f1ab679ba712aca25a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:08:26,504 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:08:26,505 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:08:26,505 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:08:26,505 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:08:26,505 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:08:26,505 - httpcore.connection - DEBUG - close.started 2026-03-23 18:08:26,505 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:08:26", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:08:25"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:08:26"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:08:26"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:09:26,600 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:09:26,601 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:09:26,648 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:09:26,648 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:09:26,672 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:09:26,672 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:09:26,673 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:09:26,673 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:09:26,673 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:09:26,673 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:09:26,743 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:09:26 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQp^FO7UFw0zzzR06zzEjX2E0jYYz300059L000DwX'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'fde964b2269711f1b4b3bfda2506f20b'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:09:26,743 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:09:26,743 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:09:26,743 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:09:26,743 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:09:26,743 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:09:26,744 - httpcore.connection - DEBUG - close.started 2026-03-23 18:09:26,744 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:09:26,901 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:09:26,922 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:09:26,922 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:09:26,948 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:09:26,948 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:09:26,948 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:09:26,948 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:09:26,948 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:09:26,948 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:09:26,985 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:09:26 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQp^GRJWFw0zzzR06zzEiXqE0jYYz10002Db0004M2'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fe12f12e269711f1ad07e7a21e3465e7'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:09:26,986 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:09:26,986 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:09:26,986 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:09:26,986 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:09:26,986 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:09:26,986 - httpcore.connection - DEBUG - close.started 2026-03-23 18:09:26,986 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:09:27,203 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:09:27,223 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:09:27,224 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:09:27,247 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:09:27,247 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:09:27,248 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:09:27,248 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:09:27,248 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:09:27,248 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:09:27,279 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:09:27 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQp^H_hMFw0zzzR06zzEiXqE0jYYz10002Tt00008t'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fe414c40269711f1bcaa6f3308d3478f'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:09:27,280 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:09:27,280 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:09:27,280 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:09:27,280 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:09:27,280 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:09:27,280 - httpcore.connection - DEBUG - close.started 2026-03-23 18:09:27,280 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:09:27,503 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:09:27,525 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:09:27,525 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:09:27,551 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:09:27,551 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:09:27,551 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:09:27,551 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:09:27,551 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:09:27,551 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:09:27,587 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:09:27 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQp^IjULFw0zzzR06zzEiXqE0jYYz10002Tt00009c'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fe6ffdb0269711f1b3177f8216ee4492'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:09:27,587 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:09:27,587 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:09:27,587 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:09:27,587 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:09:27,587 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:09:27,587 - httpcore.connection - DEBUG - close.started 2026-03-23 18:09:27,587 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:09:27", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:09:26"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:09:27"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:09:27"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:10:27,682 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:10:27,683 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:10:27,728 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:10:27,728 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:10:27,754 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:10:27,755 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:10:27,755 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:10:27,755 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:10:27,755 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:10:27,755 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:10:27,842 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:10:27 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpbsOz0Fw0zzzR06zzEiXqE0jYYz10004NQ000efh'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'22551a44269811f18da127982a16c7cf'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:10:27,842 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:10:27,842 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:10:27,842 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:10:27,842 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:10:27,842 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:10:27,842 - httpcore.connection - DEBUG - close.started 2026-03-23 18:10:27,842 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:10:27,984 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:10:28,004 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:10:28,004 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:10:28,027 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:10:28,028 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:10:28,028 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:10:28,028 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:10:28,028 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:10:28,028 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:10:28,058 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:10:28 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpbtRpqFw0zzzR06zzEjX2E0jYYz30007Kb0025T2'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'227b3d00269811f1b2ab8336c4165a31'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:10:28,058 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:10:28,058 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:10:28,058 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:10:28,058 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:10:28,058 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:10:28,058 - httpcore.connection - DEBUG - close.started 2026-03-23 18:10:28,058 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:10:28,285 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:10:28,306 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:10:28,306 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:10:28,334 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:10:28,334 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:10:28,334 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:10:28,334 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:10:28,334 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:10:28,334 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:10:28,379 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:10:28 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpbudwPFw0zzzR06zzEjX2E0jYYz30005Zq0002dX'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'22ac4d96269811f1b5cb5b76c8a54d56'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:10:28,380 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:10:28,380 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:10:28,380 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:10:28,380 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:10:28,380 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:10:28,380 - httpcore.connection - DEBUG - close.started 2026-03-23 18:10:28,381 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:10:28,586 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:10:28,608 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:10:28,608 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:10:28,637 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:10:28,637 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:10:28,638 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:10:28,638 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:10:28,638 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:10:28,638 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:10:28,668 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 09:10:28 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQpbvlmoFw0zzzR06zzEjX2E0jYYz30005Zq0002fC'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 18:10:28,669 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 18:10:28,669 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:10:28,669 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:10:28,669 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:10:28,669 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:10:29,295 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:10:29,330 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:10:29,331 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:10:29,354 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:10:29,354 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:10:29,355 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:10:29,355 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:10:29,355 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:10:29,355 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:10:29,383 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:10:29 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpbyUtcFw0zzzR06zzEjX2E0jYYz30005hs0000F^'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'234595be269811f1a2e1976f07de7d13'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:10:29,383 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:10:29,383 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:10:29,383 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:10:29,383 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:10:29,383 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:10:29,384 - httpcore.connection - DEBUG - close.started 2026-03-23 18:10:29,384 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:10:29", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:10:28"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:10:28"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:10:29"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:11:29,481 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:11:29,481 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:11:29,524 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:11:29,524 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:11:29,551 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:11:29,551 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:11:29,551 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:11:29,551 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:11:29,551 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:11:29,551 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:11:29,620 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:11:29 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpf^8cMFw0zzzR06zzEjX2E0jYYz300059R001Cs3'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'47279694269811f1b53947d3d9682274'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:11:29,620 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:11:29,620 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:11:29,620 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:11:29,620 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:11:29,620 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:11:29,621 - httpcore.connection - DEBUG - close.started 2026-03-23 18:11:29,621 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:11:29,782 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:11:29,804 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:11:29,804 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:11:29,829 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:11:29,829 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:11:29,829 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:11:29,829 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:11:29,829 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:11:29,829 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:11:29,871 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:11:29 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpf_BxGFw0zzzR06zzEjX2E0jYYz30005BT000GyI'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'4753243a269811f18fed57b2f4bac8a8'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:11:29,872 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:11:29,872 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:11:29,872 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:11:29,872 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:11:29,872 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:11:29,872 - httpcore.connection - DEBUG - close.started 2026-03-23 18:11:29,872 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:11:30,083 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:11:30,105 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:11:30,105 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:11:30,130 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:11:30,131 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:11:30,131 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:11:30,131 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:11:30,131 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:11:30,131 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:11:30,182 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:11:30 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpfaMMiFw0zzzR06zzEjX2E0jYYz300063n00002d'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'4782c280269811f1b1297779d745754a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:11:30,182 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:11:30,182 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:11:30,183 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:11:30,183 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:11:30,183 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:11:30,183 - httpcore.connection - DEBUG - close.started 2026-03-23 18:11:30,183 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:11:30,383 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:11:30,408 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:11:30,408 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:11:30,426 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:11:30,426 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:11:30,426 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:11:30,426 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:11:30,426 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:11:30,426 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:11:30,463 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:11:30 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpfbSExFw0zzzR06zzEjX2E0jYYz30005Lq000CJY'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'47ad9e6a269811f198e83be5d40aae5c'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:11:30,463 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:11:30,463 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:11:30,463 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:11:30,463 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:11:30,464 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:11:30,464 - httpcore.connection - DEBUG - close.started 2026-03-23 18:11:30,464 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:11:30", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:11:29"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:11:30"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:11:30"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:12:30,560 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:12:30,560 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:12:30,584 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:12:30,584 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:12:30,608 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:12:30,609 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:12:30,609 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:12:30,609 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:12:30,609 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:12:30,609 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:12:30,676 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:12:30 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpjD2UiFw0zzzR06zzEjX2E0jYYz300059R001DTA'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'6b8b9404269811f1b7b9bf382d416a63'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:12:30,677 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:12:30,677 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:12:30,677 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:12:30,677 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:12:30,677 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:12:30,677 - httpcore.connection - DEBUG - close.started 2026-03-23 18:12:30,677 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:12:30,861 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:12:30,883 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:12:30,883 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:12:30,909 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:12:30,909 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:12:30,909 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:12:30,909 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:12:30,909 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:12:30,909 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:12:30,938 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:12:30 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpjEC1^Fw0zzzR06zzEjX2E0jYYz30005Zq000Ghd'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6bb948a4269811f19168136f62284fc5'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:12:30,938 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:12:30,938 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:12:30,938 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:12:30,939 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:12:30,939 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:12:30,939 - httpcore.connection - DEBUG - close.started 2026-03-23 18:12:30,939 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:12:31,162 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:12:31,187 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:12:31,187 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:12:31,214 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:12:31,215 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:12:31,215 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:12:31,215 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:12:31,215 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:12:31,215 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:12:31,253 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:12:31 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpjFNPsFw0zzzR06zzEiXqE0jYYz10000j3000vap'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6be93708269811f1a7134f0788dfb305'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:12:31,253 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:12:31,253 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:12:31,253 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:12:31,253 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:12:31,253 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:12:31,253 - httpcore.connection - DEBUG - close.started 2026-03-23 18:12:31,253 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:12:31,462 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:12:31,485 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:12:31,485 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:12:31,508 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:12:31,508 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:12:31,508 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:12:31,508 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:12:31,508 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:12:31,508 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:12:31,540 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:12:31 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpjGU3uFw0zzzR06zzEjX2E0jYYz30005Zq000GlG'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6c1536fa269811f1a7612f1a12d4dd57'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:12:31,540 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:12:31,540 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:12:31,541 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:12:31,541 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:12:31,541 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:12:31,541 - httpcore.connection - DEBUG - close.started 2026-03-23 18:12:31,541 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:12:31", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:12:30"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:12:31"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:12:31"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:13:31,636 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:13:31,636 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:13:31,681 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:13:31,681 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:13:31,705 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:13:31,705 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:13:31,706 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:13:31,706 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:13:31,706 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:13:31,706 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:13:31,774 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:13:31 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpmq6PqFw0zzzR06zzEiXqE0jYYz10004Ne001Hzz'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'8ff67ffc269811f19ad1fb64cd86f7bf'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:13:31,775 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:13:31,775 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:13:31,775 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:13:31,775 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:13:31,775 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:13:31,775 - httpcore.connection - DEBUG - close.started 2026-03-23 18:13:31,776 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:13:31,937 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:13:31,961 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:13:31,961 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:13:31,986 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:13:31,986 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:13:31,986 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:13:31,986 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:13:31,986 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:13:31,986 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:13:32,015 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:13:32 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpmrBLZFw0zzzR06zzEiXqE0jYYz10003TU0007PY'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'9020f37c269811f1a9c3dff6423009d3'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:13:32,015 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:13:32,015 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:13:32,015 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:13:32,015 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:13:32,015 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:13:32,016 - httpcore.connection - DEBUG - close.started 2026-03-23 18:13:32,016 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:13:32,239 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:13:32,262 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:13:32,262 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:13:32,281 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:13:32,281 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:13:32,281 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:13:32,281 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:13:32,281 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:13:32,281 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:13:32,310 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:13:32 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpmsJCEFw0zzzR06zzEjX2E0jYYz30006M200090Z'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'904e0696269811f1b0be2b0c0c6c4449'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:13:32,310 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:13:32,310 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:13:32,311 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:13:32,311 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:13:32,311 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:13:32,311 - httpcore.connection - DEBUG - close.started 2026-03-23 18:13:32,311 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:13:32,539 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:13:32,562 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:13:32,562 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:13:32,587 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:13:32,587 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:13:32,587 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:13:32,587 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:13:32,587 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:13:32,587 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:13:32,626 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 09:13:32 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQpmtUPYFw0zzzR06zzEiXqE0jYYz10003HI000Dio'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 18:13:32,626 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 18:13:32,626 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:13:32,626 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:13:32,626 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:13:32,626 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:13:33,234 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:13:33,256 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:13:33,256 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:13:33,279 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:13:33,280 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:13:33,280 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:13:33,280 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:13:33,280 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:13:33,280 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:13:33,324 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:13:33 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpmw7X8Fw0zzzR06zzEjX2E0jYYz30005Zq000NXB'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'90e8807c269811f196c0433dea918d05'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:13:33,324 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:13:33,324 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:13:33,324 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:13:33,324 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:13:33,324 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:13:33,325 - httpcore.connection - DEBUG - close.started 2026-03-23 18:13:33,325 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:13:33", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:13:32"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:13:32"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:13:33"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:14:33,423 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:14:33,423 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:14:33,443 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:14:33,443 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:14:33,468 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:14:33,469 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:14:33,469 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:14:33,469 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:14:33,469 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:14:33,469 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:14:33,531 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:14:33 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpqXhANFw0zzzR06zzEiXqE0jYYz10004Ne001IXl'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'b4c665ae269811f19bcbcf7d99a03bef'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:14:33,532 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:14:33,532 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:14:33,532 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:14:33,532 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:14:33,532 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:14:33,532 - httpcore.connection - DEBUG - close.started 2026-03-23 18:14:33,532 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:14:33,721 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:14:33,743 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:14:33,743 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:14:33,770 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:14:33,770 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:14:33,770 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:14:33,770 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:14:33,770 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:14:33,770 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:14:33,813 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:14:33 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpqYsUmFw0zzzR06zzEiXqE0jYYz10003HI000KYZ'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b4f69f30269811f1b766e7310e824b7a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:14:33,813 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:14:33,813 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:14:33,814 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:14:33,814 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:14:33,814 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:14:33,814 - httpcore.connection - DEBUG - close.started 2026-03-23 18:14:33,814 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:14:34,022 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:14:34,043 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:14:34,043 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:14:34,070 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:14:34,070 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:14:34,070 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:14:34,070 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:14:34,070 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:14:34,070 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:14:34,101 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:14:34 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpq^1LJFw0zzzR06zzEjX2E0jYYz30006kr0005fa'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b5229784269811f1b82b27e3916caf6c'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:14:34,101 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:14:34,101 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:14:34,102 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:14:34,102 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:14:34,102 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:14:34,102 - httpcore.connection - DEBUG - close.started 2026-03-23 18:14:34,102 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:14:34,323 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:14:34,344 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:14:34,344 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:14:34,368 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:14:34,368 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:14:34,368 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:14:34,368 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:14:34,368 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:14:34,368 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:14:34,397 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:14:34 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpq_9khFw0zzzR06zzEiXqE0jYYz10003CY000Jhe'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b54fc132269811f1b2b8fb8667f005f9'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:14:34,397 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:14:34,397 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:14:34,397 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:14:34,397 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:14:34,397 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:14:34,398 - httpcore.connection - DEBUG - close.started 2026-03-23 18:14:34,398 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:14:34", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:14:33"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:14:34"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:14:34"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:15:34,440 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:15:34,440 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:15:34,464 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:15:34,464 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:15:34,490 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:15:34,490 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:15:34,490 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:15:34,490 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:15:34,490 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:15:34,490 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:15:34,554 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:15:34 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpuAVJvFw0zzzR06zzEiXqE0jYYz10004Ne001J4d'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'd9258218269811f19250eb69710541af'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:15:34,554 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:15:34,554 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:15:34,554 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:15:34,554 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:15:34,554 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:15:34,555 - httpcore.connection - DEBUG - close.started 2026-03-23 18:15:34,555 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:15:34,742 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:15:34,764 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:15:34,764 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:15:34,788 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:15:34,788 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:15:34,788 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:15:34,788 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:15:34,788 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:15:34,788 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:15:34,818 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:15:34 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpuBcjKFw0zzzR06zzEiXqE0jYYz10003pG000BOo'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd9531cf0269811f1b6836b70c92298e7'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:15:34,818 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:15:34,818 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:15:34,818 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:15:34,818 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:15:34,818 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:15:34,818 - httpcore.connection - DEBUG - close.started 2026-03-23 18:15:34,818 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:15:35,043 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:15:35,066 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:15:35,067 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:15:35,091 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:15:35,091 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:15:35,091 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:15:35,091 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:15:35,091 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:15:35,091 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:15:35,133 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:15:35 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpuCmvaFw0zzzR06zzEiXqE0jYYz10003pG000BRQ'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd9831b8a269811f18ebe7f6ff32948ec'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:15:35,133 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:15:35,133 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:15:35,133 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:15:35,133 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:15:35,133 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:15:35,133 - httpcore.connection - DEBUG - close.started 2026-03-23 18:15:35,133 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:15:35,344 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:15:35,364 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:15:35,365 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:15:35,388 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:15:35,388 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:15:35,388 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:15:35,388 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:15:35,388 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:15:35,388 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:15:35,425 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:15:35 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpuDuY7Fw0zzzR06zzEjX2E0jYYz30006kr000C^x'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd9afcdc4269811f19725bb6c292dbb96'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:15:35,425 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:15:35,425 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:15:35,426 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:15:35,426 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:15:35,426 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:15:35,426 - httpcore.connection - DEBUG - close.started 2026-03-23 18:15:35,426 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:15:35", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:15:34"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:15:35"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:15:35"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:16:35,520 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:16:35,521 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:16:35,544 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:16:35,544 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:16:35,570 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:16:35,570 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:16:35,570 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:16:35,570 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:16:35,570 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:16:35,570 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:16:35,637 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:16:35 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQpxnVGcFw0zzzR06zzEiXqE0jYYz10004Ne001JhX'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'fd8e32bc269811f1933bdbffa12b0d67'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:16:35,637 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:16:35,638 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:16:35,638 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:16:35,638 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:16:35,638 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:16:35,638 - httpcore.connection - DEBUG - close.started 2026-03-23 18:16:35,638 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:16:35,821 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:16:35,843 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:16:35,843 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:16:35,873 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:16:35,873 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:16:35,873 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:16:35,873 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:16:35,873 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:16:35,873 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:16:35,907 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:16:35 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQpxoeXQFw0zzzR06zzEiXqE0jYYz10004E80008yE'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fdbca8c2269811f1b26ab3cef0179eed'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:16:35,907 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:16:35,907 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:16:35,907 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:16:35,907 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:16:35,907 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:16:35,907 - httpcore.connection - DEBUG - close.started 2026-03-23 18:16:35,907 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:16:36,124 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:16:36,148 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:16:36,148 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:16:36,176 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:16:36,176 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:16:36,176 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:16:36,176 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:16:36,176 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:16:36,176 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:16:36,218 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:16:36 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQpxpoP3Fw0zzzR06zzEjX2E0jYYz30007St0003sU'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fdebeaba269811f1b5afbfce61a11ea3'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:16:36,218 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:16:36,218 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:16:36,218 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:16:36,218 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:16:36,218 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:16:36,218 - httpcore.connection - DEBUG - close.started 2026-03-23 18:16:36,218 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:16:36,425 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:16:36,446 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:16:36,446 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:16:36,489 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:16:36,490 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:16:36,490 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:16:36,490 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:16:36,490 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:16:36,490 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:16:36,520 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:16:36 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQpxr0k8Fw0zzzR06zzEjX2E0jYYz30006M2000TvB'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fe1a4400269811f1975417bbd5810d84'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:16:36,520 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:16:36,520 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:16:36,520 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:16:36,521 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:16:36,521 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:16:36,521 - httpcore.connection - DEBUG - close.started 2026-03-23 18:16:36,521 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:16:36", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:16:35"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:16:36"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:16:36"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:17:36,616 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:17:36,616 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:17:36,636 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:17:36,636 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:17:36,662 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:17:36,663 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:17:36,663 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:17:36,663 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:17:36,663 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:17:36,663 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:17:36,742 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:17:36 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQq1SZpFFw0zzzR06zzEjX2E0jYYz300059J000rIk'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'21f9eec0269911f1bca7ef336060491a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:17:36,742 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:17:36,742 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:17:36,742 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:17:36,742 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:17:36,742 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:17:36,742 - httpcore.connection - DEBUG - close.started 2026-03-23 18:17:36,743 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:17:36,918 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:17:36,940 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:17:37,166 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:17:37,197 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:17:37,197 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:17:37,197 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:17:37,197 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:17:37,197 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:17:37,197 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:17:37,232 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:17:37 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQq1Ua46Fw0zzzR06zzEjX2E0jYYz30007f^0005zB'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'2249e2a4269911f1ae6667c27ec3000b'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:17:37,232 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:17:37,249 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:17:37,262 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:17:37,262 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:17:37,262 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:17:37,263 - httpcore.connection - DEBUG - close.started 2026-03-23 18:17:37,263 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:17:37,269 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:17:37,290 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:17:37,290 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:17:37,314 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:17:37,314 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:17:37,314 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:17:37,314 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:17:37,314 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:17:37,314 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:17:37,351 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:17:37 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQq1V3U8Fw0zzzR06zzEjX2E0jYYz30006kr000QHi'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'225c5e0c269911f1ae6f8bd37964e336'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:17:37,351 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:17:37,351 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:17:37,352 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:17:37,352 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:17:37,352 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:17:37,352 - httpcore.connection - DEBUG - close.started 2026-03-23 18:17:37,352 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:17:37,570 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:17:37,592 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:17:37,592 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:17:37,638 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:17:37,638 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:17:37,638 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:17:37,638 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:17:37,638 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:17:37,638 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:17:37,667 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 09:17:37 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQq1WI2EFw0zzzR06zzEjX2E0jYYz30007f^000627'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 18:17:37,667 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 18:17:37,667 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:17:37,668 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:17:37,668 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:17:37,668 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:17:38,277 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:17:38,298 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:17:38,298 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:17:38,325 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:17:38,325 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:17:38,325 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:17:38,325 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:17:38,325 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:17:38,325 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:17:38,356 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:17:38 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQq1YtICFw0zzzR06zzEiXqE0jYYz10004E8000GDz'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'22f57ed4269911f1bb1b13c3e52e79de'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:17:38,356 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:17:38,356 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:17:38,356 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:17:38,356 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:17:38,356 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:17:38,356 - httpcore.connection - DEBUG - close.started 2026-03-23 18:17:38,357 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:17:38", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:17:37"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:17:37"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:17:38"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:18:38,456 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:18:38,456 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:18:38,499 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:18:38,500 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:18:38,532 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:18:38,532 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:18:38,533 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:18:38,533 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:18:38,533 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:18:38,533 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:18:38,608 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:18:38 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQq58^XkFw0zzzR06zzEiXqE0jYYz10004NQ000h94'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'46da02f2269911f19516ab44ce14ce64'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:18:38,608 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:18:38,608 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:18:38,608 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:18:38,608 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:18:38,608 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:18:38,609 - httpcore.connection - DEBUG - close.started 2026-03-23 18:18:38,609 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:18:38,758 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:18:38,780 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:18:38,781 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:18:38,807 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:18:38,807 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:18:38,807 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:18:38,807 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:18:38,807 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:18:38,807 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:18:38,863 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:18:38 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQq59cAPFw0zzzR06zzEjX2E0jYYz30006kr000Wi3'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'4706376e269911f18e967f71e97afee5'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:18:38,863 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:18:38,863 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:18:38,863 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:18:38,863 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:18:38,863 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:18:38,864 - httpcore.connection - DEBUG - close.started 2026-03-23 18:18:38,864 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:18:39,060 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:18:39,082 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:18:39,082 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:18:39,106 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:18:39,107 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:18:39,107 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:18:39,107 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:18:39,107 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:18:39,107 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:18:39,138 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:18:39 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQq5AkfTFw0zzzR06zzEiXqE0jYYz10004ke000FhX'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'473028bc269911f1a2ff331a6f66893d'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:18:39,138 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:18:39,138 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:18:39,138 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:18:39,138 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:18:39,138 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:18:39,138 - httpcore.connection - DEBUG - close.started 2026-03-23 18:18:39,138 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:18:39,360 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:18:39,380 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:18:39,380 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:18:39,405 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:18:39,405 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:18:39,405 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:18:39,405 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:18:39,405 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:18:39,405 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:18:39,432 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:18:39 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQq5BrtKFw0zzzR06zzEjX2E0jYYz30000IA0001f9'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'475d2d62269911f1b3b0ef9d6b06d664'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:18:39,433 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:18:39,433 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:18:39,433 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:18:39,433 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:18:39,433 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:18:39,433 - httpcore.connection - DEBUG - close.started 2026-03-23 18:18:39,433 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:18:39", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:18:38"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:18:39"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:18:39"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:19:39,529 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:19:39,530 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:19:39,574 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:19:39,574 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:19:39,598 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:19:39,598 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:19:39,599 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:19:39,599 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:19:39,599 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:19:39,599 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:19:39,666 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:19:39 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQq8lWqeFw0zzzR06zzEiXqE0jYYz10004NG000HR4'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'6b3e623c269911f195efb708a720cde9'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:19:39,666 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:19:39,666 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:19:39,667 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:19:39,667 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:19:39,667 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:19:39,667 - httpcore.connection - DEBUG - close.started 2026-03-23 18:19:39,667 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:19:39,831 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:19:39,852 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:19:39,852 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:19:39,877 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:19:39,877 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:19:39,878 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:19:39,878 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:19:39,878 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:19:39,878 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:19:39,912 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:19:39 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQq8m_K1Fw0zzzR06zzEiXqE0jYYz10004f9000OQO'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6b696d1a269911f1b375a352a91579d5'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:19:39,912 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:19:39,912 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:19:39,912 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:19:39,912 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:19:39,912 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:19:39,913 - httpcore.connection - DEBUG - close.started 2026-03-23 18:19:39,913 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:19:40,132 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:19:40,157 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:19:40,157 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:19:40,184 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:19:40,184 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:19:40,185 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:19:40,185 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:19:40,185 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:19:40,185 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:19:40,225 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:19:40 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQq8nkjDFw0zzzR06zzEiXqE0jYYz10004f9000OSn'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6b994ac6269911f1af6bd71216e133ce'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:19:40,225 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:19:40,225 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:19:40,225 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:19:40,225 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:19:40,226 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:19:40,226 - httpcore.connection - DEBUG - close.started 2026-03-23 18:19:40,226 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:19:40,433 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:19:40,458 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:19:40,458 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:19:40,484 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:19:40,485 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:19:40,485 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:19:40,485 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:19:40,485 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:19:40,485 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:19:40,532 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:19:40 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQq8osZ_Fw0zzzR06zzEiXqE0jYYz10005np00000W'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6bc58c26269911f193882bd718d0b92c'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:19:40,532 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:19:40,532 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:19:40,533 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:19:40,533 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:19:40,533 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:19:40,533 - httpcore.connection - DEBUG - close.started 2026-03-23 18:19:40,533 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:19:40", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:19:39"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:19:40"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:19:40"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:20:40,629 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:20:40,629 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:20:40,677 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:20:40,678 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:20:40,705 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:20:40,705 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:20:40,705 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:20:40,705 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:20:40,705 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:20:40,705 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:20:40,806 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:20:40 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqCQadxFw0zzzR06zzEiXqE0jYYz10004NG000HXJ'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'8fafe9d8269911f196e1534e7e84ed70'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:20:40,807 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:20:40,807 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:20:40,807 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:20:40,807 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:20:40,807 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:20:40,807 - httpcore.connection - DEBUG - close.started 2026-03-23 18:20:40,807 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:20:40,930 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:20:40,954 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:20:40,955 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:20:40,979 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:20:40,979 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:20:40,979 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:20:40,979 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:20:40,980 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:20:40,980 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:20:41,014 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:20:41 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqCRexrFw0zzzR06zzEiXqE0jYYz10005np0003PR'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'8fd4caa0269911f1a1a047cbac39b73b'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:20:41,014 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:20:41,014 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:20:41,014 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:20:41,014 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:20:41,015 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:20:41,015 - httpcore.connection - DEBUG - close.started 2026-03-23 18:20:41,015 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:20:41,232 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:20:41,252 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:20:41,252 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:20:41,279 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:20:41,279 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:20:41,279 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:20:41,279 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:20:41,280 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:20:41,280 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:20:41,312 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:20:41 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqCSnI8Fw0zzzR06zzEiXqE0jYYz10003pG000h_G'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'90027dec269911f19ba74753c6558d3a'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:20:41,312 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:20:41,313 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:20:41,313 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:20:41,313 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:20:41,313 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:20:41,313 - httpcore.connection - DEBUG - close.started 2026-03-23 18:20:41,313 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:20:41,534 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:20:41,557 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:20:41,558 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:20:41,583 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:20:41,584 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:20:41,584 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:20:41,584 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:20:41,584 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:20:41,584 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:20:41,632 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 09:20:41 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQqCTyMPFw0zzzR06zzEiXqE0jYYz10005Sm000GTb'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 18:20:41,632 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 18:20:41,632 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:20:41,632 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:20:41,633 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:20:41,633 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:20:42,240 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:20:42,263 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:20:42,264 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:20:42,290 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:20:42,290 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:20:42,291 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:20:42,291 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:20:42,291 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:20:42,291 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:20:42,323 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:20:42 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqCWeKvFw0zzzR06zzEiXqE0jYYz10005np0003YD'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'909c945e269911f1a5cb7337b415f715'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:20:42,323 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:20:42,323 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:20:42,323 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:20:42,323 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:20:42,323 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:20:42,324 - httpcore.connection - DEBUG - close.started 2026-03-23 18:20:42,324 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:20:42", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:20:41"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:20:41"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:20:42"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:21:42,360 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:21:42,361 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:21:42,405 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:21:42,406 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:21:42,430 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:21:42,430 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:21:42,430 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:21:42,430 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:21:42,430 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:21:42,430 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:21:42,497 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:21:42 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqG64weFw0zzzR06zzEiXqE0jYYz10004Ne001MRi'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'b4752bde269911f197f79f18427834dd'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:21:42,498 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:21:42,498 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:21:42,498 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:21:42,498 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:21:42,498 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:21:42,499 - httpcore.connection - DEBUG - close.started 2026-03-23 18:21:42,499 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:21:42,664 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:21:42,685 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:21:42,685 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:21:42,712 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:21:42,712 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:21:42,712 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:21:42,712 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:21:42,712 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:21:42,712 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:21:42,744 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:21:42 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqG7AVmFw0zzzR06zzEiXqE0jYYz10006IO0002Xp'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b4a03752269911f1ae8f8b2996fd3b09'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:21:42,744 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:21:42,744 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:21:42,744 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:21:42,744 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:21:42,744 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:21:42,745 - httpcore.connection - DEBUG - close.started 2026-03-23 18:21:42,745 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:21:42,962 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:21:42,984 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:21:42,984 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:21:43,008 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:21:43,008 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:21:43,008 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:21:43,008 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:21:43,009 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:21:43,009 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:21:43,059 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:21:43 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqG8HibFw0zzzR06zzEiXqE0jYYz10006L^0000xL'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b4d044c4269911f1906d5391771c57ef'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:21:43,059 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:21:43,060 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:21:43,060 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:21:43,060 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:21:43,060 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:21:43,060 - httpcore.connection - DEBUG - close.started 2026-03-23 18:21:43,060 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:21:43,263 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:21:43,286 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:21:43,286 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:21:43,313 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:21:43,313 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:21:43,313 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:21:43,313 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:21:43,313 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:21:43,313 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:21:43,343 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:21:43 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqG9SjxFw0zzzR06zzEiXqE0jYYz10006IO0002_z'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b4fbc658269911f1af9dbbf9108f0284'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:21:43,344 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:21:43,344 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:21:43,344 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:21:43,344 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:21:43,344 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:21:43,344 - httpcore.connection - DEBUG - close.started 2026-03-23 18:21:43,344 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:21:43", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:21:42"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:21:43"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:21:43"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:22:43,441 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:22:43,441 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:22:43,483 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:22:43,484 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:22:43,507 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:22:43,507 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:22:43,508 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:22:43,508 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:22:43,508 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:22:43,508 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:22:43,573 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:22:43 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqJj4KrFw0zzzR06zzEiXqE0jYYz10004Ne001Mwv'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'd8dcabd2269911f1991467ab4baf786b'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:22:43,573 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:22:43,573 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:22:43,573 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:22:43,574 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:22:43,574 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:22:43,574 - httpcore.connection - DEBUG - close.started 2026-03-23 18:22:43,574 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:22:43,742 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:22:43,766 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:22:43,766 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:22:43,789 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:22:43,789 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:22:43,790 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:22:43,790 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:22:43,790 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:22:43,790 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:22:43,821 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:22:43 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqJk9W6Fw0zzzR06zzEiXqE0jYYz10006L^0007lU'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd907dd66269911f19db6ff3a0542f98f'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:22:43,821 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:22:43,821 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:22:43,822 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:22:43,822 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:22:43,822 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:22:43,822 - httpcore.connection - DEBUG - close.started 2026-03-23 18:22:43,822 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:22:44,043 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:22:44,066 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:22:44,067 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:22:44,092 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:22:44,092 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:22:44,092 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:22:44,092 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:22:44,092 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:22:44,092 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:22:44,124 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:22:44 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqJlJ^ZFw0zzzR06zzEiXqE0jYYz10005cV000Mxt'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd9360f38269911f1a18d4baf760c8c13'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:22:44,124 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:22:44,124 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:22:44,125 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:22:44,125 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:22:44,125 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:22:44,125 - httpcore.connection - DEBUG - close.started 2026-03-23 18:22:44,125 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:22:44,344 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:22:44,365 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:22:44,365 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:22:44,388 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:22:44,388 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:22:44,389 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:22:44,389 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:22:44,389 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:22:44,389 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:22:44,431 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:22:44 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqJmS7FFw0zzzR06zzEiXqE0jYYz10006IO0009gm'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd964ae38269911f1bad2e749a6139e7d'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:22:44,431 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:22:44,432 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:22:44,432 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:22:44,432 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:22:44,432 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:22:44,432 - httpcore.connection - DEBUG - close.started 2026-03-23 18:22:44,432 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:22:44", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:22:43"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:22:44"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:22:44"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:23:44,526 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:23:44,526 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:23:44,569 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:23:44,570 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:23:44,596 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:23:44,597 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:23:44,597 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:23:44,597 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:23:44,597 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:23:44,597 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:23:44,667 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:23:44 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqNO7K7Fw0zzzR06zzEiXqE0jYYz10004NQ000ig7'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'fd46b486269911f19a042bed8708e619'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:23:44,667 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:23:44,667 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:23:44,667 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:23:44,667 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:23:44,668 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:23:44,668 - httpcore.connection - DEBUG - close.started 2026-03-23 18:23:44,668 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:23:44,827 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:23:44,848 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:23:44,848 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:23:44,872 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:23:44,872 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:23:44,873 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:23:44,873 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:23:44,873 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:23:44,873 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:23:44,916 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:23:44 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqNPALeFw0zzzR06zzEiXqE0jYYz10005Sm000Z0J'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fd72195a269911f1aaae97b777094c10'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:23:44,916 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:23:44,916 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:23:44,916 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:23:44,916 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:23:44,916 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:23:44,916 - httpcore.connection - DEBUG - close.started 2026-03-23 18:23:44,917 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:23:45,127 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:23:45,166 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:23:45,178 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:23:45,201 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:23:45,201 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:23:45,201 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:23:45,201 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:23:45,201 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:23:45,201 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:23:45,879 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:23:45 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqNQRc5Fw0zzzR06zzEjX2E0jYYz30001rt0000Pl'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fe05306e269911f1a20d674a2ae8e650'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:23:45,879 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:23:45,879 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:23:45,879 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:23:45,879 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:23:45,879 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:23:45,879 - httpcore.connection - DEBUG - close.started 2026-03-23 18:23:45,879 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:23:45,886 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:23:45,907 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:23:45,907 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:23:46,057 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:23:46,057 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:23:46,057 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:23:46,057 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:23:46,057 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:23:46,057 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:23:46,159 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:23:46 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqNTkKsFw0zzzR06zzEiXqE0jYYz10006xd00002E'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fe2e2c4e269911f18c1b87bad901f2f5'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:23:46,160 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:23:46,160 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:23:46,160 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:23:46,160 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:23:46,160 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:23:46,160 - httpcore.connection - DEBUG - close.started 2026-03-23 18:23:46,160 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:23:46", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:23:44"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:23:45"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:23:46"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:24:46,255 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:24:46,256 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:24:46,302 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:24:46,302 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:24:46,330 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:24:46,330 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:24:46,330 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:24:46,330 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:24:46,330 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:24:46,330 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:24:46,395 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:24:46 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqR3_s9Fw0zzzR06zzEiXqE0jYYz10004Ne001O7w'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'2211b41e269a11f19b0473880c9d8d4e'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:24:46,395 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:24:46,395 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:24:46,395 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:24:46,395 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:24:46,395 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:24:46,395 - httpcore.connection - DEBUG - close.started 2026-03-23 18:24:46,396 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:24:46,556 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:24:46,577 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:24:46,577 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:24:46,602 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:24:46,603 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:24:46,603 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:24:46,603 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:24:46,603 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:24:46,603 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:24:46,634 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:24:46 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqR4d1tFw0zzzR06zzEiXqE0jYYz10007Ay0000N5'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'223b662e269a11f1b1b3f7b21bc5d804'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:24:46,634 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:24:46,634 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:24:46,634 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:24:46,634 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:24:46,634 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:24:46,634 - httpcore.connection - DEBUG - close.started 2026-03-23 18:24:46,634 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:24:46,857 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:24:46,879 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:24:46,880 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:24:46,908 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:24:46,908 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:24:46,908 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:24:46,908 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:24:46,908 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:24:46,908 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:24:46,936 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:24:46 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqR5n^iFw0zzzR06zzEiXqE0jYYz10007Ay0000O9'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'2269c8fc269a11f1ba0fbf8071164dbb'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:24:46,936 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:24:46,937 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:24:46,937 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:24:46,937 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:24:46,937 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:24:46,937 - httpcore.connection - DEBUG - close.started 2026-03-23 18:24:46,937 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:24:47,158 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:24:47,180 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:24:47,180 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:24:47,206 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:24:47,206 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:24:47,206 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:24:47,206 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:24:47,207 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:24:47,207 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:24:47,255 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:24:47 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqR6wgNFw0zzzR06zzEiXqE0jYYz10005cV000^eP'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'229a2ad8269a11f198a4f33d0ad6551e'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:24:47,255 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:24:47,255 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:24:47,255 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:24:47,255 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:24:47,255 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:24:47,256 - httpcore.connection - DEBUG - close.started 2026-03-23 18:24:47,256 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:24:47", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:24:46"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:24:46"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:24:47"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:25:47,351 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:25:47,352 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:25:47,395 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:25:47,395 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:25:47,418 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:25:47,418 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:25:47,418 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:25:47,418 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:25:47,418 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:25:47,418 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:25:47,489 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:25:47 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqUgc^dFw0zzzR06zzEjX2E0jYYz300059J000te2'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'467b3a8c269a11f1a09b93189d55eb0e'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:25:47,489 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:25:47,489 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:25:47,489 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:25:47,489 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:25:47,489 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:25:47,490 - httpcore.connection - DEBUG - close.started 2026-03-23 18:25:47,490 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:25:47,653 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:25:47,676 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:25:47,676 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:25:47,699 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:25:47,700 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:25:47,700 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:25:47,700 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:25:47,700 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:25:47,700 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:25:47,745 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:25:47 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqUhgpZFw0zzzR06zzEiXqE0jYYz10005cV000fSO'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'46a83dca269a11f1a4fb478893d69d22'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:25:47,745 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:25:47,745 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:25:47,746 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:25:47,746 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:25:47,746 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:25:47,746 - httpcore.connection - DEBUG - close.started 2026-03-23 18:25:47,746 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:25:47,955 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:25:47,979 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:25:47,979 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:25:48,005 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:25:48,006 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:25:48,006 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:25:48,006 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:25:48,006 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:25:48,006 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:25:48,036 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:25:48 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqUis8qFw0zzzR06zzEjX2E0jYYz300026H0009_E'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'46d4d010269a11f1ac3c27142dec60bf'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:25:48,036 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:25:48,037 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:25:48,037 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:25:48,037 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:25:48,037 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:25:48,037 - httpcore.connection - DEBUG - close.started 2026-03-23 18:25:48,037 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:25:48,255 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:25:48,281 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:25:48,281 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:25:48,307 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:25:48,307 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:25:48,308 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:25:48,308 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:25:48,308 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:25:48,308 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:25:48,359 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:25:48 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqUk1wyFw0zzzR06zzEjX2E0jYYz30006kr001GHz'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'47033acc269a11f1a8acbf37c9accdec'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:25:48,360 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:25:48,360 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:25:48,361 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:25:48,361 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:25:48,361 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:25:48,361 - httpcore.connection - DEBUG - close.started 2026-03-23 18:25:48,361 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:25:48", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:25:47"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:25:48"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:25:48"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:26:48,459 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:26:48,459 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:26:48,500 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:26:48,501 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:26:48,526 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:26:48,526 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:26:48,526 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:26:48,526 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:26:48,526 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:26:48,526 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:26:48,593 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:26:48 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqYLjmaFw0zzzR06zzEjX2E0jYYz300059R001LuA'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'6ae7f162269a11f199f497f99e0d3076'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:26:48,594 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:26:48,594 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:26:48,594 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:26:48,594 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:26:48,594 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:26:48,594 - httpcore.connection - DEBUG - close.started 2026-03-23 18:26:48,594 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:26:48,761 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:26:48,782 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:26:48,782 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:26:48,800 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:26:48,800 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:26:48,800 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:26:48,800 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:26:48,800 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:26:48,800 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:26:48,821 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:26:48 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqYMkK2Fw0zzzR06zzEjX2E0jYYz30001rt000LMP'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6b0feb04269a11f1ae845b6ef6761041'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:26:48,821 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:26:48,821 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:26:48,821 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:26:48,821 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:26:48,821 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:26:48,821 - httpcore.connection - DEBUG - close.started 2026-03-23 18:26:48,821 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:26:49,062 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:26:49,086 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:26:49,086 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:26:49,104 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:26:49,105 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:26:49,105 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:26:49,105 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:26:49,105 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:26:49,105 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:26:49,128 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:26:49 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqYNuwGFw0zzzR06zzEjX2E0jYYz30002XH0006D_'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6b3e935a269a11f18bac0bc0a8f46909'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:26:49,128 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:26:49,128 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:26:49,128 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:26:49,128 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:26:49,128 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:26:49,129 - httpcore.connection - DEBUG - close.started 2026-03-23 18:26:49,129 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:26:49,363 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:26:49,384 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:26:49,384 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:26:49,408 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:26:49,408 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:26:49,409 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:26:49,409 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:26:49,409 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:26:49,409 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:26:49,439 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:26:49 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqYP6sUFw0zzzR06zzEiXqE0jYYz10007Ru0008ac'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6b6e3006269a11f195697767e61fc31b'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:26:49,439 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:26:49,439 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:26:49,440 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:26:49,440 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:26:49,440 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:26:49,440 - httpcore.connection - DEBUG - close.started 2026-03-23 18:26:49,440 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:26:49", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:26:48"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:26:49"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:26:49"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:27:49,535 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:27:49,535 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:27:49,583 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:27:49,583 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:27:49,609 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:27:49,609 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:27:49,609 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:27:49,609 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:27:49,609 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:27:49,609 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:27:49,676 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:27:49 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQq_ykVZFw0zzzR06zzEjX2E0jYYz300059R001MTy'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'8f504d4c269a11f1a29cc3aecb45d2f4'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:27:49,676 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:27:49,676 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:27:49,676 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:27:49,676 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:27:49,676 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:27:49,677 - httpcore.connection - DEBUG - close.started 2026-03-23 18:27:49,677 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:27:49,837 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:27:49,858 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:27:49,858 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:27:49,885 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:27:49,885 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:27:49,885 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:27:49,885 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:27:49,885 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:27:49,885 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:27:49,912 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:27:49 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQq_zmo9Fw0zzzR06zzEiXqE0jYYz10007tM00050Z'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'8f79a53e269a11f1892def258aa3c4d9'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:27:49,913 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:27:49,913 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:27:49,913 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:27:49,913 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:27:49,913 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:27:49,914 - httpcore.connection - DEBUG - close.started 2026-03-23 18:27:49,914 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:27:50,138 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:27:50,160 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:27:50,161 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:27:50,186 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:27:50,187 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:27:50,187 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:27:50,187 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:27:50,187 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:27:50,187 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:27:50,218 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:27:50 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqa0xK2Fw0zzzR06zzEjX2E0jYYz30003Ni00001e'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'8fa85910269a11f1a0014b7b74cf9aea'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:27:50,218 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:27:50,218 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:27:50,219 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:27:50,219 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:27:50,219 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:27:50,219 - httpcore.connection - DEBUG - close.started 2026-03-23 18:27:50,219 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:27:50,439 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:27:50,459 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:27:50,459 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:27:50,485 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:27:50,486 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:27:50,486 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:27:50,486 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:27:50,486 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:27:50,486 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:27:50,522 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:27:50 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqa26fhFw0zzzR06zzEjX2E0jYYz30002XH000DNi'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'8fd69910269a11f1985aefc013a209e1'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:27:50,522 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:27:50,522 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:27:50,522 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:27:50,522 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:27:50,523 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:27:50,523 - httpcore.connection - DEBUG - close.started 2026-03-23 18:27:50,523 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:27:50", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:27:49"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:27:50"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:27:50"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:28:50,618 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:28:50,618 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:28:50,666 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:28:50,666 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:28:50,693 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:28:50,693 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:28:50,693 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:28:50,693 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:28:50,693 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:28:50,693 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:28:50,764 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:28:50 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqdblZWFw0zzzR06zzEjX2E0jYYz300059R001Muc'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'b3b990a8269a11f1a3a147febf6acebb'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:28:50,764 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:28:50,764 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:28:50,764 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:28:50,764 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:28:50,764 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:28:50,764 - httpcore.connection - DEBUG - close.started 2026-03-23 18:28:50,764 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:28:50,919 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:28:50,938 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:28:50,938 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:28:50,963 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:28:50,963 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:28:50,964 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:28:50,964 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:28:50,964 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:28:50,964 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:28:50,994 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:28:50 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqdcmhCFw0zzzR06zzEjX2E0jYYz30003Ni0005nF'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b3e1e8b4269a11f1ad81a75ef741f6f8'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:28:50,994 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:28:50,994 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:28:50,995 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:28:50,995 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:28:50,995 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:28:50,995 - httpcore.connection - DEBUG - close.started 2026-03-23 18:28:50,995 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:28:51,219 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:28:51,239 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:28:51,240 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:28:51,264 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:28:51,264 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:28:51,264 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:28:51,264 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:28:51,264 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:28:51,264 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:28:51,308 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:28:51 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqddwYzFw0zzzR06zzEiXqE0jYYz10007tM000Bsd'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b40f9b7e269a11f1b4e8e3af309c38c5'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:28:51,308 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:28:51,308 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:28:51,308 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:28:51,308 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:28:51,308 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:28:51,308 - httpcore.connection - DEBUG - close.started 2026-03-23 18:28:51,309 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:28:51,520 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:28:51,541 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:28:51,541 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:28:51,568 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:28:51,568 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:28:51,568 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:28:51,568 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:28:51,568 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:28:51,568 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:28:51,604 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:28:51 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqdf7C0Fw0zzzR06zzEiXqE0jYYz10000Eu0009Q_'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b43f1e1c269a11f1929a8b6c2fd5140d'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:28:51,604 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:28:51,605 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:28:51,605 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:28:51,605 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:28:51,605 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:28:51,605 - httpcore.connection - DEBUG - close.started 2026-03-23 18:28:51,605 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:28:51", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:28:50"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:28:51"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:28:51"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:29:51,699 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:29:51,700 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:29:51,744 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:29:51,744 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:29:51,768 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:29:51,768 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:29:51,768 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:29:51,768 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:29:51,768 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:29:51,769 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:29:51,841 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:29:51 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqhGk7KFw0zzzR06zzEiXqE0jYYz10004Ne001QiK'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'd8206afc269a11f1a0253b8960509463'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:29:51,841 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:29:51,841 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:29:51,841 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:29:51,841 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:29:51,841 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:29:51,842 - httpcore.connection - DEBUG - close.started 2026-03-23 18:29:51,842 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:29:52,001 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:29:52,021 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:29:52,021 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:29:52,049 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:29:52,049 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:29:52,049 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:29:52,049 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:29:52,049 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:29:52,049 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:29:52,083 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:29:52 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqhHpnGFw0zzzR06zzEjX2E0jYYz30003xC0000_5'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd84b8796269a11f1b8e957a8ae78c252'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:29:52,084 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:29:52,084 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:29:52,084 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:29:52,084 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:29:52,084 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:29:52,084 - httpcore.connection - DEBUG - close.started 2026-03-23 18:29:52,084 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:29:52,301 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:29:52,326 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:29:52,326 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:29:52,349 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:29:52,349 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:29:52,349 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:29:52,349 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:29:52,349 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:29:52,349 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:29:52,377 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:29:52 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqhIxTNFw0zzzR06zzEjX2E0jYYz30003dn0005dT'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd878519a269a11f1a516f799b4236bdb'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:29:52,378 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:29:52,378 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:29:52,378 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:29:52,378 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:29:52,378 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:29:52,378 - httpcore.connection - DEBUG - close.started 2026-03-23 18:29:52,378 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:29:52,602 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:29:52,628 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:29:52,628 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:29:52,654 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:29:52,655 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:29:52,655 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:29:52,655 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:29:52,655 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:29:52,655 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:29:52,681 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 09:29:52 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQqhK8mKFw0zzzR06zzEjX2E0jYYz30003dn0005fh'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 18:29:52,681 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 18:29:52,681 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:29:52,681 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:29:52,681 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:29:52,681 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:29:53,288 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:29:53,314 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:29:53,314 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:29:53,340 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:29:53,340 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:29:53,340 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:29:53,340 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:29:53,340 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:29:53,340 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:29:53,372 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:29:53 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqhMkkoFw0zzzR06zzEiXqE0jYYz10007cP000OsQ'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'd9102948269a11f1a71793b0cfdc91c2'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:29:53,372 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:29:53,372 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:29:53,372 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:29:53,373 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:29:53,373 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:29:53,373 - httpcore.connection - DEBUG - close.started 2026-03-23 18:29:53,373 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:29:53", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:29:52"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:29:52"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:29:53"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:30:53,469 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:30:53,470 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:30:53,515 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:30:53,515 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:30:53,540 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:30:53,541 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:30:53,541 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:30:53,541 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:30:53,541 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:30:53,541 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:30:53,622 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:30:53 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqkwPBxFw0zzzR06zzEiXqE0jYYz10004Ne001RNq'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'fcf39b2e269a11f1a152cb6b93850e25'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:30:53,622 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:30:53,622 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:30:53,622 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:30:53,622 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:30:53,622 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:30:53,623 - httpcore.connection - DEBUG - close.started 2026-03-23 18:30:53,623 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:30:53,789 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:30:53,824 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:30:53,824 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:30:53,850 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:30:53,850 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:30:53,850 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:30:53,850 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:30:53,850 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:30:53,850 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:30:53,880 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:30:53 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqkx^TBFw0zzzR06zzEiXqE0jYYz10001Rr00023J'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fd20787e269a11f1a7a07b39bdd3b720'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:30:53,880 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:30:53,880 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:30:53,880 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:30:53,880 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:30:53,880 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:30:53,880 - httpcore.connection - DEBUG - close.started 2026-03-23 18:30:53,880 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:30:54,072 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:30:54,097 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:30:54,097 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:30:54,154 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:30:54,154 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:30:54,154 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:30:54,154 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:30:54,154 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:30:54,154 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:30:54,197 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:30:54 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqkyjN_Fw0zzzR06zzEiXqE0jYYz10001^60000NC'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fd512988269a11f1a6b4eb57835c7a1b'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:30:54,198 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:30:54,198 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:30:54,198 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:30:54,198 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:30:54,198 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:30:54,198 - httpcore.connection - DEBUG - close.started 2026-03-23 18:30:54,198 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:30:54,372 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:30:54,395 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:30:54,395 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:30:54,420 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:30:54,420 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:30:54,420 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:30:54,420 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:30:54,421 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:30:54,421 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:30:54,454 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:30:54 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqkzkaoFw0zzzR06zzEiXqE0jYYz10001^60000Ox'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'fd787e5c269a11f1ad652fe90fe0d479'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:30:54,455 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:30:54,455 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:30:54,455 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:30:54,455 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:30:54,455 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:30:54,455 - httpcore.connection - DEBUG - close.started 2026-03-23 18:30:54,455 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:30:54", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:30:53"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:30:54"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:30:54"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:31:54,553 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:31:54,553 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:31:54,597 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:31:54,597 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:31:54,620 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:31:54,621 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:31:54,621 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:31:54,621 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:31:54,621 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:31:54,621 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:31:54,691 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:31:54 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqo_Ph6Fw0zzzR06zzEiXqE0jYYz10004Ne001Rx4'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'2159eb62269b11f1acd2e3de37fdd83d'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:31:54,691 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:31:54,691 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:31:54,691 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:31:54,691 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:31:54,691 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:31:54,692 - httpcore.connection - DEBUG - close.started 2026-03-23 18:31:54,692 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:31:54,855 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:31:54,879 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:31:54,879 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:31:54,903 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:31:54,904 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:31:54,904 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:31:54,904 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:31:54,904 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:31:54,904 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:31:54,931 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:31:54 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqoaTzXFw0zzzR06zzEiXqE0jYYz10006iI000wO6'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'218459ba269b11f1bac99b17f47489da'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:31:54,931 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:31:54,931 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:31:54,931 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:31:54,931 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:31:54,932 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:31:54,932 - httpcore.connection - DEBUG - close.started 2026-03-23 18:31:54,932 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:31:55,156 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:31:55,177 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:31:55,177 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:31:55,202 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:31:55,202 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:31:55,202 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:31:55,202 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:31:55,202 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:31:55,202 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:31:55,234 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:31:55 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqobbTRFw0zzzR06zzEjX2E0jYYz30003dn000J_L'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'21b2d27c269b11f197f2ab4bbf507780'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:31:55,235 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:31:55,235 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:31:55,235 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:31:55,235 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:31:55,235 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:31:55,235 - httpcore.connection - DEBUG - close.started 2026-03-23 18:31:55,235 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:31:55,457 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:31:55,480 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:31:55,480 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:31:55,503 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:31:55,503 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:31:55,503 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:31:55,503 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:31:55,503 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:31:55,503 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:31:55,558 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:31:55 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqocjkLFw0zzzR06zzEjX2E0jYYz30004oZ0000Ck'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'21e3c06c269b11f19807236f689d99e3'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:31:55,558 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:31:55,558 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:31:55,559 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:31:55,559 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:31:55,559 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:31:55,559 - httpcore.connection - DEBUG - close.started 2026-03-23 18:31:55,559 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:31:55", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:31:54"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:31:55"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:31:55"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:32:55,608 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:32:55,608 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:32:55,656 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:32:55,656 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:32:55,682 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:32:55,682 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:32:55,682 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:32:55,682 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:32:55,682 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:32:55,682 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:32:55,752 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:32:55 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqsELFoFw0zzzR06zzEiXqE0jYYz10004Ne001SX5'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'45bf08e8269b11f1aded1b04b8a66c4e'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:32:55,752 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:32:55,753 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:32:55,753 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:32:55,753 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:32:55,753 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:32:55,753 - httpcore.connection - DEBUG - close.started 2026-03-23 18:32:55,753 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:32:55,909 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:32:55,931 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:32:55,931 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:32:55,956 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:32:55,956 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:32:55,956 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:32:55,956 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:32:55,956 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:32:55,956 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:32:55,997 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:32:55 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqsFOR4Fw0zzzR06zzEjX2E0jYYz30004oZ0006K5'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'45e91250269b11f19f39235255af98e7'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:32:55,998 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:32:55,998 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:32:55,998 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:32:55,998 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:32:55,998 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:32:55,998 - httpcore.connection - DEBUG - close.started 2026-03-23 18:32:55,998 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:32:56,211 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:32:56,231 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:32:56,231 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:32:56,258 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:32:56,258 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:32:56,258 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:32:56,258 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:32:56,258 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:32:56,258 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:32:56,290 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:32:56 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqsGYNFFw0zzzR06zzEjX2E0jYYz300053j0001iO'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'4617348c269b11f1a97db3401135d591'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:32:56,291 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:32:56,291 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:32:56,291 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:32:56,291 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:32:56,291 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:32:56,291 - httpcore.connection - DEBUG - close.started 2026-03-23 18:32:56,291 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:32:56,512 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:32:56,534 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:32:56,534 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:32:56,560 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:32:56,560 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:32:56,560 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:32:56,560 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:32:56,560 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:32:56,560 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:32:56,620 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:32:56 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqsHfsSFw0zzzR06zzEjX2E0jYYz300053j0001ko'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'4649578c269b11f1b0a5cb406440a7e8'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:32:56,621 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:32:56,621 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:32:56,621 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:32:56,621 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:32:56,621 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:32:56,621 - httpcore.connection - DEBUG - close.started 2026-03-23 18:32:56,621 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:32:56", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:32:55"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:32:56"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:32:56"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:33:56,715 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:33:56,716 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:33:56,759 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:33:56,759 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:33:56,786 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:33:56,786 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:33:56,786 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:33:56,786 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:33:56,786 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:33:56,787 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:33:56,856 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:33:56 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqvrRQrFw0zzzR06zzEjX2E0jYYz300059L000GTk'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'6a2b482c269b11f1a0d3f3b797a73061'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:33:56,856 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:33:56,856 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:33:56,856 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:33:56,856 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:33:56,856 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:33:56,857 - httpcore.connection - DEBUG - close.started 2026-03-23 18:33:56,857 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:33:57,017 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:33:57,040 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:33:57,040 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:33:57,064 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:33:57,064 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:33:57,064 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:33:57,064 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:33:57,064 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:33:57,064 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:33:57,125 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:33:57 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqvsVifFw0zzzR06zzEjX2E0jYYz30004oZ000DAt'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6a59aea6269b11f1ab019f76e9ccf6c2'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:33:57,125 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:33:57,125 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:33:57,125 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:33:57,125 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:33:57,125 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:33:57,125 - httpcore.connection - DEBUG - close.started 2026-03-23 18:33:57,126 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:33:57,317 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:33:57,340 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:33:57,340 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:33:57,367 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:33:57,367 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:33:57,367 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:33:57,367 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:33:57,367 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:33:57,367 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:33:57,394 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:33:57 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqvtcDEFw0zzzR06zzEjX2E0jYYz30003dn000XO5'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6a82ef28269b11f1a6e21be498a196e1'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:33:57,394 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:33:57,394 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:33:57,394 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:33:57,394 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:33:57,394 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:33:57,395 - httpcore.connection - DEBUG - close.started 2026-03-23 18:33:57,395 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:33:57,619 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:33:57,639 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:33:57,639 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:33:57,664 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:33:57,664 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:33:57,664 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:33:57,664 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:33:57,664 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:33:57,664 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:33:57,718 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'Date', b'Mon, 23 Mar 2026 09:33:57 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'89'), (b'X-ORACLE-DMS-ECID', b'006JQqvuoVVFw0zzzR06zzEjX2E0jYYz30004hI000Gda'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Connection', b'close'), (b'Content-Type', b'application/json')]) 2026-03-23 18:33:57,718 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 500 Internal Server Error" 2026-03-23 18:33:57,718 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:33:57,718 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:33:57,718 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:33:57,718 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:33:58,326 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:33:58,347 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:33:58,347 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:33:58,373 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:33:58,373 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:33:58,373 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:33:58,373 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:33:58,373 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:33:58,373 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:33:58,404 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:33:58 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqvxUSNFw0zzzR06zzEiXqE0jYYz10002Ox0005Mv'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'6b1cbaae269b11f197ac735d40ab905d'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:33:58,404 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:33:58,404 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:33:58,404 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:33:58,404 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:33:58,405 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:33:58,405 - httpcore.connection - DEBUG - close.started 2026-03-23 18:33:58,405 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:33:58", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:33:57"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:33:57"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:33:58"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:34:58,488 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:34:58,489 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:34:58,532 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:34:58,532 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:34:58,559 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:34:58,559 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:34:58,559 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:34:58,559 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:34:58,560 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:34:58,560 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:34:58,627 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:34:58 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQqzZ4I3Fw0zzzR06zzEiXqE0jYYz10004Ne001ThA'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'8efcf1d2269b11f1afed83e75673dc68'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:34:58,628 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:34:58,628 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:34:58,628 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:34:58,628 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:34:58,628 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:34:58,628 - httpcore.connection - DEBUG - close.started 2026-03-23 18:34:58,628 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:34:58,790 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:34:58,810 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:34:58,810 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:34:58,831 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:34:58,831 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:34:58,831 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:34:58,831 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:34:58,831 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:34:58,832 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:34:58,861 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:34:58 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQqz^6moFw0zzzR06zzEjX2E0jYYz30003dn000cL3'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'8f25eb8c269b11f189294b06d0bf5215'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:34:58,861 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:34:58,861 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:34:58,861 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:34:58,861 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:34:58,861 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:34:58,861 - httpcore.connection - DEBUG - close.started 2026-03-23 18:34:58,862 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:34:59,091 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:34:59,112 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:34:59,112 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:34:59,137 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:34:59,138 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:34:59,138 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:34:59,138 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:34:59,138 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:34:59,138 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:34:59,166 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:34:59 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQqz_H8eFw0zzzR06zzEiXqE0jYYz10001Rr000TXr'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'8f546624269b11f1a551f7a4255e4cb5'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:34:59,167 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:34:59,167 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:34:59,167 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:34:59,167 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:34:59,167 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:34:59,167 - httpcore.connection - DEBUG - close.started 2026-03-23 18:34:59,167 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:34:59,391 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:34:59,415 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:34:59,415 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:34:59,437 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:34:59,438 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:34:59,438 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:34:59,438 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:34:59,438 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:34:59,438 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:34:59,474 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:34:59 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQqzaQhSFw0zzzR06zzEjX2E0jYYz30005rj0000KW'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'8f838a44269b11f1b9b42b968b99abad'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:34:59,475 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:34:59,475 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:34:59,475 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:34:59,475 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:34:59,475 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:34:59,475 - httpcore.connection - DEBUG - close.started 2026-03-23 18:34:59,475 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:34:59", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:34:58"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:34:59"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:34:59"}}]} {"sent": 0, "last_key": null} 2026-03-23 18:35:59,574 - mcp-server - INFO - TrIdManager.get_tr_id('balance'): VTTC8434R 2026-03-23 18:35:59,575 - httpcore.connection - DEBUG - connect_tcp.started host='openapivts.koreainvestment.com' port=29443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:35:59,621 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:35:59,621 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapivts.koreainvestment.com' timeout=5.0 2026-03-23 18:35:59,646 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:35:59,646 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:35:59,646 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:35:59,647 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:35:59,647 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:35:59,647 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:35:59,712 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:35:59 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2634'), (b'X-ORACLE-DMS-ECID', b'006JQr3C61uFw0zzzR06zzEjX2E0jYYz300059R001R4t'), (b'tr_cont', b'D'), (b'tr_id', b'VTTC8434R'), (b'gt_uid', b'b3658566269b11f1aa3e937137630b16'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:35:59,712 - httpx - INFO - HTTP Request: GET https://openapivts.koreainvestment.com:29443/uapi/domestic-stock/v1/trading/inquire-balance?CANO=50160820&ACNT_PRDT_CD=01&AFHR_FLPR_YN=N&INQR_DVSN=01&UNPR_DVSN=01&FUND_STTL_ICLD_YN=N&FNCG_AMT_AUTO_RDPT_YN=N&PRCS_DVSN=00&CTX_AREA_FK100=&CTX_AREA_NK100=&OFL_YN= "HTTP/1.1 200 OK" 2026-03-23 18:35:59,712 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:35:59,712 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:35:59,712 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:35:59,712 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:35:59,713 - httpcore.connection - DEBUG - close.started 2026-03-23 18:35:59,713 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:35:59,879 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:35:59,903 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:35:59,903 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:35:59,930 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:35:59,930 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:35:59,931 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:35:59,931 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:35:59,931 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:35:59,931 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:35:59,961 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:35:59 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'2014'), (b'X-ORACLE-DMS-ECID', b'006JQr3DBANFw0zzzR06zzEiXqE0jYYz100027d000OeS'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b390a96c269b11f1990e9f91b7625d7f'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:35:59,961 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=000660 "HTTP/1.1 200 OK" 2026-03-23 18:35:59,961 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:35:59,962 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:35:59,962 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:35:59,962 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:35:59,962 - httpcore.connection - DEBUG - close.started 2026-03-23 18:35:59,962 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:36:00,178 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:36:00,198 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:36:00,198 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:36:00,221 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:36:00,221 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:36:00,221 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:36:00,221 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:36:00,221 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:36:00,221 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:36:00,342 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:36:00 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1993'), (b'X-ORACLE-DMS-ECID', b'006JQr3EJA2Fw0zzzR06zzEjX2E0jYYz30005rj0007iM'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b3cb2010269b11f199a4ff5fd8aeff16'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:36:00,342 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=005930 "HTTP/1.1 200 OK" 2026-03-23 18:36:00,342 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:36:00,343 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:36:00,343 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:36:00,343 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:36:00,343 - httpcore.connection - DEBUG - close.started 2026-03-23 18:36:00,343 - httpcore.connection - DEBUG - close.complete 2026-03-23 18:36:00,478 - httpcore.connection - DEBUG - connect_tcp.started host='openapi.koreainvestment.com' port=9443 local_address=None timeout=5.0 socket_options=None 2026-03-23 18:36:00,499 - httpcore.connection - DEBUG - connect_tcp.complete return_value= 2026-03-23 18:36:00,499 - httpcore.connection - DEBUG - start_tls.started ssl_context= server_hostname='openapi.koreainvestment.com' timeout=5.0 2026-03-23 18:36:00,524 - httpcore.connection - DEBUG - start_tls.complete return_value= 2026-03-23 18:36:00,524 - httpcore.http11 - DEBUG - send_request_headers.started request= 2026-03-23 18:36:00,525 - httpcore.http11 - DEBUG - send_request_headers.complete 2026-03-23 18:36:00,525 - httpcore.http11 - DEBUG - send_request_body.started request= 2026-03-23 18:36:00,525 - httpcore.http11 - DEBUG - send_request_body.complete 2026-03-23 18:36:00,525 - httpcore.http11 - DEBUG - receive_response_headers.started request= 2026-03-23 18:36:00,558 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 23 Mar 2026 09:36:00 GMT'), (b'X-Content-Type-Options', b'nosniff'), (b'Content-Length', b'1975'), (b'X-ORACLE-DMS-ECID', b'006JQr3FTP0Fw0zzzR06zzEiXqE0jYYz10001Rr000^^p'), (b'tr_cont', b''), (b'tr_id', b'FHKST01010100'), (b'gt_uid', b'b3ec141e269b11f1990f4be397205986'), (b'X-ORACLE-DMS-RID', b'0:1'), (b'X-XSS-Protection', b'1; mode=block'), (b'Keep-Alive', b'timeout=5, max=100'), (b'Connection', b'Keep-Alive'), (b'Content-Type', b'application/json')]) 2026-03-23 18:36:00,558 - httpx - INFO - HTTP Request: GET https://openapi.koreainvestment.com:9443/uapi/domestic-stock/v1/quotations/inquire-price?fid_cond_mrkt_div_code=J&fid_input_iscd=039030 "HTTP/1.1 200 OK" 2026-03-23 18:36:00,558 - httpcore.http11 - DEBUG - receive_response_body.started request= 2026-03-23 18:36:00,559 - httpcore.http11 - DEBUG - receive_response_body.complete 2026-03-23 18:36:00,559 - httpcore.http11 - DEBUG - response_closed.started 2026-03-23 18:36:00,559 - httpcore.http11 - DEBUG - response_closed.complete 2026-03-23 18:36:00,559 - httpcore.connection - DEBUG - close.started 2026-03-23 18:36:00,559 - httpcore.connection - DEBUG - close.complete {"time": "2026-03-23 18:36:00", "mode": "virtual-safe", "enable_orders": false, "results": [{"symbol": "000660", "name": "", "price": 933000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "000660", "time": "2026-03-23 18:35:59"}}, {"symbol": "005930", "name": "", "price": 186300, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "005930", "time": "2026-03-23 18:36:00"}}, {"symbol": "039030", "name": "", "price": 419000, "buy_reasons": [], "sell_reasons": ["sell_stop_loss_or_fade"], "action": {"action": "market_closed", "symbol": "039030", "time": "2026-03-23 18:36:00"}}]} {"sent": 0, "last_key": null}