sync_timeout: Set/Get Sync Timeout

View source: R/sync_timeout.R

sync_timeoutR Documentation

Set/Get Sync Timeout

Description

Set or retrieve the number of seconds that API calls in Sync Mode will wait for a response from the IB app before giving up. The default value is set to 5 seconds.

Usage

sync_timeout(timeout)

Arguments

timeout

Numeric, length 1, specifying the time in seconds that API calls made in Sync Mode will wait for a response from IB before giving up. The default value is 5 seconds. sync_timeout() is called with argument timeout is not specified in the call, then sync_timeout() will return the current timeout setting (in seconds) as a numeric.

See Also

Other utilities: active_connection_parameters(), clean_slate(), create_new_connections(), disconnect(), read_sock_drawer(), socks(), start_api()

Examples

# Fetch the current timeout setting for SYNC functions (in seconds):
sync_timeout()

# Set the time out setting for SYNC functions to 10 seconds:
sync_timeout(10)

# Fetch the new setting:
sync_timeout()

JakeVestal/InteractiveTradeR documentation built on June 5, 2024, 2:21 p.m.