Create Or Modify Alert
Endpoint used to create a new alert, or modify an existing alert.
Path parameters
accountId
Request
This endpoint expects an object.
alertName
Alert name.
alertMessage
Alert message which will be sent
alertRepeatable
Boolean number (0, 1) signifies if an alert can be triggered more than once. A value of ‘1’ is required for MTA alerts
outsideRth
Allow (1) or disallow (0) the alert to be triggered outside of regular trading hours
tif
Time in Force duration of alert.
conditions
Container for all conditions applied for an alert to trigger.
orderId
optional; used in case of modification and represent Alert Id
email
Email address you want to send email alerts to
expireTime
Used with a tif of "GTD" only. Signifies time when the alert should terminate if no alert is triggered.
iTWSOrdersOnly
allow (0) or disallow (1) alerts to trigger alerts through the mobile app
sendMessage
allow (1) or disallow (0) alerts to trigger email messages
showPopup
allow (1) or disallow (0) alerts to trigger TWS Pop-up messages
Response
An object containing valid accounts and the account properties regarding trading access. This endpoint is also used to confirm account validation.
request_id
Not applicable
order_id
The tracking number of the alert. Alert identifier internally referenced as order id.
success
Displays result status of alert request
text
Response message to clarify submission status.
order_status
Not applicable
warning_message
Returns 'null'
Errors
400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error
503
Service Unavailable Error

