get_current_time
Retrieve the current server time from Interactive Brokers TWS to synchronize trading operations and ensure accurate timestamping for market data and order execution.
Instructions
Get current TWS server time.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/ib_async_mcp/server.py:809-811 (handler)The logic handler for "get_current_time" tool, which invokes reqCurrentTimeAsync on the ib object and returns the formatted server time.
if name == "get_current_time": time = await ib.reqCurrentTimeAsync() return {"server_time": time.isoformat()} - src/ib_async_mcp/server.py:424-428 (registration)Tool registration definition for "get_current_time" in the server's tool list.
Tool( name="get_current_time", description="Get current TWS server time.", inputSchema={"type": "object", "properties": {}}, ),