WSH Event Data
Introduction
The function EClient.reqWshEventData is used to request various calendar events from Wall Street Horizon. The event data is then received via the callback EWrapper.wshEventData. Pending event data requests can be canceled with the function EClient.cancelWshEventData.
Note: Prior to sending this message, the API client must make a request for metadata via EClient.reqWshMetaData.
Also note that TWS will not support multiple concurrent requests. Previous request should succeed, fail, or be cancelled by client before next one. TWS will reject such requests with text “Duplicate WSH meta-data request” or “Duplicate WSH event request”.
Request Event Data
EClient.reqWshEventData(requestId, wshEventData)
Requests event data from the WSH calendar.
Request identifier used to track data.
Unique object used to track all parameters for the event data request.
Python
Java
C++
C#
VB.NET
Receive Event Data
EWrapper.wshEventData(requestId, dataJson)
Returns calendar events from the WSH.
Request identifier used to track data.
Event data json format.
Python
Java
C++
C#
VB.NET
Cancel Event Data
EClient.cancelWshEventData(requestId)
Cancels pending WSH event data request.
Request identifier used to track data.

