Skip to content

NotificationSms

QuantConnect.Notifications.NotificationSms

NotificationSms(number: str, message: str)

Bases: Notification

Sms Notification Class

Constructor for sending a notification SMS to a specified phone number

Parameters:

Name Type Description Default
number str
required
message str
required

phone_number

phone_number: str

Send a notification message to this phone number

message

message: str

Message to send. Limited to 160 characters

can_send

can_send() -> bool

Check if the notification can be sent (implements the Notification.send method)

Returns:

Type Description
bool

Whether the notification can be sent.

send

send() -> None

Method for sending implementations of notification object types.