Gateway server time
get_server_timeCheck the gateway's current time and clock skew to verify connectivity and prepare for time-sensitive requests like historical data or order good-till times.
Instructions
Return the gateway's current time and how far this server's clock is from it.
Useful as a cheap round-trip check that the gateway answers requests, and before time-sensitive requests (historical data end times, order good-till times). IBKR reports whole seconds, so a skew under a second or two is normal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_time | Yes | This server's clock when the answer arrived (UTC). | |
| server_time | Yes | Time reported by the gateway. | |
| skew_seconds | Yes | local_time minus server_time; IBKR reports whole seconds. |