ApiSettingsConfig
totalQuantityForMutualFunds: Boolean – Enables the display of total quantity instead of monetary value for mutual fund positions.
downloadOpenOrdersOnConnection: Boolean – Automatically downloads all open orders when the API client establishes a connection to TWS.
includeVirtualFxPositions: Boolean – Includes virtual foreign exchange positions in position updates sent to the API client.
prepareDailyPnL: Boolean – Enables the calculation and delivery of daily profit and loss data to the API client.
sendStatusUpdatesForVolatilityOrders: Boolean – Configures the system to send status updates for orders with volatility-based parameters.
encodeApiMessages: String – Specifies the character encoding format used for API message transmission (e.g., “osCodePage”).
socketPort: Integer – Defines the TCP socket port number on which the API listens for incoming client connections.
useNegativeAutoRange: Boolean – Allows the use of negative values in automatic range calculations for order parameters.
createApiMessageLogFile: Boolean – Enables the creation of a log file that records all API message traffic.
includeMarketDataInLogFile: Boolean – Controls whether market data messages are included in the API message log file.
exposeTradingScheduleToApi: Boolean – Makes trading schedule information available to API clients for contract and exchange queries.
splitInsuredDepositFromCashBalance: Boolean – Separates insured deposit amounts from the total cash balance in account value reports.
sendZeroPositionsForTodayOnly: Boolean – Limits the transmission of zero-quantity positions to only those closed during the current trading day.
useAccountGroupsWithAllocationMethods: Boolean – Enables the use of account groups when applying order allocation methods across multiple accounts.
loggingLevel: String – Sets the verbosity level for API logging output (e.g., “error”, “warning”, “info”, “debug”).
masterClientId: Integer – Designates a specific client ID as the master client with elevated privileges for API operations.
bulkDataTimeout: Integer – Specifies the timeout duration in seconds for bulk data request operations.
componentExchSeparator: String – Defines the character used to separate component exchange identifiers in composite contract symbols.
roundAccountValuesToNearestWholeNumber: Boolean – Rounds all account value figures to the nearest whole number for simplified display.
showAdvancedOrderRejectInUi: Boolean – Displays detailed order rejection messages in the TWS user interface for troubleshooting purposes.
rejectMessagesAboveMaxRate: Boolean – Automatically rejects API messages that exceed the configured maximum message rate threshold.
maintainConnectionOnIncorrectFields: Boolean – Preserves the API connection even when requests contain incorrect or invalid field values.
compatibilityModeNasdaqStocks: Boolean – Enables legacy compatibility mode for NASDAQ stock symbol formatting and handling.
sendInstrumentTimezone: String – Specifies the timezone format for instrument trading hours and schedule data (e.g., “utc”, “exchange”).
sendForexDataInCompatibilityMode: Boolean – Transmits foreign exchange market data using legacy format for backward compatibility with older API clients.
maintainAndResubmitOrdersOnReconnect: Boolean – Automatically preserves and resubmits active orders when the API client reconnects after a disconnection.
historicalDataMaxSize: Integer – Sets the maximum size level for historical data requests to control bandwidth and processing requirements.
autoReportNettingEventContractTrades: Boolean – Automatically reports trades generated by netting events for contract position reconciliation.
optionExerciseRequestType: String – Determines the type of option exercise requests accepted by the system (e.g., “final”, “preliminary”).
trustedIPs: List<String> – Contains a collection of IP addresses that are authorized to establish API connections without additional authentication.

