Skip to main content
Glama
nadavgb-atom

ib-async-mcp

by nadavgb-atom

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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()}
  • 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": {}},
    ),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nadavgb-atom/ib-async-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server